pub struct USOrderDetail {Show 78 fields
pub id: String,
pub aaid: String,
pub account_channel: String,
pub action: i32,
pub symbol: String,
pub underlying_symbol: String,
pub security_type: String,
pub name: String,
pub currency: String,
pub trade_currency: String,
pub order_type: String,
pub status: String,
pub price: String,
pub quantity: String,
pub executed_qty: String,
pub executed_price: String,
pub executed_amount: String,
pub operate_direction: String,
pub time_in_force: i32,
pub gtd: String,
pub tag: i32,
pub msg: String,
pub force_only_rth: i32,
pub submitted_at: String,
pub done_at: String,
pub trigger_price: String,
pub trigger_at: String,
pub trigger_status: i32,
pub trigger_exchange: String,
pub trigger_last_done: String,
pub trigger_count: i32,
pub tailing_amount: String,
pub tailing_percent: String,
pub limit_offset: String,
pub limit_depth_level: i32,
pub market_price: String,
pub submitted_amount: String,
pub estimated_fee: String,
pub free_status: i32,
pub free_amount: String,
pub free_currency: String,
pub deductions_status: i32,
pub deductions_amount: String,
pub deductions_currency: String,
pub platform_deductions_status: i32,
pub platform_deductions_amount: String,
pub platform_deductions_currency: String,
pub display_account: String,
pub settlement_account: String,
pub settlement_channel: String,
pub customer_name: String,
pub real_name: String,
pub en_name: String,
pub joint_real_name: String,
pub joint_en_name: String,
pub org_id: String,
pub bcan: String,
pub op_entrust_way: i32,
pub op_entrust_way_name: String,
pub remark: String,
pub notice: String,
pub short_sell_type: i32,
pub ploy_type: String,
pub ploy_id: String,
pub ploy_status: String,
pub trend: i32,
pub withdrawal_reason: String,
pub activate_order_type: String,
pub activate_rth: i32,
pub submit_price: String,
pub contract_direction: String,
pub strike_price: String,
pub contract_size: String,
pub monitor_price: String,
pub button_control: USButtonControl,
pub charge_detail: Option<USChargeDetail>,
pub attached_orders: Vec<USAttachedOrder>,
pub order_histories: Vec<USOrderHistory>,
}Expand description
Full typed order object within USOrderDetailResponse.
submitted_at and done_at are raw unix-second strings.
order_histories is nested inside this object, not at the response top
level.
Fields§
§id: StringOrder ID
aaid: StringInternal account ID
account_channel: StringAccount channel
action: i32Order action code (buy/sell)
symbol: StringUser-facing trading symbol (e.g. "NKE.US")
underlying_symbol: StringUser-facing underlying symbol (options only)
security_type: StringSecurity type
name: StringSecurity name
currency: StringOrder currency
trade_currency: StringTrade currency
order_type: StringOrder type
status: StringOrder status
price: StringOrder price
quantity: StringOrder quantity
executed_qty: StringExecuted quantity
executed_price: StringExecuted price
executed_amount: StringExecuted amount
operate_direction: StringOperate direction
time_in_force: i32Time-in-force code
gtd: StringGood-till date
tag: i32Order tag code
msg: StringMessage / note
force_only_rth: i32Whether the order is restricted to regular trading hours
submitted_at: StringSubmission time (Unix-second string)
done_at: StringCompletion time (Unix-second string)
trigger_price: StringTrigger price
trigger_at: StringTrigger time (Unix-second string)
trigger_status: i32Trigger status code
trigger_exchange: StringTrigger exchange
trigger_last_done: StringLast-done price at trigger
trigger_count: i32Number of times triggered
tailing_amount: StringTrailing amount (trailing-stop orders)
tailing_percent: StringTrailing percent (trailing-stop orders)
limit_offset: StringLimit offset (trailing-limit orders)
limit_depth_level: i32Order-book depth level for limit orders
market_price: StringMarket price at reference
submitted_amount: StringSubmitted amount
estimated_fee: StringEstimated fee
free_status: i32Commission-free status code
free_amount: StringCommission-free amount
free_currency: StringCommission-free currency
deductions_status: i32Deduction status code
deductions_amount: StringDeduction amount
deductions_currency: StringDeduction currency
platform_deductions_status: i32Platform deduction status code
platform_deductions_amount: StringPlatform deduction amount
platform_deductions_currency: StringPlatform deduction currency
display_account: StringDisplay account
settlement_account: StringSettlement account
settlement_channel: StringSettlement channel
customer_name: StringCustomer name
real_name: StringAccount holder real name
en_name: StringAccount holder English name
joint_real_name: StringJoint-account holder real name
joint_en_name: StringJoint-account holder English name
org_id: StringOrganization ID
bcan: StringBroker-to-client assigned number (HK)
op_entrust_way: i32Entrust channel code
op_entrust_way_name: StringEntrust channel name
remark: StringRemark
notice: StringNotice text
short_sell_type: i32Short-sell type code
ploy_type: StringStrategy (ploy) type
ploy_id: StringStrategy (ploy) ID
ploy_status: StringStrategy (ploy) status
trend: i32Trend direction code
withdrawal_reason: StringWithdrawal reason
activate_order_type: StringOrder type to activate on trigger
activate_rth: i32Whether to activate outside regular trading hours
submit_price: StringSubmitted price
contract_direction: StringContract direction (options)
strike_price: StringStrike price (options)
contract_size: StringContract size (options)
monitor_price: StringMonitor price (conditional orders)
Available action buttons
charge_detail: Option<USChargeDetail>Fee breakdown (absent when not applicable)
attached_orders: Vec<USAttachedOrder>Attached bracket/conditional sub-orders
order_histories: Vec<USOrderHistory>Order state-transition history
Trait Implementations§
Source§impl Clone for USOrderDetail
impl Clone for USOrderDetail
Source§fn clone(&self) -> USOrderDetail
fn clone(&self) -> USOrderDetail
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 USOrderDetail
impl Debug for USOrderDetail
Source§impl Default for USOrderDetail
impl Default for USOrderDetail
Source§fn default() -> USOrderDetail
fn default() -> USOrderDetail
Source§impl<'de> Deserialize<'de> for USOrderDetail
impl<'de> Deserialize<'de> for USOrderDetail
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 USOrderDetail
impl RefUnwindSafe for USOrderDetail
impl Send for USOrderDetail
impl Sync for USOrderDetail
impl Unpin for USOrderDetail
impl UnsafeUnpin for USOrderDetail
impl UnwindSafe for USOrderDetail
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