Module strings

Source
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§

AccountId
Account ID
ApiKey
API key identifier
ClientOrderId
Client order ID
CurrencyCode
Currency code (e.g., “USD”, “EUR”, “KRW”)
ExchangeName
Exchange name (e.g., “binance”, “coinbase”)
OrderId
Order ID (typically short identifiers or UUIDs)
SmartString
A convenience alias for a [LazyCompact] layout [SmartString].
StatusMessage
Short message or status
TradeId
Trade ID