- A Rust library for trading on crypto exchanges. Super simple to use.
- Unified API for different exchanges. Supported exchanges:
- For any questions, contact us on Telegram https://t.me/+NvPBKXi6kFNkYmE5.
- We provide end-to-end development services for crypto trading infrastructures, covering everything from integration and strategy implementation to real-time data handling and execution.
Add this to your Cargo.toml
[dependencies]
ccrs = { git = "https://github.com/the-ccrs/ccrs.git" }The default main branch may include experimental or in-progress features. For a stable experience, please use specific tags.
[dependencies]
ccrs = { git = "https://github.com/the-ccrs/ccrs.git", tag = "v1.2.3" }Our documentation is centered around comprehensive, real-world examples that demonstrate how to use each feature in practice.
- REST market data —
cargo run --example rest_market_data - REST order execution —
env USE_TESTNET=true BYBIT_API_KEY='...' BYBIT_API_SECRET='...' SYMBOL=BTCUSDT PRICE=50000 QUANTITY=0.001 cargo run --example rest_order_execution - REST get position —
env USE_TESTNET=true BYBIT_API_KEY='...' BYBIT_API_SECRET='...' cargo run --example rest_get_position - REST get balance —
env USE_TESTNET=true BYBIT_API_KEY='...' BYBIT_API_SECRET='...' cargo run --example rest_get_balance - WebSocket subscribe top of book —
cargo run --example websocket_subscribe_top_of_book - WebSocket subscribe trade —
cargo run --example websocket_subscribe_trade - WebSocket subscribe order —
env USE_TESTNET=true BYBIT_API_KEY='...' BYBIT_API_SECRET='...' cargo run --example websocket_subscribe_order - WebSocket subscribe fill —
env USE_TESTNET=true BYBIT_API_KEY='...' BYBIT_API_SECRET='...' cargo run --example websocket_subscribe_fill - Websocket read batch —
cargo run --example websocket_read_batch - Enable library logging —
cargo run --example enable_library_logging --features max_log_level_finest - Connect to proxy —
cargo run --example connect_to_proxy
More exchange specific examples can be found in the tests directory.
"Everything should be made as simple as possible, but not simpler." — Albert Einstein
- REST API source code is fully available.
- WebSocket API source code is partially available. Full access can be obtained separately — please contact us at Telegram https://t.me/+NvPBKXi6kFNkYmE5.