[−][src]Struct cxmr_broker::BrokerAccount
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]
fn clone(&self) -> BrokerAccount
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl !RefUnwindSafe for BrokerAccount
impl Send for BrokerAccount
impl Sync for BrokerAccount
impl Unpin for BrokerAccount
impl !UnwindSafe for BrokerAccount
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,