pub struct CreateOrderRequest {Show 13 fields
pub ticker: String,
pub side: BookSide,
pub count: FixedPoint,
pub price: FixedPoint,
pub time_in_force: TimeInForce,
pub self_trade_prevention_type: SelfTradePrevention,
pub subaccount: u32,
pub exchange_index: u32,
pub client_order_id: Option<String>,
pub expiration_time: Option<i64>,
pub post_only: Option<bool>,
pub cancel_order_on_pause: Option<bool>,
pub reduce_only: Option<bool>,
}Expand description
A V2 limit order using YES-price book-side semantics.
Prices serialize with four decimal places without rounding.
Fields§
§ticker: String§side: BookSide§count: FixedPoint§price: FixedPoint§time_in_force: TimeInForce§self_trade_prevention_type: SelfTradePrevention§subaccount: u32§exchange_index: u32§client_order_id: Option<String>§expiration_time: Option<i64>§post_only: Option<bool>§cancel_order_on_pause: Option<bool>§reduce_only: Option<bool>Trait Implementations§
Source§impl Clone for CreateOrderRequest
impl Clone for CreateOrderRequest
Source§impl Debug for CreateOrderRequest
impl Debug for CreateOrderRequest
Auto Trait Implementations§
impl Freeze for CreateOrderRequest
impl RefUnwindSafe for CreateOrderRequest
impl Send for CreateOrderRequest
impl Sync for CreateOrderRequest
impl Unpin for CreateOrderRequest
impl UnsafeUnpin for CreateOrderRequest
impl UnwindSafe for CreateOrderRequest
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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> ⓘ
Converts
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> ⓘ
Converts
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