dgrr / binance-futures-sdk Goto Github PK
View Code? Open in Web Editor NEWC++ Binance Futures SDK.
License: MIT License
C++ Binance Futures SDK.
License: MIT License
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
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.
Hi,
I've been examining the code, is this project considered to be stable enough for a project to use the existing code base?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.