Struct binance_api_async::account::Account[][src]

pub struct Account {
    pub client: Client,
    pub recv_window: u64,
}

Fields

client: Clientrecv_window: u64

Implementations

impl Account[src]

pub async fn get_account(&self) -> Result<AccountInformation, BinanceErr>[src]

pub async fn get_balance<S>(&self, asset: S) -> Result<Balance, BinanceErr> where
    S: Into<String>, 
[src]

pub async fn get_open_orders<S>(
    &self,
    symbol: S
) -> Result<Vec<Order>, BinanceErr> where
    S: Into<String>, 
[src]

pub async fn get_all_open_orders(&self) -> Result<Vec<Order>, BinanceErr>[src]

pub async fn cancel_all_open_orders_void<S>(
    &self,
    symbol: S
) -> Result<(), BinanceErr> where
    S: Into<String>, 
[src]

pub async fn cancel_all_open_orders<S>(
    &self,
    symbol: S
) -> Result<Vec<Order>, BinanceErr> where
    S: Into<String>, 
[src]

pub async fn order_status<S>(
    &self,
    symbol: S,
    order_id: u64
) -> Result<Order, BinanceErr> where
    S: Into<String>, 
[src]

pub async fn test_order_status<S>(
    &self,
    symbol: S,
    order_id: u64
) -> Result<(), BinanceErr> where
    S: Into<String>, 
[src]

Place a test status order

This order is sandboxed: it is validated, but not sent to the matching engine.

pub async fn limit_buy<S, F>(
    &self,
    symbol: S,
    qty: F,
    price: f64
) -> Result<Transaction, BinanceErr> where
    S: Into<String>,
    F: Into<f64>, 
[src]

pub async fn test_limit_buy<S, F>(
    &self,
    symbol: S,
    qty: F,
    price: f64
) -> Result<(), BinanceErr> where
    S: Into<String>,
    F: Into<f64>, 
[src]

Place a test limit order - BUY

This order is sandboxed: it is validated, but not sent to the matching engine.

pub async fn limit_sell<S, F>(
    &self,
    symbol: S,
    qty: F,
    price: f64
) -> Result<Transaction, BinanceErr> where
    S: Into<String>,
    F: Into<f64>, 
[src]

pub async fn test_limit_sell<S, F>(
    &self,
    symbol: S,
    qty: F,
    price: f64
) -> Result<(), BinanceErr> where
    S: Into<String>,
    F: Into<f64>, 
[src]

Place a test LIMIT order - SELL

This order is sandboxed: it is validated, but not sent to the matching engine.

pub async fn market_buy<S, F>(
    &self,
    symbol: S,
    qty: F
) -> Result<Transaction, BinanceErr> where
    S: Into<String>,
    F: Into<f64>, 
[src]

pub async fn test_market_buy<S, F>(
    &self,
    symbol: S,
    qty: F
) -> Result<(), BinanceErr> where
    S: Into<String>,
    F: Into<f64>, 
[src]

Place a test MARKET order - BUY

This order is sandboxed: it is validated, but not sent to the matching engine.

pub async fn market_sell<S, F>(
    &self,
    symbol: S,
    qty: F
) -> Result<Transaction, BinanceErr> where
    S: Into<String>,
    F: Into<f64>, 
[src]

pub async fn test_market_sell<S, F>(
    &self,
    symbol: S,
    qty: F
) -> Result<(), BinanceErr> where
    S: Into<String>,
    F: Into<f64>, 
[src]

Place a test MARKET order - SELL

This order is sandboxed: it is validated, but not sent to the matching engine.

pub async fn custom_order<S, F>(
    &self,
    symbol: S,
    qty: F,
    price: f64,
    order_side: S,
    order_type: S,
    execution_type: S
) -> Result<Transaction, BinanceErr> where
    S: Into<String>,
    F: Into<f64>, 
[src]

Place a custom order

pub async fn test_custom_order<S, F>(
    &self,
    symbol: S,
    qty: F,
    price: f64,
    order_side: S,
    order_type: S,
    execution_type: S
) -> Result<(), BinanceErr> where
    S: Into<String>,
    F: Into<f64>, 
[src]

Place a test custom order

This order is sandboxed: it is validated, but not sent to the matching engine.

pub async fn cancel_order<S>(
    &self,
    symbol: S,
    order_id: u64
) -> Result<OrderCanceled, BinanceErr> where
    S: Into<String>, 
[src]

pub async fn test_cancel_order<S>(
    &self,
    symbol: S,
    order_id: u64
) -> Result<(), BinanceErr> where
    S: Into<String>, 
[src]

Place a test cancel order

This order is sandboxed: it is validated, but not sent to the matching engine.

pub async fn trade_history<S>(
    &self,
    symbol: S
) -> Result<Vec<TradeHistory>, BinanceErr> where
    S: Into<String>, 
[src]

Trait Implementations

impl Binance for Account[src]

impl Clone for Account[src]

Auto Trait Implementations

impl RefUnwindSafe for Account

impl Send for Account

impl Sync for Account

impl Unpin for Account

impl UnwindSafe for Account

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> Instrument 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> 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,