pub struct OtoOrderBuilder { /* private fields */ }Expand description
Builder for creating OTO order lists.
Implementations§
Source§impl OtoOrderBuilder
impl OtoOrderBuilder
Sourcepub fn new(
symbol: &str,
working_type: OrderType,
working_side: OrderSide,
working_price: &str,
working_quantity: &str,
pending_type: OrderType,
pending_side: OrderSide,
pending_quantity: &str,
) -> Self
pub fn new( symbol: &str, working_type: OrderType, working_side: OrderSide, working_price: &str, working_quantity: &str, pending_type: OrderType, pending_side: OrderSide, pending_quantity: &str, ) -> Self
Create a new OTO 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_client_order_id(self, id: &str) -> Self
pub fn pending_price(self, price: &str) -> Self
pub fn pending_stop_price(self, price: &str) -> Self
pub fn pending_trailing_delta(self, delta: u64) -> Self
pub fn pending_iceberg_qty(self, qty: &str) -> Self
pub fn pending_time_in_force(self, tif: TimeInForce) -> Self
pub fn pending_strategy_id(self, id: u64) -> Self
pub fn pending_strategy_type(self, strategy_type: i32) -> Self
pub fn pending_peg_price_type(self, peg_price_type: &str) -> Self
pub fn pending_peg_offset_type(self, peg_offset_type: &str) -> Self
pub fn pending_peg_offset_value(self, peg_offset_value: i32) -> Self
pub fn build(self) -> NewOtoOrder
Trait Implementations§
Source§impl Clone for OtoOrderBuilder
impl Clone for OtoOrderBuilder
Source§fn clone(&self) -> OtoOrderBuilder
fn clone(&self) -> OtoOrderBuilder
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 OtoOrderBuilder
impl RefUnwindSafe for OtoOrderBuilder
impl Send for OtoOrderBuilder
impl Sync for OtoOrderBuilder
impl Unpin for OtoOrderBuilder
impl UnwindSafe for OtoOrderBuilder
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