pub struct AddOrderRequest {Show 21 fields
pub event: String,
pub token: Token,
pub order_type: OrderType,
pub side: BuySell,
pub pair: String,
pub volume: Decimal,
pub req_id: Option<i64>,
pub price: Option<Decimal>,
pub price_2: Option<Decimal>,
pub leverage: Option<i64>,
pub reduce_only: Option<bool>,
pub order_flags: Option<Vec<OrderFlag>>,
pub start_time: Option<String>,
pub expire_time: Option<String>,
pub deadline: Option<String>,
pub user_ref: Option<String>,
pub validate: Option<String>,
pub close_order_type: Option<OrderType>,
pub close_price: Option<Decimal>,
pub close_price_2: Option<Decimal>,
pub time_in_force: Option<TimeInForce>,
}
Expand description
Request send via websocket to add an order
Fields§
§event: String
§token: Token
§order_type: OrderType
§side: BuySell
§pair: String
§volume: Decimal
§req_id: Option<i64>
§price: Option<Decimal>
§price_2: Option<Decimal>
§leverage: Option<i64>
§reduce_only: Option<bool>
§order_flags: Option<Vec<OrderFlag>>
§start_time: Option<String>
§expire_time: Option<String>
§deadline: Option<String>
§user_ref: Option<String>
§validate: Option<String>
§close_order_type: Option<OrderType>
§close_price: Option<Decimal>
§close_price_2: Option<Decimal>
§time_in_force: Option<TimeInForce>
Implementations§
Trait Implementations§
Source§impl Debug for AddOrderRequest
impl Debug for AddOrderRequest
Source§impl PartialEq for AddOrderRequest
impl PartialEq for AddOrderRequest
Source§impl Serialize for AddOrderRequest
impl Serialize for AddOrderRequest
impl Eq for AddOrderRequest
impl StructuralPartialEq for AddOrderRequest
Auto Trait Implementations§
impl Freeze for AddOrderRequest
impl RefUnwindSafe for AddOrderRequest
impl Send for AddOrderRequest
impl Sync for AddOrderRequest
impl Unpin for AddOrderRequest
impl UnwindSafe for AddOrderRequest
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.