pub struct TriggerOrderHistoryEntry {Show 20 fields
pub timestamp: i64,
pub trigger: Option<String>,
pub trigger_price: Option<f64>,
pub trigger_offset: Option<f64>,
pub trigger_order_id: String,
pub order_id: Option<String>,
pub order_state: String,
pub instrument_name: String,
pub request: Option<String>,
pub direction: String,
pub price: Option<f64>,
pub amount: f64,
pub reduce_only: Option<bool>,
pub post_only: Option<bool>,
pub order_type: Option<String>,
pub label: Option<String>,
pub linked_order_type: Option<String>,
pub oco_ref: Option<String>,
pub trigger_source: Option<String>,
pub last_update_timestamp: Option<i64>,
}Expand description
A single entry in the trigger order history
Represents a trigger order event such as creation, activation, execution, or cancellation.
Fields§
§timestamp: i64Timestamp of the event in milliseconds since Unix epoch
trigger: Option<String>Trigger type: “index_price”, “mark_price”, or “last_price”
trigger_price: Option<f64>Trigger price (only for future trigger orders)
trigger_offset: Option<f64>Maximum deviation from price peak for trailing trigger orders
trigger_order_id: StringID of the trigger order before triggering
order_id: Option<String>Unique order identifier after triggering
order_state: StringOrder state: “triggered”, “cancelled”, or “rejected”
instrument_name: StringUnique instrument identifier
request: Option<String>Type of last request: “cancel” or “trigger:order”
direction: StringDirection: “buy” or “sell”
price: Option<f64>Price in base currency
amount: f64Order size (USD for perpetual/inverse, base currency for options/linear)
reduce_only: Option<bool>True for reduce-only orders
post_only: Option<bool>True for post-only orders
order_type: Option<String>Order type: “limit” or “market”
label: Option<String>User defined label
linked_order_type: Option<String>True if order can be triggered by another order
oco_ref: Option<String>Unique reference for OCO (one_cancels_others) pair
trigger_source: Option<String>Source of the order linked to trigger order
last_update_timestamp: Option<i64>Last update timestamp in milliseconds since Unix epoch
Trait Implementations§
Source§impl Clone for TriggerOrderHistoryEntry
impl Clone for TriggerOrderHistoryEntry
Source§fn clone(&self) -> TriggerOrderHistoryEntry
fn clone(&self) -> TriggerOrderHistoryEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more