pub struct OrderTestBuilder { /* private fields */ }
Implementations§
Source§impl OrderTestBuilder
impl OrderTestBuilder
Sourcepub fn new(kind: OrderType) -> Self
pub fn new(kind: OrderType) -> Self
Creates a new OrderTestBuilder
instance.
pub fn kind(&mut self, kind: OrderType) -> &mut Self
pub fn strategy_id(&mut self, strategy_id: StrategyId) -> &mut Self
pub fn instrument_id(&mut self, instrument_id: InstrumentId) -> &mut Self
pub fn client_order_id(&mut self, client_order_id: ClientOrderId) -> &mut Self
pub fn trade_id(&mut self, trade_id: TradeId) -> &mut Self
pub fn currency(&mut self, currency: Currency) -> &mut Self
pub fn side(&mut self, side: OrderSide) -> &mut Self
pub fn quantity(&mut self, quantity: Quantity) -> &mut Self
pub fn price(&mut self, price: Price) -> &mut Self
pub fn trigger_price(&mut self, trigger_price: Price) -> &mut Self
pub fn trigger_type(&mut self, trigger_type: TriggerType) -> &mut Self
pub fn limit_offset(&mut self, limit_offset: Price) -> &mut Self
pub fn trailing_offset(&mut self, trailing_offset: Price) -> &mut Self
pub fn trailing_offset_type( &mut self, trailing_offset_type: TrailingOffsetType, ) -> &mut Self
pub fn time_in_force(&mut self, time_in_force: TimeInForce) -> &mut Self
pub fn expire_time(&mut self, expire_time: UnixNanos) -> &mut Self
pub fn display_qty(&mut self, display_qty: Quantity) -> &mut Self
pub fn liquidity_side(&mut self, liquidity_side: LiquiditySide) -> &mut Self
pub fn emulation_trigger(&mut self, emulation_trigger: TriggerType) -> &mut Self
pub fn trigger_instrument_id( &mut self, trigger_instrument_id: InstrumentId, ) -> &mut Self
pub fn order_list_id(&mut self, order_list_id: OrderListId) -> &mut Self
pub fn linked_order_ids( &mut self, linked_order_ids: Vec<ClientOrderId>, ) -> &mut Self
pub fn parent_order_id(&mut self, parent_order_id: ClientOrderId) -> &mut Self
pub fn exec_algorithm_id( &mut self, exec_algorithm_id: ExecAlgorithmId, ) -> &mut Self
pub fn exec_algorithm_params( &mut self, exec_algorithm_params: HashMap<Ustr, Ustr>, ) -> &mut Self
pub fn exec_spawn_id(&mut self, exec_spawn_id: ClientOrderId) -> &mut Self
pub fn init_id(&mut self, init_id: UUID4) -> &mut Self
pub fn ts_init(&mut self, ts_init: UnixNanos) -> &mut Self
pub fn reduce_only(&mut self, reduce_only: bool) -> &mut Self
pub fn post_only(&mut self, post_only: bool) -> &mut Self
pub fn quote_quantity(&mut self, quote_quantity: bool) -> &mut Self
pub fn reconciliation(&mut self, reconciliation: bool) -> &mut Self
pub fn contingency_type( &mut self, contingency_type: ContingencyType, ) -> &mut Self
pub fn build(&self) -> OrderAny
Auto Trait Implementations§
impl Freeze for OrderTestBuilder
impl RefUnwindSafe for OrderTestBuilder
impl Send for OrderTestBuilder
impl Sync for OrderTestBuilder
impl Unpin for OrderTestBuilder
impl UnwindSafe for OrderTestBuilder
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