Module types

Source
Expand description

Common types used across exchanges

Structs§

ApiError
Common API error structure
ApiResponse
Common API response wrapper
RateLimitInfo
Rate limit information
Symbol
Symbol type representing a trading pair (e.g., “BTC-USDT”, “ETH-BTC”)
WsSubscription
WebSocket subscription request

Enums§

Exchange
Supported exchanges

Functions§

exchange_default_ws_port
Get default WebSocket port for exchange
exchange_requires_passphrase
Check if exchange requires passphrase at compile time
is_alphanumeric_ascii
Check if a character is alphanumeric (for symbol validation)
is_valid_symbol_separator
Compile-time validation and utility functions Check if a character is a valid symbol separator
max_api_key_length
Calculate maximum API key length for buffer sizing
max_symbol_length
Calculate maximum symbol length for buffer sizing

Type Aliases§

Price
Price type alias for decimal prices
Quantity
Quantity type alias for decimal quantities