This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
CCRXT is a Rust library providing low-latency wrappers around cryptocurrency exchange APIs. The project prioritizes performance for high-frequency trading applications while maintaining strict adherence to exchange-specific rate limits and API behaviors.
- Build the entire project:
cargo build - Run tests:
cargo test - Build with release optimizations:
cargo build --release - Run a specific example:
- Coinbase market data:
cargo run --example coinbase_market_data -- --products "BTC-USD,ETH-USD" --orderbook --ticker - Authenticated WebSocket:
cargo run --example authenticated_websocket
- Coinbase market data:
- Format code:
cargo fmt - Run linter:
cargo clippy - Generate documentation:
cargo doc --no-deps --open
For examples requiring API authentication:
- Create a
.envfile in the venues directory - Add the required tokens/keys (e.g.,
COINBASE_JWT_TOKEN=your_jwt_token_here) - Use the
dotenvcrate to load environment variables in your code
The project is organized into three main crates:
venues: Implementation of specific exchange APIswebsockets: Common WebSocket traits and utilitiesrest: Common REST client traits and utilities
@path/.cursorrules