Expand description
Common utility functions
Modules§
- id_
generation - SmartString ID generation helpers to reduce duplication across exchange adapters
- simd_
nan_ safe - SIMD NaN-safe operations submodule
Functions§
- bp_
to_ decimal - Convert basis points to decimal (1 bp = 0.01%)
- decimal_
to_ bp - Convert decimal to basis points
- format_
decimal - Format decimal for API submission (removing trailing zeros)
- generate_
order_ id - Generate a unique order ID
- normalize_
symbol - Normalize trading symbol (e.g., “BTC-USDT” -> “BTCUSDT”)
- parse_
decimal_ option - Parse optional decimal value from string
- parse_
decimal_ safe - Parse decimal value from string, returning zero on error
- parse_
symbol_ pair - Parse symbol into base and quote currencies