[][src]Struct cxmr_broker::ExchangeBroker

pub struct ExchangeBroker { /* fields omitted */ }

Exchange markets broker.

Methods

impl ExchangeBroker[src]

pub fn new(info: ExchangeInfo) -> Self[src]

pub fn exchange(&self) -> &Exchange[src]

Returns exchange identifier.

pub fn markets(&self) -> &ExchangeMarkets[src]

Returns all markets brokers.

pub fn trading_markets(&self) -> Vec<&MarketBroker>[src]

Returns all trading markets brokers.

pub fn trading_pairs(&self) -> Vec<CurrencyPair>[src]

Returns all trading markets currency pairs.

pub fn get(&self, pair: &CurrencyPair) -> Option<&MarketBroker>[src]

Returns currency pair market.

pub fn get_mut(&mut self, pair: &CurrencyPair) -> Option<&mut MarketBroker>[src]

Returns currency pair market.

pub fn symbol_pairs(&self, symbol: &Currency) -> Option<&Vec<CurrencyPair>>[src]

Gets all currency pairs in exchange by symbol.

pub fn contains_pair(&self, pair: &CurrencyPair) -> bool[src]

Returns currency pair market.

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> From<T> for T[src]

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

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.