Rust wrappers around cryptocurrency exchange APIs with a focus on low-latency, high-frequency trading applications.
Note: This library is currently in development. The Crates.io and Documentation badges will become functional when the library is published.
| Exchange | Type | Status | Public Tests | Private Tests | REST | WebSocket |
|---|---|---|---|---|---|---|
| Binance | COIN-M Futures | ✅ Complete | ✅ | ❌ | ✅ | ❌ |
| Binance | USD-M Futures (USDT-M) | ✅ Complete | ✅ | ❌ | ✅ | ❌ |
| Binance | Portfolio Margin | ✅ Complete | ❌ | ❌ | ✅ | ❌ |
| Binance | Options (EAPI) | 🚧 In Progress | ❌ | ❌ | 🚧 | ❌ |
| Binance | Spot | ✅ Complete | ✅ | ❌ | ✅ | ❌ |
| BingX | Spot | 🚧 In Progress | ✅ | ❌ | 🚧 | ❌ |
| Bitget | Spot | 🚧 In Progress | ✅ | ❌ | 🚧 | ❌ |
| Bitmart | Contract | 🚧 In Progress | ✅ | ❌ | 🚧 | ❌ |
| Bitmart | Spot | 🚧 In Progress | ✅ | ❌ | 🚧 | ❌ |
| Bullish | Spot | 🚧 In Progress | ✅ | ❌ | 🚧 | ❌ |
| Bybit | Spot & Derivatives | 🚧 In Progress | ✅ | ❌ | 🚧 | ❌ |
| Coinbase | Exchange | ✅ Complete | ✅ | ❌ | ✅ | ❌ |
| Crypto.com | Spot Trading | ✅ Complete | ✅ | ❌ | ✅ | ❌ |
| Deribit | Public API | ✅ Complete | ✅ | ❌ | ✅ | ❌ |
| Gate.io | Delivery | 🚧 In Progress | ✅ | ❌ | 🚧 | ❌ |
| Gate.io | Options | 🚧 In Progress | ✅ | ❌ | 🚧 | ❌ |
| Gate.io | Perpetual | 🚧 In Progress | ✅ | ❌ | 🚧 | ❌ |
| Gate.io | Spot | 🚧 In Progress | ✅ | ❌ | 🚧 | ❌ |
| Gate.io | Unified | 🚧 In Progress | ✅ | ❌ | 🚧 | ❌ |
| KuCoin | Futures | 🚧 In Progress | ✅ | ❌ | 🚧 | ❌ |
| KuCoin | Spot | 🚧 In Progress | ✅ | ❌ | 🚧 | ❌ |
| OKX | Spot & Derivatives | ✅ Complete | ✅ | ❌ | ✅ | ❌ |
- ✅ Complete: Full implementation with comprehensive API coverage
- 🚧 In Progress: Basic infrastructure in place, endpoints being added
- REST: Public and private REST API endpoints with rate limiting and error handling
- WebSocket: Real-time data feeds and streaming APIs
- ✅: Fully implemented and tested
- 🚧: In development
- ❌: Not yet implemented
- Public Tests: Integration tests for public API endpoints (market data, instrument info, etc.)
- Private Tests: Integration tests for private API endpoints (account data, trading operations)
- ✅: Tests implemented and passing
- ❌: Tests not yet implemented
Each venue includes a README with:
- Links to the official API documentation
- Authentication requirements
- List of implemented endpoints
See the venues directory for details.
- All venues implement low latency APIs. If WebSocket is available, it is preferred over REST.
- Venue rate limiting is implemented exactly as specified by the exchange.
- Wrappers around endpoints are pure; no helper or fix-up logic is included.
- All WebSocket clients implement the common WebSocket trait.
- File and module structure follows strict conventions for maintainability and clarity.
This project targets ONLY the latest stable Rust release.
rust-toolchain.tomlpins the toolchain tostableso builds automatically track the newest stable once installed.Cargo.tomlrust-versionfield is updated to the most recent stable (currently 1.89.0) and will be bumped promptly after each stable release.- No nightly feature gates (
#![feature(...)]) are permitted. - Patterns that previously required nightly (e.g.,
let_chainsbefore stabilization in 1.88) may now use the stable syntax where it improves clarity. - CI enforces these rules via a verification script.
If you need a feature that is only on nightly, open an issue to discuss alternatives before proposing nightly usage.
- Unit tests are colocated with the code they test and do not require credentials or network access.
- Integration tests are in the tests/ directory and cover real API interactions (where supported).
- Example code for each venue is in venues/examples/.
- Examples are self-contained and demonstrate usage of public APIs, with clear instructions for credentials if