GithubHelp home page GithubHelp logo

youdonghai / binance-rs-async Goto Github PK

View Code? Open in Web Editor NEW

This project forked from igosuki/binance-rs-async

0.0 0.0 0.0 374 KB

Async client for the Binance APIs

Home Page: https://crates.io/crates/binance-rs-async

License: Other

Rust 99.08% Makefile 0.92%

binance-rs-async's Introduction

binance-rs-async

Unofficial Rust Library for the Binance API

This is a fully async api using tokio.

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.3.3"

Roadmap

  • 1.0.0 Completely tested margin sapi endpoints
  • 1.0.* Changelog check to detect binance API changes
  • 1.1.* Wallet API
  • 1.2.* to 1.3.* Continuous updates for wallet and margin APIs
  • 1.4.* Complete tested futures (m-coin and usd-m futures)

Breaking changes

  • 1.3.0 introduces optional fields for MarginOrderCancellationResult instead of definitely set fields

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

Cargo dependencies

cargo install cargo-semver-checks

Checking documentation and release

cargo semver-checks check-release --package binance-rs-async --verbose

Contribution

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

Running github actions locally :

# Example that runs the make-release-pr workflow 
act -P ubuntu-latest=cimg/rust:1.66.1-node workflow_dispatch -j make-release-pr --eventpath release.json --secret-file=secrets

binance-rs-async's People

Contributors

igosuki avatar renovate[bot] avatar hhstore avatar zhenpingfeng avatar doctoreenot avatar nascent-chris avatar dizda avatar joelchen avatar unv-annihilator avatar georgewhewell avatar ghostlee avatar mvines avatar tommysr avatar agodnic avatar emberfarkas avatar vchugreev avatar vikulikov avatar gleize avatar allada avatar lucassimpson avatar koenw avatar durango avatar chipshort avatar yongkangc avatar guotie avatar zannis avatar seongs1024 avatar kennyyanxm avatar daifukunem avatar comeonletsgoo avatar

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.