Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

dzhao/binance-rs-async

Open more actions menu
 
 

Repository files navigation

binance-rs-async

Unofficial Rust Library for the Binance API

This is a fully async api using async-std.

Current state

The current beta aims at implementing every single endpoint on the binance docs. Currently, futures and savings have been implemented but not thoroughly tested.

Usage

Add this to your Cargo.toml

[dependencies]
binance-rs-async = "1.1.0"

Roadmap

  • 1.0.0 Completely tested margin sapi endpoints
  • 1.0.1 Changelog check to detect binance API changes
  • 1.1.0 Complete tested futures (m-coin and usd-m futures)

Risk Warning

It is a personal project, use at your own risk. I will not be responsible for your investment losses. Cryptocurrency investment is subject to high market risk. Nonetheless, this crate is aimed at high performance and production use, I have been using this to target Binance successfully for several years now.

Using TLS

By default, the crate uses native-tls for tungstenite and reqwest because I believe it's simpler and faster to let the user switch LibreSSL or OpenSSL versions rather than rebuild the program.

You can however disable default-features and use rust-tls, which might be helpful in certain situations such as CI or dev box.

Rust >= 1.37

rustup install stable

Contribution

Simply create a pull request. Properly documented code and tests (using binance testnet) are a must.

About

Async client for the Binance APIs

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Rust 98.8%
  • Makefile 1.2%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.