pub struct PlaceOrderRequest {Show 28 fields
pub category: Category,
pub symbol: String,
pub is_leverage: Option<i32>,
pub side: Side,
pub order_type: OrderType,
pub qty: String,
pub price: Option<String>,
pub trigger_price: Option<String>,
pub trigger_direction: Option<i32>,
pub trigger_by: Option<TriggerBy>,
pub order_filter: Option<String>,
pub order_iv: Option<String>,
pub time_in_force: Option<TimeInForce>,
pub position_idx: Option<i32>,
pub order_link_id: Option<String>,
pub take_profit: Option<String>,
pub stop_loss: Option<String>,
pub tp_trigger_by: Option<TriggerBy>,
pub sl_trigger_by: Option<TriggerBy>,
pub reduce_only: Option<bool>,
pub close_on_trigger: Option<bool>,
pub smp_type: Option<SmpType>,
pub mmp: Option<bool>,
pub tpsl_mode: Option<String>,
pub tp_limit_price: Option<String>,
pub sl_limit_price: Option<String>,
pub tp_order_type: Option<OrderType>,
pub sl_order_type: Option<OrderType>,
}Fields§
§category: Category§symbol: String§is_leverage: Option<i32>§side: Side§order_type: OrderType§qty: String§price: Option<String>§trigger_price: Option<String>§trigger_direction: Option<i32>§trigger_by: Option<TriggerBy>§order_filter: Option<String>§order_iv: Option<String>§time_in_force: Option<TimeInForce>§position_idx: Option<i32>§order_link_id: Option<String>§take_profit: Option<String>§stop_loss: Option<String>§tp_trigger_by: Option<TriggerBy>§sl_trigger_by: Option<TriggerBy>§reduce_only: Option<bool>§close_on_trigger: Option<bool>§smp_type: Option<SmpType>§mmp: Option<bool>§tpsl_mode: Option<String>§tp_limit_price: Option<String>§sl_limit_price: Option<String>§tp_order_type: Option<OrderType>§sl_order_type: Option<OrderType>Trait Implementations§
Source§impl Debug for PlaceOrderRequest
impl Debug for PlaceOrderRequest
Source§impl Default for PlaceOrderRequest
impl Default for PlaceOrderRequest
Source§fn default() -> PlaceOrderRequest
fn default() -> PlaceOrderRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PlaceOrderRequest
impl<'de> Deserialize<'de> for PlaceOrderRequest
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 PlaceOrderRequest
impl RefUnwindSafe for PlaceOrderRequest
impl Send for PlaceOrderRequest
impl Sync for PlaceOrderRequest
impl Unpin for PlaceOrderRequest
impl UnwindSafe for PlaceOrderRequest
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