[][src]Struct cxmr_broker::BrokerAccount

pub struct BrokerAccount { /* fields omitted */ }

Broker client account.

Methods

impl BrokerAccount[src]

pub fn new(info: AccountInfo, client: SharedPrivateClient<Error>) -> Self[src]

Creates new broker account.

pub fn name(&self) -> &str[src]

Returns account name.

pub fn client(&self) -> &SharedPrivateClient<Error>[src]

Returns account client.

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

Returns account exchange identifier.

pub fn balances(&self) -> &HashMap<Currency, Balance>[src]

Returns account balances.

pub fn can_trade(&self) -> bool[src]

Returns true only if enabled by the client. Exchange can stop our trading also by the API.

pub fn maker_fee_rate(&self) -> u64[src]

Maker fee rate in basis points.

pub fn taker_fee_rate(&self) -> u64[src]

Taker fee rate in basis points.

pub fn update_info(&mut self, info: AccountInfo)[src]

Update account information.

Trait Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.