pub struct OrderInitializedBuilder { /* private fields */ }
Expand description
Builder for OrderInitialized
.
Implementations§
Source§impl OrderInitializedBuilder
impl OrderInitializedBuilder
Sourcepub fn trader_id(&mut self, value: TraderId) -> &mut Self
pub fn trader_id(&mut self, value: TraderId) -> &mut Self
The trader ID associated with the event.
Sourcepub fn strategy_id(&mut self, value: StrategyId) -> &mut Self
pub fn strategy_id(&mut self, value: StrategyId) -> &mut Self
The strategy ID associated with the event.
Sourcepub fn instrument_id(&mut self, value: InstrumentId) -> &mut Self
pub fn instrument_id(&mut self, value: InstrumentId) -> &mut Self
The instrument ID associated with the event.
Sourcepub fn client_order_id(&mut self, value: ClientOrderId) -> &mut Self
pub fn client_order_id(&mut self, value: ClientOrderId) -> &mut Self
The client order ID associated with the event.
Sourcepub fn order_side(&mut self, value: OrderSide) -> &mut Self
pub fn order_side(&mut self, value: OrderSide) -> &mut Self
The order side.
Sourcepub fn order_type(&mut self, value: OrderType) -> &mut Self
pub fn order_type(&mut self, value: OrderType) -> &mut Self
The order type.
Sourcepub fn time_in_force(&mut self, value: TimeInForce) -> &mut Self
pub fn time_in_force(&mut self, value: TimeInForce) -> &mut Self
The order time in force.
Sourcepub fn post_only(&mut self, value: bool) -> &mut Self
pub fn post_only(&mut self, value: bool) -> &mut Self
If the order will only provide liquidity (make a market).
Sourcepub fn reduce_only(&mut self, value: bool) -> &mut Self
pub fn reduce_only(&mut self, value: bool) -> &mut Self
If the order carries the ‘reduce-only’ execution instruction.
Sourcepub fn quote_quantity(&mut self, value: bool) -> &mut Self
pub fn quote_quantity(&mut self, value: bool) -> &mut Self
If the order quantity is denominated in the quote currency.
Sourcepub fn reconciliation(&mut self, value: bool) -> &mut Self
pub fn reconciliation(&mut self, value: bool) -> &mut Self
If the event was generated during reconciliation.
Sourcepub fn ts_event(&mut self, value: UnixNanos) -> &mut Self
pub fn ts_event(&mut self, value: UnixNanos) -> &mut Self
UNIX timestamp (nanoseconds) when the event occurred.
Sourcepub fn ts_init(&mut self, value: UnixNanos) -> &mut Self
pub fn ts_init(&mut self, value: UnixNanos) -> &mut Self
UNIX timestamp (nanoseconds) when the event was initialized.
Sourcepub fn trigger_price(&mut self, value: Option<Price>) -> &mut Self
pub fn trigger_price(&mut self, value: Option<Price>) -> &mut Self
The order trigger price (STOP).
Sourcepub fn trigger_type(&mut self, value: Option<TriggerType>) -> &mut Self
pub fn trigger_type(&mut self, value: Option<TriggerType>) -> &mut Self
The trigger type for the order.
Sourcepub fn limit_offset(&mut self, value: Option<Decimal>) -> &mut Self
pub fn limit_offset(&mut self, value: Option<Decimal>) -> &mut Self
The trailing offset for the orders limit price.
Sourcepub fn trailing_offset(&mut self, value: Option<Decimal>) -> &mut Self
pub fn trailing_offset(&mut self, value: Option<Decimal>) -> &mut Self
The trailing offset for the orders trigger price (STOP).
Sourcepub fn trailing_offset_type(
&mut self,
value: Option<TrailingOffsetType>,
) -> &mut Self
pub fn trailing_offset_type( &mut self, value: Option<TrailingOffsetType>, ) -> &mut Self
The trailing offset type.
Sourcepub fn expire_time(&mut self, value: Option<UnixNanos>) -> &mut Self
pub fn expire_time(&mut self, value: Option<UnixNanos>) -> &mut Self
The order expiration, None
for no expiration.
Sourcepub fn display_qty(&mut self, value: Option<Quantity>) -> &mut Self
pub fn display_qty(&mut self, value: Option<Quantity>) -> &mut Self
The quantity of the LIMIT
order to display on the public book (iceberg).
Sourcepub fn emulation_trigger(&mut self, value: Option<TriggerType>) -> &mut Self
pub fn emulation_trigger(&mut self, value: Option<TriggerType>) -> &mut Self
The emulation trigger type for the order.
Sourcepub fn trigger_instrument_id(
&mut self,
value: Option<InstrumentId>,
) -> &mut Self
pub fn trigger_instrument_id( &mut self, value: Option<InstrumentId>, ) -> &mut Self
The emulation trigger instrument ID for the order (if None
then will be the instrument_id
).
Sourcepub fn contingency_type(&mut self, value: Option<ContingencyType>) -> &mut Self
pub fn contingency_type(&mut self, value: Option<ContingencyType>) -> &mut Self
The order contingency type.
Sourcepub fn order_list_id(&mut self, value: Option<OrderListId>) -> &mut Self
pub fn order_list_id(&mut self, value: Option<OrderListId>) -> &mut Self
The order list ID associated with the order.
Sourcepub fn linked_order_ids(
&mut self,
value: Option<Vec<ClientOrderId>>,
) -> &mut Self
pub fn linked_order_ids( &mut self, value: Option<Vec<ClientOrderId>>, ) -> &mut Self
The order linked client order ID(s).
Sourcepub fn parent_order_id(&mut self, value: Option<ClientOrderId>) -> &mut Self
pub fn parent_order_id(&mut self, value: Option<ClientOrderId>) -> &mut Self
The orders parent client order ID.
Sourcepub fn exec_algorithm_id(&mut self, value: Option<ExecAlgorithmId>) -> &mut Self
pub fn exec_algorithm_id(&mut self, value: Option<ExecAlgorithmId>) -> &mut Self
The execution algorithm ID for the order.
Sourcepub fn exec_algorithm_params(
&mut self,
value: Option<IndexMap<Ustr, Ustr>>,
) -> &mut Self
pub fn exec_algorithm_params( &mut self, value: Option<IndexMap<Ustr, Ustr>>, ) -> &mut Self
The execution algorithm parameters for the order.
Sourcepub fn exec_spawn_id(&mut self, value: Option<ClientOrderId>) -> &mut Self
pub fn exec_spawn_id(&mut self, value: Option<ClientOrderId>) -> &mut Self
The execution algorithm spawning primary client order ID.
The custom user tags for the order.
Sourcepub fn build(&self) -> Result<OrderInitialized, OrderInitializedBuilderError>
pub fn build(&self) -> Result<OrderInitialized, OrderInitializedBuilderError>
Trait Implementations§
Source§impl Clone for OrderInitializedBuilder
impl Clone for OrderInitializedBuilder
Source§fn clone(&self) -> OrderInitializedBuilder
fn clone(&self) -> OrderInitializedBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for OrderInitializedBuilder
impl RefUnwindSafe for OrderInitializedBuilder
impl Send for OrderInitializedBuilder
impl Sync for OrderInitializedBuilder
impl Unpin for OrderInitializedBuilder
impl UnwindSafe for OrderInitializedBuilder
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,
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