#[non_exhaustive]pub struct SymbolInfo {Show 26 fields
pub symbol: String,
pub status: SymbolStatus,
pub base_asset: String,
pub base_asset_precision: u32,
pub quote_asset: String,
pub quote_precision: u32,
pub quote_asset_precision: u32,
pub base_commission_precision: u32,
pub quote_commission_precision: u32,
pub order_types: Vec<String>,
pub iceberg_allowed: bool,
pub oco_allowed: bool,
pub oto_allowed: bool,
pub opo_allowed: Option<bool>,
pub quote_order_qty_market_allowed: bool,
pub allow_trailing_stop: bool,
pub cancel_replace_allowed: bool,
pub amend_allowed: Option<bool>,
pub peg_instructions_allowed: Option<bool>,
pub is_spot_trading_allowed: bool,
pub is_margin_trading_allowed: bool,
pub filters: Vec<Filter>,
pub permissions: Vec<String>,
pub permission_sets: Vec<Vec<String>>,
pub default_self_trade_prevention_mode: String,
pub allowed_self_trade_prevention_modes: Vec<String>,
}Expand description
One symbol in exchangeInfo.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.symbol: StringThe symbol, as Binance spells it.
status: SymbolStatusTrading, halted and so on.
base_asset: StringBase asset.
base_asset_precision: u32Decimal places of the base asset.
quote_asset: StringQuote asset.
quote_precision: u32Decimal places of the quote asset, as Binance’s older key spells it.
quote_asset_precision: u32Decimal places of the quote asset.
base_commission_precision: u32Decimal places of the base asset’s commission.
quote_commission_precision: u32Decimal places of the quote asset’s commission.
order_types: Vec<String>Order types the symbol accepts.
iceberg_allowed: boolWhether iceberg orders are allowed.
oco_allowed: boolWhether OCO order lists are allowed.
oto_allowed: boolWhether OTO order lists are allowed.
opo_allowed: Option<bool>Whether OPO order lists are allowed. Every captured row carries the flag; it is optional so a row without it still decodes.
quote_order_qty_market_allowed: boolWhether a market order may name a quote quantity.
allow_trailing_stop: boolWhether trailing stops are allowed.
cancel_replace_allowed: boolWhether cancel-replace is allowed.
amend_allowed: Option<bool>Whether order amendment is allowed. Every captured row carries the flag; it is optional so a row without it still decodes.
peg_instructions_allowed: Option<bool>Whether pegged orders are allowed. Every captured row carries the flag; it is optional so a row without it still decodes.
is_spot_trading_allowed: boolWhether the symbol can be traded as spot.
is_margin_trading_allowed: boolWhether the symbol can be traded on margin.
filters: Vec<Filter>Order filters.
permissions: Vec<String>Permissions the symbol is open to (older key).
permission_sets: Vec<Vec<String>>Permission sets: an account needs every permission of one set.
default_self_trade_prevention_mode: StringThe self-trade-prevention mode applied when an order names none.
allowed_self_trade_prevention_modes: Vec<String>The self-trade-prevention modes an order may name.