Struct binance::account::OrderRequest
source · pub struct OrderRequest {
pub symbol: String,
pub side: OrderSide,
pub order_type: OrderType,
pub time_in_force: Option<TimeInForce>,
pub quantity: Option<f64>,
pub quote_order_qty: Option<f64>,
pub price: Option<f64>,
pub new_client_order_id: Option<String>,
pub stop_price: Option<f64>,
pub iceberg_qty: Option<f64>,
pub new_order_resp_type: Option<OrderResponse>,
pub recv_window: Option<u64>,
}Expand description
Order Request perform an order for the account
Fields§
§symbol: String§side: OrderSide§order_type: OrderType§time_in_force: Option<TimeInForce>§quantity: Option<f64>§quote_order_qty: Option<f64>§price: Option<f64>§new_client_order_id: Option<String>A unique id for the order, automatically generated if not sent.
stop_price: Option<f64>Used with stop loss, stop loss limit, take profit and take profit limit order types.
iceberg_qty: Option<f64>Used with limit, stop loss limit and take profit limit to create an iceberg order.
new_order_resp_type: Option<OrderResponse>Set the response json, market and limit default to full others to ack.
recv_window: Option<u64>Cannot be greater than 60000
Trait Implementations§
source§impl Clone for OrderRequest
impl Clone for OrderRequest
source§fn clone(&self) -> OrderRequest
fn clone(&self) -> OrderRequest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for OrderRequest
impl Debug for OrderRequest
source§impl Default for OrderRequest
impl Default for OrderRequest
source§fn default() -> OrderRequest
fn default() -> OrderRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for OrderRequest
impl<'de> Deserialize<'de> for OrderRequest
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more