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: Stringside: OrderSideorder_type: OrderTypetime_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
sourceimpl Clone for OrderRequest
impl Clone for OrderRequest
sourcefn clone(&self) -> OrderRequest
fn clone(&self) -> OrderRequest
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for OrderRequest
impl Debug for OrderRequest
sourceimpl Default for OrderRequest
impl Default for OrderRequest
sourcefn default() -> OrderRequest
fn default() -> OrderRequest
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for OrderRequest
impl<'de> Deserialize<'de> for OrderRequest
sourcefn 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
sourceimpl Serialize for OrderRequest
impl Serialize for OrderRequest
Auto Trait Implementations
impl RefUnwindSafe for OrderRequest
impl Send for OrderRequest
impl Sync for OrderRequest
impl Unpin for OrderRequest
impl UnwindSafe for OrderRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more