Struct binance::futures::account::FuturesAccount [−][src]
pub struct FuturesAccount { pub client: Client, pub recv_window: u64, }
Fields
client: Client
recv_window: u64
Implementations
pub async fn limit_buy(
&self,
symbol: impl Into<String>,
qty: impl Into<f64>,
price: f64,
time_in_force: TimeInForce
) -> Result<Transaction>
pub async fn limit_sell(
&self,
symbol: impl Into<String>,
qty: impl Into<f64>,
price: f64,
time_in_force: TimeInForce
) -> Result<Transaction>
pub async fn market_buy<S, F>(&self, symbol: S, qty: F) -> Result<Transaction> where
S: Into<String>,
F: Into<f64>,
pub async fn market_sell<S, F>(&self, symbol: S, qty: F) -> Result<Transaction> where
S: Into<String>,
F: Into<f64>,
Place a cancellation order
pub async fn position_information<S>(&self, symbol: S) -> Result<Vec<Position>> where
S: Into<String>,
pub async fn change_initial_leverage<S>(
&self,
symbol: S,
leverage: u8
) -> Result<ChangeLeverageResponse> where
S: Into<String>,
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for FuturesAccount
impl Send for FuturesAccount
impl Sync for FuturesAccount
impl Unpin for FuturesAccount
impl !UnwindSafe for FuturesAccount
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self