pub struct PutOrderParams {
pub order_id: Option<String>,
pub orig_cl_ord_id: Option<String>,
pub cl_ord_id: Option<String>,
pub order_qty: Option<u32>,
pub leaves_qty: Option<u32>,
pub price: Option<f64>,
pub stop_px: Option<f64>,
pub peg_offset_value: Option<f64>,
pub text: Option<String>,
}Expand description
Parameters for the PUT /order endpoint.
Fields§
§order_id: Option<String>Order ID
orig_cl_ord_id: Option<String>Client Order ID. See POST /order.
cl_ord_id: Option<String>Optional new Client Order ID, requires origClOrdID.
order_qty: Option<u32>Optional order quantity in units of the instrument (i.e. contracts).
leaves_qty: Option<u32>Optional leaves quantity in units of the instrument (i.e. contracts). Useful for amending partially filled orders.
price: Option<f64>Optional limit price for Limit, StopLimit, and LimitIfTouched orders.
stop_px: Option<f64>Optional trigger price for Stop, StopLimit, MarketIfTouched, and LimitIfTouched orders. Use a price below the current price for stop-sell orders and buy-if-touched orders.
peg_offset_value: Option<f64>Optional trailing offset from the current price for Stop, StopLimit, MarketIfTouched, and LimitIfTouched orders; use a negative offset for stop-sell orders and buy-if-touched orders. Optional offset from the peg price for ‘Pegged’ orders.
text: Option<String>Optional amend annotation. e.g. ‘Adjust skew’.
Trait Implementations§
Source§impl Clone for PutOrderParams
impl Clone for PutOrderParams
Source§fn clone(&self) -> PutOrderParams
fn clone(&self) -> PutOrderParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PutOrderParams
impl Debug for PutOrderParams
Source§impl Default for PutOrderParams
impl Default for PutOrderParams
Source§fn default() -> PutOrderParams
fn default() -> PutOrderParams
Source§impl<'de> Deserialize<'de> for PutOrderParams
impl<'de> Deserialize<'de> for PutOrderParams
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>,
Auto Trait Implementations§
impl Freeze for PutOrderParams
impl RefUnwindSafe for PutOrderParams
impl Send for PutOrderParams
impl Sync for PutOrderParams
impl Unpin for PutOrderParams
impl UnsafeUnpin for PutOrderParams
impl UnwindSafe for PutOrderParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more