Giter Site home page Giter Site logo

dgrr / binance-futures-sdk Goto Github PK

View Code? Open in Web Editor NEW
17.0 3.0 5.0 174 KB

C++ Binance Futures SDK.

License: MIT License

CMake 4.41% C++ 95.15% Dockerfile 0.35% Shell 0.10%
boost websocket asio binance-futures-sdk beast async simdjson websocket-stream

binance-futures-sdk's People

Contributors

dgrr avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

binance-futures-sdk's Issues

compile error in example of websocket

OS: MacOS Catalina

Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin19.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

> cmake --build . --target all                                                                                             build -> master ?
Scanning dependencies of target boost_url
[  5%] Building CXX object contrib/boost.url/CMakeFiles/boost_url.dir/src/src.cpp.o
[ 11%] Linking CXX static library libboost_url.a
[ 11%] Built target boost_url
Scanning dependencies of target boost_json
[ 16%] Building CXX object contrib/boost.json/CMakeFiles/boost_json.dir/src/src.cpp.o
[ 22%] Linking CXX static library libboost_json.a
[ 22%] Built target boost_json
Scanning dependencies of target simdjson
[ 27%] Building CXX object contrib/simdjson/src/CMakeFiles/simdjson.dir/simdjson.cpp.o
[ 33%] Linking CXX static library libsimdjson.a
[ 33%] Built target simdjson
Scanning dependencies of target binance-websocket-example
[ 38%] Building CXX object examples/websocket/CMakeFiles/binance-websocket-example.dir/main.cc.o
/Users/pauln/binance-futures-sdk/examples/websocket/main.cc:49:22: error: too few arguments to function call,
      single argument 'cb' was not specified
    ws_->async_close();
    ~~~~~~~~~~~~~~~~ ^
/Users/pauln/binance-futures-sdk/examples/websocket/../../include/binance/websocket/stream.hpp:207:1: note:
      'async_close' declared here
void stream::async_close(std::function<void(boost::system::error_code)> cb)
^
1 error generated.
make[2]: *** [examples/websocket/CMakeFiles/binance-websocket-example.dir/main.cc.o] Error 1
make[1]: *** [examples/websocket/CMakeFiles/binance-websocket-example.dir/all] Error 2
make: *** [all] Error 2

can websocket stream be used for receiving cash data?

I read the websocket API docs between cash and futures, it seems no differences except host IP and port. When I changed the IP and port, the program connects well, but it fails at throwing 'stream truncated' error when trying to subscribe.

State of project.

Hi,

I've been examining the code, is this project considered to be stable enough for a project to use the existing code base?

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.