Struct binance_client::OrderPostQuery[][src]

pub struct OrderPostQuery {
    pub symbol: String,
    pub side: OrderSide,
    pub type: OrderType,
    pub time_in_force: Option<OrderTimeInForce>,
    pub quantity: Option<Decimal>,
    pub quote_order_qty: Option<Decimal>,
    pub price: Option<Decimal>,
    pub new_client_order_id: Option<String>,
    pub stop_price: Option<Decimal>,
    pub iceberg_qty: Option<Decimal>,
    pub new_order_resp_type: Option<ResponseType>,
    pub recv_window: Option<i64>,
    pub timestamp: i64,
}

The https://www.binance.com/api/v3/order POST request query.

Fields

symbol: String

The symbol name.

side: OrderSide

The order side.

type: OrderType

The order type.

time_in_force: Option<OrderTimeInForce>

The order time-in-force.

quantity: Option<Decimal>

The order quantity in the secondary asset.

quote_order_qty: Option<Decimal>

The order quantity in the primary asset.

price: Option<Decimal>

The order price. Required for limit orders.

new_client_order_id: Option<String>

A unique id for the order. Automatically generated if not sent.

stop_price: Option<Decimal>

Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders.

iceberg_qty: Option<Decimal>

The iceberg order quantity.

new_order_resp_type: Option<ResponseType>

Set the response JSON. ACK, RESULT, or FULL; MARKET and LIMIT order types default to FULL, all other orders default to ACK.

recv_window: Option<i64>

The allowed time window between the request and response in milliseconds.

timestamp: i64

The request time in milliseconds.

Implementations

impl Query[src]

pub fn market(
    symbol: &str,
    side: OrderSide,
    quantity: Decimal,
    use_base_quantity: bool
) -> Self
[src]

Creates a market order request.

pub fn limit(
    symbol: &str,
    side: OrderSide,
    quantity: Decimal,
    price: Decimal
) -> Self
[src]

Creates a limit order request.

Trait Implementations

impl ToString for Query[src]

Auto Trait Implementations

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, 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, 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<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<T> Typeable for T where
    T: Any