Struct binance_client::ExchangeInfoSymbol [−][src]
The trading symbol data.
Fields
symbol: StringThe symbol name.
status: StatusThe symbol status on the exchange.
base_asset: StringThe secondary token in the trading pair.
base_asset_precision: usizeThe generic number of fractional digits in the secondary token. Do not use for the price scale!
quote_asset: StringThe primary token in the trading pair.
quote_precision: usizeThe generic number of fractional digits in the primary token. Do not use for the price scale!
order_types: Vec<OrderType>The order types allowed for the symbol.
iceberg_allowed: boolIf iceberd order is allowed for the symbol.
filters: Vec<Filter>The conditions Binance puts on the symbol.
permissions: Vec<Permission>The allowed trading methods like spot, margin, etc.
Implementations
impl Symbol[src]
pub fn is_trading(&self) -> bool[src]
If the symbol is active and can be normally traded.
pub fn has_margin(&self) -> bool[src]
If margin trading is allowed for the symbol.
pub fn price_scale(&self) -> Option<u32>[src]
The number of fractional digits in the symbol price.
E.g. 0.000256 has 6 fractional digits.
E.g. 0.42 has 2 fractional digits.
pub fn quantity_scale(&self) -> Option<u32>[src]
The number of fractional digits in the symbol quantity.
Trait Implementations
impl Debug for Symbol[src]
impl<'de> Deserialize<'de> for Symbol[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for Symbol[src]
impl Send for Symbol[src]
impl Sync for Symbol[src]
impl Unpin for Symbol[src]
impl UnwindSafe for Symbol[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<T> Typeable for T where
T: Any,
T: Any,