pub struct SymbolInfo {Show 14 fields
pub symbol: String,
pub base_asset: String,
pub quote_asset: String,
pub status: String,
pub price_precision: u8,
pub quantity_precision: u8,
pub min_quantity: Option<f64>,
pub max_quantity: Option<f64>,
pub tick_size: Option<f64>,
pub step_size: Option<f64>,
pub min_notional: Option<f64>,
pub account_type: AccountType,
pub instrument_type: Option<String>,
pub extra: Value,
}Expand description
Информация о символе.
RAW contract: connectors fill the typed fields as a convenience subset and
MUST NOT drop, filter, or canonicalize anything the exchange returned —
status carries the venue-native value verbatim, and extra is a raw
passthrough of the full native symbol record so nothing is lost. Any
normalization / active-only filtering / asset clustering is a STATION
concern, never core.
Fields§
§symbol: StringСимвол (как на бирже)
base_asset: StringБазовый актив
quote_asset: StringКотируемый актив
status: StringСтатус (TRADING, BREAK, etc.)
price_precision: u8Точность цены
quantity_precision: u8Точность количества
min_quantity: Option<f64>Минимальное количество
max_quantity: Option<f64>Максимальное количество
tick_size: Option<f64>Шаг цены (например, 0.01 для 2 знаков после запятой)
step_size: Option<f64>Шаг количества
min_notional: Option<f64>Минимальный notional (price * qty)
account_type: AccountTypeAccount / market type this symbol belongs to (Spot, FuturesCross, etc.)
instrument_type: Option<String>Native instrument/contract-type token exactly as the exchange reports it,
RAW (e.g. "PERPETUAL", "SWAP", "linear", "FUTURE", "OPTION",
"spot"). None when the venue does not distinguish. NOT normalized —
station maps it if a consumer wants a canonical enum.
extra: ValueRAW passthrough of the exchange’s native symbol record — every field the
venue returned, verbatim. The typed fields above are a convenience subset;
extra guarantees nothing the exchange said is lost. Null only if a
connector hasn’t been wired for passthrough yet.
Trait Implementations§
Source§impl Clone for SymbolInfo
impl Clone for SymbolInfo
Source§fn clone(&self) -> SymbolInfo
fn clone(&self) -> SymbolInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more