pub struct OrderOptions {
pub tick_size: Option<Decimal>,
pub neg_risk: Option<bool>,
pub fee_rate_bps: Option<u32>,
}Expand description
Configuration options for order creation
Fields§
§tick_size: Option<Decimal>Tick size for price rounding
neg_risk: Option<bool>Whether to use negative risk contracts
fee_rate_bps: Option<u32>Fee rate in basis points
Implementations§
Source§impl OrderOptions
impl OrderOptions
Sourcepub fn with_tick_size(self, tick_size: Decimal) -> Self
pub fn with_tick_size(self, tick_size: Decimal) -> Self
Set tick size
Sourcepub fn with_neg_risk(self, neg_risk: bool) -> Self
pub fn with_neg_risk(self, neg_risk: bool) -> Self
Set negative risk flag
Sourcepub fn with_fee_rate_bps(self, fee_rate_bps: u32) -> Self
pub fn with_fee_rate_bps(self, fee_rate_bps: u32) -> Self
Set fee rate in basis points
Trait Implementations§
Source§impl Clone for OrderOptions
impl Clone for OrderOptions
Source§fn clone(&self) -> OrderOptions
fn clone(&self) -> OrderOptions
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 OrderOptions
impl Debug for OrderOptions
Source§impl Default for OrderOptions
impl Default for OrderOptions
Source§fn default() -> OrderOptions
fn default() -> OrderOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OrderOptions
impl RefUnwindSafe for OrderOptions
impl Send for OrderOptions
impl Sync for OrderOptions
impl Unpin for OrderOptions
impl UnwindSafe for OrderOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
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