Struct binance_api_async::account::Account [−][src]
Fields
client: Client
recv_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]
S: Into<String>,
pub async fn get_open_orders<S>(
&self,
symbol: S
) -> Result<Vec<Order>, BinanceErr> where
S: Into<String>,
[src]
&self,
symbol: S
) -> Result<Vec<Order>, BinanceErr> where
S: Into<String>,
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]
&self,
symbol: S
) -> Result<(), BinanceErr> where
S: Into<String>,
pub async fn cancel_all_open_orders<S>(
&self,
symbol: S
) -> Result<Vec<Order>, BinanceErr> where
S: Into<String>,
[src]
&self,
symbol: S
) -> Result<Vec<Order>, BinanceErr> where
S: Into<String>,
pub async fn order_status<S>(
&self,
symbol: S,
order_id: u64
) -> Result<Order, BinanceErr> where
S: Into<String>,
[src]
&self,
symbol: S,
order_id: u64
) -> Result<Order, BinanceErr> where
S: Into<String>,
pub async fn test_order_status<S>(
&self,
symbol: S,
order_id: u64
) -> Result<(), BinanceErr> where
S: Into<String>,
[src]
&self,
symbol: S,
order_id: u64
) -> Result<(), BinanceErr> where
S: Into<String>,
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]
&self,
symbol: S,
qty: F,
price: f64
) -> Result<Transaction, BinanceErr> where
S: Into<String>,
F: Into<f64>,
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]
&self,
symbol: S,
qty: F,
price: f64
) -> Result<(), BinanceErr> where
S: Into<String>,
F: Into<f64>,
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]
&self,
symbol: S,
qty: F,
price: f64
) -> Result<Transaction, BinanceErr> where
S: Into<String>,
F: Into<f64>,
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]
&self,
symbol: S,
qty: F,
price: f64
) -> Result<(), BinanceErr> where
S: Into<String>,
F: Into<f64>,
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]
&self,
symbol: S,
qty: F
) -> Result<Transaction, BinanceErr> where
S: Into<String>,
F: Into<f64>,
pub async fn test_market_buy<S, F>(
&self,
symbol: S,
qty: F
) -> Result<(), BinanceErr> where
S: Into<String>,
F: Into<f64>,
[src]
&self,
symbol: S,
qty: F
) -> Result<(), BinanceErr> where
S: Into<String>,
F: Into<f64>,
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]
&self,
symbol: S,
qty: F
) -> Result<Transaction, BinanceErr> where
S: Into<String>,
F: Into<f64>,
pub async fn test_market_sell<S, F>(
&self,
symbol: S,
qty: F
) -> Result<(), BinanceErr> where
S: Into<String>,
F: Into<f64>,
[src]
&self,
symbol: S,
qty: F
) -> Result<(), BinanceErr> where
S: Into<String>,
F: Into<f64>,
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]
&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>,
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]
&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>,
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]
&self,
symbol: S,
order_id: u64
) -> Result<OrderCanceled, BinanceErr> where
S: Into<String>,
pub async fn test_cancel_order<S>(
&self,
symbol: S,
order_id: u64
) -> Result<(), BinanceErr> where
S: Into<String>,
[src]
&self,
symbol: S,
order_id: u64
) -> Result<(), BinanceErr> where
S: Into<String>,
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]
&self,
symbol: S
) -> Result<Vec<TradeHistory>, BinanceErr> where
S: Into<String>,
Trait Implementations
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]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,