pub struct OpocoOrderBuilder { /* private fields */ }Expand description
Builder for creating OPOCO order lists.
Implementations§
Source§impl OpocoOrderBuilder
impl OpocoOrderBuilder
Sourcepub fn new(
symbol: &str,
working_type: OrderType,
working_side: OrderSide,
working_price: &str,
working_quantity: &str,
pending_side: OrderSide,
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_above_type: OrderType, ) -> Self
Create a new OPOCO 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_quantity(self, qty: &str) -> 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) -> NewOpocoOrder
Trait Implementations§
Source§impl Clone for OpocoOrderBuilder
impl Clone for OpocoOrderBuilder
Source§fn clone(&self) -> OpocoOrderBuilder
fn clone(&self) -> OpocoOrderBuilder
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 OpocoOrderBuilder
impl RefUnwindSafe for OpocoOrderBuilder
impl Send for OpocoOrderBuilder
impl Sync for OpocoOrderBuilder
impl Unpin for OpocoOrderBuilder
impl UnwindSafe for OpocoOrderBuilder
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