GithubHelp home page GithubHelp logo

ms0g / bittrex-cpp Goto Github PK

View Code? Open in Web Editor NEW
12.0 3.0 4.0 447 KB

Bittrex API Client Library

License: MIT License

CMake 3.04% C++ 96.19% Shell 0.77%
bittrex cryptocurrency-exchanges cpp api api-wrapper trading trading-api exchange coin cryprocurrency cryptocoins bittrex-cpp c-plus-plus cpp17 bittrex-api

bittrex-cpp's Introduction

bittrex-cpp

Build Status

Bittrex C++ API Client Library

WARNING: Market buy/sells are extremely dangerous.You are at your own risk.

Prerequisites

Building

cd build
./builder.sh

Installation

sudo make install

Run Tests

make test

Usage

#include <iostream>
#include <libbittrex/client.h>

int main(){
    std::string key="xxxxx";
    std::string secret="xxxxx";
    
    bittrex::Client btxcli(key,secret);
    auto markets =  btxcli.public_api().get_markets();

    std::cout << markets.at(0).market_name << std::endl;
}
>> BTC-LTC

bittrex-cpp's People

Contributors

ms0g avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bittrex-cpp's Issues

Market.sell_limit() returns APISIGN_NOT_PROVIDED exception

Hi,
Thanks for sharing your great wrapper, I have been playing with this library which has been successful in reading market information but I'm getting an error if I try calling sell/buy methods. here is my example code

#include <iostream>
#include <bittrex-cpp/client.h>

int main(){
    std::string key="******";
    std::string secret="******";
    bittrex::Client cl(key,secret);
    bittrex::api::Market m = cl.get_market();
    auto ret = m.sell_limit("USDT-ADA",1.0,0.5);
    std::cout << "Done!" << std::endl;
}

and here is the error I get

terminate called after throwing an instance of 'fail'
  what():  APISIGN_NOT_PROVIDED
Aborted (core dumped)

I would appreciate any feedback.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.