CCXT-Rust
A professional-grade, type-safe Rust implementation of the CCXT library for cryptocurrency trading, providing unified access to major exchanges.
đ¯ Supported Exchanges
| Exchange | Market Data | Trading | WebSocket |
|---|---|---|---|
| Binance | â | â | â |
| Bitget | â | â | â |
| Hyperliquid | â | â | â |
| OKX | â | â | â |
| Bybit | â | â | â |
Legend: â Supported, đ§ In Progress
đ Key Features
- đĄī¸ Type-Safe & Async: Built on
Tokioandrust_decimalfor safe, high-performance financial operations. - đ Unified Interface: Consistent
Exchangetrait across all supported exchanges. - ⥠Real-Time: Robust WebSocket support with automatic reconnection.
- đĻ Comprehensive Capability:
- Market Data: Tickers, Order Books, OHLCV, Trades.
- Trading: Spot, Margin, Futures, Batched Orders, OCO.
- Account: Balances, Transactions, Leverage management.
đ Quick Start
Installation
Basic Usage
use Binance;
use Exchange;
use dec;
use ;
async
For WebSocket examples and advanced usage (polymorphism), see the examples/ directory.
đī¸ Architecture
The project is structured as a workspace:
ccxt-core: Defines the unifiedExchangeandWsExchangetraits, standard types, and error handling logic.ccxt-exchanges: Contains specific implementations (Binance, OKX, etc.).
đŠ Feature Flags
| Flag | Description | Default |
|---|---|---|
rest |
REST API support | â |
websocket |
WebSocket support | â |
rustls-tls |
Use RustLS (recommended) | â |
native-tls |
Use OpenSSL/Native TLS | â |
đ ī¸ Development
# Run tests
# Check code quality
# Build documentation
đ License & Support
MIT License. See LICENSE.
- Issues: GitHub Issues
- Docs: docs.rs
â ī¸ Disclaimer
This project is for educational and research purposes only. The authors and contributors are not responsible for any financial losses or damages arising from the use of this software. Cryptocurrency trading involves high risk; please trade responsibly.
Status: đ§ Active Development (v0.1.4) | Donations (BSC): 0x8e5d858f92938b028065d39450421d0e080d15f7