pub struct OtocoOrderBuilder { /* private fields */ }Expand description
Builder for creating OTOCO order lists.
Implementations§
Source§impl OtocoOrderBuilder
impl OtocoOrderBuilder
Sourcepub fn new(
symbol: &str,
working_type: OrderType,
working_side: OrderSide,
working_price: &str,
working_quantity: &str,
pending_side: OrderSide,
pending_quantity: &str,
pending_above_type: OrderType,
) -> Self
pub fn new( symbol: &str, working_type: OrderType, working_side: OrderSide, working_price: &str, working_quantity: &str, pending_side: OrderSide, pending_quantity: &str, pending_above_type: OrderType, ) -> Self
Create a new OTOCO order list builder.
pub fn list_client_order_id(self, id: &str) -> Self
pub fn response_type(self, resp_type: OrderResponseType) -> Self
pub fn self_trade_prevention_mode(self, mode: &str) -> Self
pub fn working_client_order_id(self, id: &str) -> Self
pub fn working_iceberg_qty(self, qty: &str) -> Self
pub fn working_time_in_force(self, tif: TimeInForce) -> Self
pub fn working_strategy_id(self, id: u64) -> Self
pub fn working_strategy_type(self, strategy_type: i32) -> Self
pub fn working_peg_price_type(self, peg_price_type: &str) -> Self
pub fn working_peg_offset_type(self, peg_offset_type: &str) -> Self
pub fn working_peg_offset_value(self, peg_offset_value: i32) -> Self
pub fn pending_above_client_order_id(self, id: &str) -> Self
pub fn pending_above_price(self, price: &str) -> Self
pub fn pending_above_stop_price(self, price: &str) -> Self
pub fn pending_above_trailing_delta(self, delta: u64) -> Self
pub fn pending_above_iceberg_qty(self, qty: &str) -> Self
pub fn pending_above_time_in_force(self, tif: TimeInForce) -> Self
pub fn pending_above_strategy_id(self, id: u64) -> Self
pub fn pending_above_strategy_type(self, strategy_type: i32) -> Self
pub fn pending_above_peg_price_type(self, peg_price_type: &str) -> Self
pub fn pending_above_peg_offset_type(self, peg_offset_type: &str) -> Self
pub fn pending_above_peg_offset_value(self, peg_offset_value: i32) -> Self
pub fn pending_below_type(self, order_type: OrderType) -> Self
pub fn pending_below_client_order_id(self, id: &str) -> Self
pub fn pending_below_price(self, price: &str) -> Self
pub fn pending_below_stop_price(self, price: &str) -> Self
pub fn pending_below_trailing_delta(self, delta: u64) -> Self
pub fn pending_below_iceberg_qty(self, qty: &str) -> Self
pub fn pending_below_time_in_force(self, tif: TimeInForce) -> Self
pub fn pending_below_strategy_id(self, id: u64) -> Self
pub fn pending_below_strategy_type(self, strategy_type: i32) -> Self
pub fn pending_below_peg_price_type(self, peg_price_type: &str) -> Self
pub fn pending_below_peg_offset_type(self, peg_offset_type: &str) -> Self
pub fn pending_below_peg_offset_value(self, peg_offset_value: i32) -> Self
pub fn build(self) -> NewOtocoOrder
Trait Implementations§
Source§impl Clone for OtocoOrderBuilder
impl Clone for OtocoOrderBuilder
Source§fn clone(&self) -> OtocoOrderBuilder
fn clone(&self) -> OtocoOrderBuilder
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 moreAuto Trait Implementations§
impl Freeze for OtocoOrderBuilder
impl RefUnwindSafe for OtocoOrderBuilder
impl Send for OtocoOrderBuilder
impl Sync for OtocoOrderBuilder
impl Unpin for OtocoOrderBuilder
impl UnwindSafe for OtocoOrderBuilder
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