Expand description
SmartString type aliases for memory efficiency
This module provides optimized SmartString types for common use cases in HFT systems. SmartString is used for strings that are typically less than 24 bytes, which includes most symbols, exchange names, currency codes, and other short identifiers.
Functions§
- currency_
code - Create a CurrencyCode from a string slice
- exchange_
name - Create an ExchangeName from a string slice
- order_
id - Create an OrderId from a string slice
- safe_
format - Safe formatting into SmartString for HFT systems
Type Aliases§
- Account
Id - Account ID
- ApiKey
- API key identifier
- Client
Order Id - Client order ID
- Currency
Code - Currency code (e.g., “USD”, “EUR”, “KRW”)
- Exchange
Name - Exchange name (e.g., “binance”, “coinbase”)
- OrderId
- Order ID (typically short identifiers or UUIDs)
- Smart
String - A convenience alias for a [
LazyCompact] layout [SmartString]. - Status
Message - Short message or status
- TradeId
- Trade ID