pub struct AddOrderRequestBuilder { /* private fields */ }
Implementations§
Source§impl AddOrderRequestBuilder
impl AddOrderRequestBuilder
pub fn new( event: String, token: Token, order_type: OrderType, side: BuySell, pair: String, volume: Decimal, ) -> AddOrderRequestBuilder
pub fn build(&mut self) -> AddOrderRequest
pub fn req_id(&mut self, req_id: i64) -> &mut Self
pub fn price(&mut self, price: Decimal) -> &mut Self
pub fn price_2(&mut self, price_2: Decimal) -> &mut Self
pub fn leverage(&mut self, leverage: i64) -> &mut Self
pub fn reduce_only(&mut self, reduce_only: bool) -> &mut Self
pub fn order_flags(&mut self, order_flags: Vec<OrderFlag>) -> &mut Self
pub fn start_time(&mut self, start_time: String) -> &mut Self
pub fn expire_time(&mut self, expire_time: String) -> &mut Self
pub fn deadline(&mut self, deadline: String) -> &mut Self
pub fn user_ref(&mut self, user_ref: String) -> &mut Self
pub fn validate(&mut self, validate: String) -> &mut Self
pub fn close_order_type(&mut self, close_order_type: OrderType) -> &mut Self
pub fn close_price(&mut self, close_price: Decimal) -> &mut Self
pub fn close_price_2(&mut self, close_price_2: Decimal) -> &mut Self
pub fn time_in_force(&mut self, time_in_force: TimeInForce) -> &mut Self
Auto Trait Implementations§
impl Freeze for AddOrderRequestBuilder
impl RefUnwindSafe for AddOrderRequestBuilder
impl Send for AddOrderRequestBuilder
impl Sync for AddOrderRequestBuilder
impl Unpin for AddOrderRequestBuilder
impl UnwindSafe for AddOrderRequestBuilder
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