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