pub struct Symbol {Show 17 fields
pub symbol: String,
pub status: SymbolStatus,
pub base_asset: String,
pub base_asset_precision: u8,
pub quote_asset: String,
pub quote_precision: u8,
pub quote_asset_precision: u8,
pub base_commission_precision: u8,
pub quote_commission_precision: u8,
pub order_types: Vec<OrderType>,
pub iceberg_allowed: bool,
pub oco_allowed: bool,
pub quote_order_qty_market_allowed: bool,
pub is_spot_trading_allowed: bool,
pub is_margin_trading_allowed: bool,
pub filters: Vec<SymbolFilter>,
pub permissions: Vec<SymbolPermission>,
}Expand description
Trading symbol information.
Fields§
§symbol: StringSymbol name (e.g., “BTCUSDT”).
status: SymbolStatusSymbol status.
base_asset: StringBase asset (e.g., “BTC”).
base_asset_precision: u8Base asset precision.
quote_asset: StringQuote asset (e.g., “USDT”).
quote_precision: u8Quote asset precision.
quote_asset_precision: u8Quote asset precision (duplicate field in API).
base_commission_precision: u8Base commission precision.
quote_commission_precision: u8Quote commission precision.
order_types: Vec<OrderType>Allowed order types.
iceberg_allowed: boolWhether iceberg orders are allowed.
oco_allowed: boolWhether OCO orders are allowed.
quote_order_qty_market_allowed: boolWhether quote order quantity is allowed for market orders.
is_spot_trading_allowed: boolWhether spot trading is allowed.
is_margin_trading_allowed: boolWhether margin trading is allowed.
filters: Vec<SymbolFilter>Symbol filters.
permissions: Vec<SymbolPermission>Symbol permissions.
Implementations§
Source§impl Symbol
impl Symbol
Sourcepub fn lot_size(&self) -> Option<&SymbolFilter>
pub fn lot_size(&self) -> Option<&SymbolFilter>
Get the LOT_SIZE filter for this symbol.
Sourcepub fn price_filter(&self) -> Option<&SymbolFilter>
pub fn price_filter(&self) -> Option<&SymbolFilter>
Get the PRICE_FILTER filter for this symbol.
Sourcepub fn min_notional(&self) -> Option<&SymbolFilter>
pub fn min_notional(&self) -> Option<&SymbolFilter>
Get the MIN_NOTIONAL filter for this symbol.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Symbol
impl<'de> Deserialize<'de> for Symbol
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Symbol
impl RefUnwindSafe for Symbol
impl Send for Symbol
impl Sync for Symbol
impl Unpin for Symbol
impl UnwindSafe for Symbol
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more