Rust client for Binance API
This package is automatically generated by the OpenAPI Generator project.
Please do not edit the generated code manually, but rather regenerate it from OpenXAPI.
Supported APIs
| Product | Module | Sub Products |
|---|---|---|
| Spot API | binance::spot |
✅ Spot Trading ✅ Margin Trading ✅ Algo Trading ✅ Wallet ✅ Copy Trading ✅ Convert ✅ Sub Account ✅ Binance Link ✅ Futures Data ✅ Portfolio Margin Pro ✅ Staking ✅ Dual Investment ✅ Mining ✅ Crypto Loan ✅ VIP Loan ✅ C2C ✅ Fiat ✅ NFT ✅ Gift Card ✅ Rebate ✅ Simple Earn ✅ Binance Pay History |
| USD-M Futures API | binance::umfutures |
✅ USDS Margined Futures ✅ Binance Link |
| COIN-M Futures API | binance::cmfutures |
✅ COIN Margined Futures |
| Options API | binance::options |
✅ Options |
| Portfolio Margin API | binance::pmargin |
✅ Portfolio Margin |
Requirements
Rust 1.70+
Installation & Usage
Install the package using cargo:
Or add the following to your Cargo.toml:
[]
= { = "https://github.com/openxapi/binance-rs" }
Getting Started
In your own code, to use this library to connect and interact with spot and umfutures, you can run the following:
use spot;
use umfutures;
use env;
use ;
async
async