[−][src]Struct cxmr_broker::ExchangeBroker
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
impl RefUnwindSafe for ExchangeBroker
impl Send for ExchangeBroker
impl Sync for ExchangeBroker
impl Unpin for ExchangeBroker
impl UnwindSafe for ExchangeBroker
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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>,