pub struct CreateOrderRequestBuilder { /* private fields */ }Expand description
Builder for CreateOrderRequest with fluent API
Implementations§
Source§impl CreateOrderRequestBuilder
impl CreateOrderRequestBuilder
pub fn category(self, category: impl Into<String>) -> Self
pub fn symbol(self, symbol: impl Into<String>) -> Self
pub fn side(self, side: impl Into<String>) -> Self
pub fn order_type(self, order_type: impl Into<String>) -> Self
pub fn qty(self, qty: impl Into<String>) -> Self
pub fn price(self, price: impl Into<String>) -> Self
pub fn time_in_force(self, time_in_force: impl Into<String>) -> Self
pub fn position_idx(self, position_idx: u64) -> Self
pub fn order_link_id(self, order_link_id: impl Into<String>) -> Self
pub fn trigger_price(self, trigger_price: impl Into<String>) -> Self
pub fn take_profit(self, take_profit: impl Into<String>) -> Self
pub fn stop_loss(self, stop_loss: impl Into<String>) -> Self
pub fn reduce_only(self, reduce_only: bool) -> Self
pub fn close_on_trigger(self, close_on_trigger: bool) -> Self
pub fn trigger_by(self, trigger_by: impl Into<String>) -> Self
pub fn tp_trigger_by(self, tp_trigger_by: impl Into<String>) -> Self
pub fn sl_trigger_by(self, sl_trigger_by: impl Into<String>) -> Self
pub fn market_unit(self, market_unit: impl Into<String>) -> Self
pub fn slippage_tolerance_type( self, slippage_tolerance_type: impl Into<String>, ) -> Self
pub fn slippage_tolerance(self, slippage_tolerance: impl Into<String>) -> Self
pub fn trigger_direction(self, trigger_direction: i32) -> Self
pub fn order_filter(self, order_filter: impl Into<String>) -> Self
pub fn build(self) -> CreateOrderRequest
Trait Implementations§
Source§impl Debug for CreateOrderRequestBuilder
impl Debug for CreateOrderRequestBuilder
Source§impl Default for CreateOrderRequestBuilder
impl Default for CreateOrderRequestBuilder
Source§fn default() -> CreateOrderRequestBuilder
fn default() -> CreateOrderRequestBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateOrderRequestBuilder
impl RefUnwindSafe for CreateOrderRequestBuilder
impl Send for CreateOrderRequestBuilder
impl Sync for CreateOrderRequestBuilder
impl Unpin for CreateOrderRequestBuilder
impl UnwindSafe for CreateOrderRequestBuilder
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