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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TriggerOrderHistoryEntry
impl Debug for TriggerOrderHistoryEntry
Source§impl<'de> Deserialize<'de> for TriggerOrderHistoryEntry
impl<'de> Deserialize<'de> for TriggerOrderHistoryEntry
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>,
Source§impl Display for TriggerOrderHistoryEntry
impl Display for TriggerOrderHistoryEntry
Source§impl PartialEq for TriggerOrderHistoryEntry
impl PartialEq for TriggerOrderHistoryEntry
Source§impl Serialize for TriggerOrderHistoryEntry
impl Serialize for TriggerOrderHistoryEntry
impl StructuralPartialEq for TriggerOrderHistoryEntry
Auto Trait Implementations§
impl Freeze for TriggerOrderHistoryEntry
impl RefUnwindSafe for TriggerOrderHistoryEntry
impl Send for TriggerOrderHistoryEntry
impl Sync for TriggerOrderHistoryEntry
impl Unpin for TriggerOrderHistoryEntry
impl UnsafeUnpin for TriggerOrderHistoryEntry
impl UnwindSafe for TriggerOrderHistoryEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.