Struct binance::account::Account
[−]
[src]
pub struct Account { pub client: Client, pub recv_window: u64, }
Fields
client: Client
recv_window: u64
Methods
impl Account
[src]
fn get_account(&self) -> Result<AccountInformation, Error>
[src]
fn get_balance(&self, asset: String) -> Result<Balance, Error>
[src]
fn get_open_orders(&self, symbol: String) -> Result<Vec<Order>, Error>
[src]
fn order_status(&self, symbol: String, order_id: u32) -> Result<Order, Error>
[src]
fn limit_buy(
&self,
symbol: String,
qty: u32,
price: f64
) -> Result<Transaction, Error>
[src]
&self,
symbol: String,
qty: u32,
price: f64
) -> Result<Transaction, Error>
fn limit_sell(
&self,
symbol: String,
qty: u32,
price: f64
) -> Result<Transaction, Error>
[src]
&self,
symbol: String,
qty: u32,
price: f64
) -> Result<Transaction, Error>
fn market_buy(&self, symbol: String, qty: u32) -> Result<Transaction, Error>
[src]
fn market_sell(&self, symbol: String, qty: u32) -> Result<Transaction, Error>
[src]
fn cancel_order(
&self,
symbol: String,
order_id: u32
) -> Result<OrderCanceled, Error>
[src]
&self,
symbol: String,
order_id: u32
) -> Result<OrderCanceled, Error>