pub struct GridOrderDetail {Show 44 fields
pub order_id: String,
pub symbol: String,
pub stock_name: String,
pub status: String,
pub grid_status: String,
pub suspend_reason: String,
pub sleeping_reason: String,
pub submitted_base_price: Option<Decimal>,
pub current_base_price: Option<Decimal>,
pub upper_limit_price: Option<Decimal>,
pub lower_limit_price: Option<Decimal>,
pub trigger_price_type: TriggerPriceType,
pub trigger_spread_up: Option<Decimal>,
pub trigger_spread_down: Option<Decimal>,
pub trigger_percent_up: Option<Decimal>,
pub trigger_percent_down: Option<Decimal>,
pub pullback_percent: Option<Decimal>,
pub pullback_spread: Option<Decimal>,
pub rebound_percent: Option<Decimal>,
pub rebound_spread: Option<Decimal>,
pub multiple_trigger: bool,
pub time_in_force: GridTimeInForce,
pub trigger_quantity: Option<Decimal>,
pub trigger_sell_quantity: Option<Decimal>,
pub trigger_buy_quantity: Option<Decimal>,
pub upper_limit_quantity: Option<Decimal>,
pub lower_limit_quantity: Option<Decimal>,
pub upper_limit_event: GridLimitEvent,
pub lower_limit_event: GridLimitEvent,
pub trigger_sell_depth: i32,
pub trigger_buy_depth: i32,
pub created_at: Option<OffsetDateTime>,
pub updated_at: Option<OffsetDateTime>,
pub settlement_currency: String,
pub expire_time: Option<OffsetDateTime>,
pub gtd: String,
pub grid_sub_orders: Vec<GridOrderSubOrder>,
pub sub_has_more: bool,
pub grid_order_history: Vec<GridOrderHistory>,
pub history_has_more: bool,
pub support_shortsell: bool,
pub rth: i32,
pub grid_order_type_up: String,
pub grid_order_type_down: String,
}Expand description
Detail of a grid trading order.
Fields§
§order_id: StringGrid master order ID
symbol: StringSecurity symbol (e.g. 700.HK)
stock_name: StringStock name
status: StringOrder status
grid_status: StringGrid running status
suspend_reason: StringSuspend reason, if any
sleeping_reason: StringSleeping reason, if any
submitted_base_price: Option<Decimal>Submitted base price
current_base_price: Option<Decimal>Current base price
upper_limit_price: Option<Decimal>Upper price bound
lower_limit_price: Option<Decimal>Lower price bound
trigger_price_type: TriggerPriceTypeTrigger price type (1 = spread, 2 = percent)
trigger_spread_up: Option<Decimal>Upward trigger spread
trigger_spread_down: Option<Decimal>Downward trigger spread
trigger_percent_up: Option<Decimal>Upward trigger percent
trigger_percent_down: Option<Decimal>Downward trigger percent
pullback_percent: Option<Decimal>Pullback percent
pullback_spread: Option<Decimal>Pullback spread
rebound_percent: Option<Decimal>Rebound percent
rebound_spread: Option<Decimal>Rebound spread
multiple_trigger: boolWhether a single grid level may trigger multiple times
time_in_force: GridTimeInForceTime in force (0 = Day, 1 = GTC, 6 = GTD)
trigger_quantity: Option<Decimal>Quantity per trigger
trigger_sell_quantity: Option<Decimal>Quantity per sell trigger
trigger_buy_quantity: Option<Decimal>Quantity per buy trigger
upper_limit_quantity: Option<Decimal>Quantity handled at the upper bound
lower_limit_quantity: Option<Decimal>Quantity handled at the lower bound
upper_limit_event: GridLimitEventAction at the upper bound
lower_limit_event: GridLimitEventAction at the lower bound
trigger_sell_depth: i32Sell-side order-book depth
trigger_buy_depth: i32Buy-side order-book depth
created_at: Option<OffsetDateTime>Created time (RFC3339)
updated_at: Option<OffsetDateTime>Last updated time (RFC3339)
settlement_currency: StringSettlement currency
expire_time: Option<OffsetDateTime>Expiry time (RFC3339)
gtd: StringExpiry date (YYYY-MM-DD, GTD)
grid_sub_orders: Vec<GridOrderSubOrder>Triggered sub-orders
sub_has_more: boolWhether there are more sub-orders to page
grid_order_history: Vec<GridOrderHistory>Lifecycle history entries
history_has_more: boolWhether there are more history entries to page
support_shortsell: boolWhether short selling is allowed
rth: i32Regular trading hours flag
grid_order_type_up: StringSell-side grid order type (GMO / GLO / GTG)
grid_order_type_down: StringBuy-side grid order type (GMO / GLO / GTG)
Trait Implementations§
Source§impl Clone for GridOrderDetail
impl Clone for GridOrderDetail
Source§fn clone(&self) -> GridOrderDetail
fn clone(&self) -> GridOrderDetail
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GridOrderDetail
impl Debug for GridOrderDetail
Source§impl Default for GridOrderDetail
impl Default for GridOrderDetail
Source§fn default() -> GridOrderDetail
fn default() -> GridOrderDetail
Source§impl<'de> Deserialize<'de> for GridOrderDetailwhere
GridOrderDetail: Default,
impl<'de> Deserialize<'de> for GridOrderDetailwhere
GridOrderDetail: 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>,
Auto Trait Implementations§
impl Freeze for GridOrderDetail
impl RefUnwindSafe for GridOrderDetail
impl Send for GridOrderDetail
impl Sync for GridOrderDetail
impl Unpin for GridOrderDetail
impl UnsafeUnpin for GridOrderDetail
impl UnwindSafe for GridOrderDetail
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
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>
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>
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