pub struct OrderData {Show 36 fields
pub category: String,
pub order_id: String,
pub order_link_id: Option<String>,
pub is_leverage: Option<String>,
pub block_trade_id: Option<String>,
pub symbol: String,
pub price: String,
pub qty: String,
pub side: String,
pub position_idx: Option<i32>,
pub order_status: String,
pub create_type: Option<String>,
pub cancel_type: Option<String>,
pub reject_reason: Option<String>,
pub avg_price: Option<String>,
pub leaves_qty: Option<String>,
pub leaves_value: Option<String>,
pub cum_exec_qty: Option<String>,
pub cum_exec_value: Option<String>,
pub cum_exec_fee: Option<String>,
pub closed_pnl: Option<String>,
pub fee_currency: Option<String>,
pub time_in_force: Option<String>,
pub order_type: String,
pub stop_order_type: Option<String>,
pub trigger_price: Option<String>,
pub take_profit: Option<String>,
pub stop_loss: Option<String>,
pub tpsl_mode: Option<String>,
pub reduce_only: Option<bool>,
pub close_on_trigger: Option<bool>,
pub smp_type: Option<String>,
pub smp_group: Option<i32>,
pub smp_order_id: Option<String>,
pub created_time: Option<String>,
pub updated_time: Option<String>,
}Expand description
Order update data from private WebSocket stream.
Fields§
§category: StringCategory (spot, linear, inverse, option).
order_id: StringOrder ID.
order_link_id: Option<String>User custom order ID.
is_leverage: Option<String>Is leverage order.
block_trade_id: Option<String>Block trade ID.
symbol: StringSymbol.
price: StringOrder price.
qty: StringOrder quantity.
side: StringSide (Buy/Sell).
position_idx: Option<i32>Position index.
order_status: StringOrder status.
create_type: Option<String>Create type.
cancel_type: Option<String>Cancel type.
reject_reason: Option<String>Reject reason.
avg_price: Option<String>Average fill price.
leaves_qty: Option<String>Remaining quantity.
leaves_value: Option<String>Remaining value.
cum_exec_qty: Option<String>Cumulative executed quantity.
cum_exec_value: Option<String>Cumulative executed value.
cum_exec_fee: Option<String>Cumulative executed fee.
closed_pnl: Option<String>Closed PnL.
fee_currency: Option<String>Fee currency.
time_in_force: Option<String>Time in force.
order_type: StringOrder type (Limit/Market).
stop_order_type: Option<String>Stop order type.
trigger_price: Option<String>Trigger price.
take_profit: Option<String>Take profit.
stop_loss: Option<String>Stop loss.
tpsl_mode: Option<String>TP/SL mode.
reduce_only: Option<bool>Reduce only.
close_on_trigger: Option<bool>Close on trigger.
smp_type: Option<String>SMP type.
smp_group: Option<i32>SMP group.
smp_order_id: Option<String>SMP order ID.
created_time: Option<String>Created time.
updated_time: Option<String>Updated time.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OrderData
impl<'de> Deserialize<'de> for OrderData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OrderData
impl RefUnwindSafe for OrderData
impl Send for OrderData
impl Sync for OrderData
impl Unpin for OrderData
impl UnwindSafe for OrderData
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