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 duplicate 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
Auto Trait Implementations§
impl Freeze for OrderRequest
impl RefUnwindSafe for OrderRequest
impl Send for OrderRequest
impl Sync for OrderRequest
impl Unpin for OrderRequest
impl UnwindSafe for OrderRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more