Struct binance_client::ExchangeInfoSymbol[][src]

pub struct ExchangeInfoSymbol {
    pub symbol: String,
    pub status: Status,
    pub base_asset: String,
    pub base_asset_precision: usize,
    pub quote_asset: String,
    pub quote_precision: usize,
    pub order_types: Vec<OrderType>,
    pub iceberg_allowed: bool,
    pub filters: Vec<Filter>,
    pub permissions: Vec<Permission>,
}

The trading symbol data.

Fields

symbol: String

The symbol name.

status: Status

The symbol status on the exchange.

base_asset: String

The secondary token in the trading pair.

base_asset_precision: usize

The generic number of fractional digits in the secondary token. Do not use for the price scale!

quote_asset: String

The primary token in the trading pair.

quote_precision: usize

The 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: bool

If 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]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<T> Typeable for T where
    T: Any