pub struct TriggerOrder {Show 20 fields
pub id: String,
pub status: String,
pub name: String,
pub symbol: String,
pub price: Option<Decimal>,
pub quantity: Option<Decimal>,
pub executed_price: Option<Decimal>,
pub executed_qty: Option<Decimal>,
pub submitted_at: Option<OffsetDateTime>,
pub action: i32,
pub order_type: String,
pub trigger_price: Option<Decimal>,
pub msg: String,
pub currency: String,
pub last_done: Option<Decimal>,
pub updated_at: Option<OffsetDateTime>,
pub time_in_force: GridTimeInForce,
pub gtd: String,
pub trigger_at: Option<OffsetDateTime>,
pub trigger_status: i32,
}Expand description
A grid trigger-history entry (one triggered order).
Fields§
§id: StringTriggered order ID
status: StringOrder status
name: StringStock name
symbol: StringSecurity symbol (e.g. 700.HK)
price: Option<Decimal>Order price
quantity: Option<Decimal>Order quantity
executed_price: Option<Decimal>Executed average price
executed_qty: Option<Decimal>Executed total quantity
submitted_at: Option<OffsetDateTime>Submitted time (RFC3339)
action: i32Buy / sell direction
order_type: StringOrder type
trigger_price: Option<Decimal>Trigger price
msg: StringRejection reason, if any
currency: StringSettlement currency
last_done: Option<Decimal>Latest quote price
updated_at: Option<OffsetDateTime>Last updated time (RFC3339)
time_in_force: GridTimeInForceTime in force (0 = Day, 1 = GTC, 6 = GTD)
gtd: StringExpiry date (YYYY-MM-DD, GTD)
trigger_at: Option<OffsetDateTime>Trigger time (RFC3339)
trigger_status: i32Conditional trigger status
Trait Implementations§
Source§impl Clone for TriggerOrder
impl Clone for TriggerOrder
Source§fn clone(&self) -> TriggerOrder
fn clone(&self) -> TriggerOrder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TriggerOrder
impl Debug for TriggerOrder
Source§impl Default for TriggerOrder
impl Default for TriggerOrder
Source§fn default() -> TriggerOrder
fn default() -> TriggerOrder
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TriggerOrderwhere
TriggerOrder: Default,
impl<'de> Deserialize<'de> for TriggerOrderwhere
TriggerOrder: Default,
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 TriggerOrder
impl RefUnwindSafe for TriggerOrder
impl Send for TriggerOrder
impl Sync for TriggerOrder
impl Unpin for TriggerOrder
impl UnsafeUnpin for TriggerOrder
impl UnwindSafe for TriggerOrder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more