OrderDetail
struct OrderDetail
Order detail
Order status
Order status
Order status
Stock name
Stock name
Stock name
Executed quantity
Executed quantity
Executed quantity
Executed price
Executed price
Executed price
Submitted time
Submitted time
Submitted time
Order type
Order type
Order type
LIT
/ MIT
Order Trigger Price
LIT
/ MIT
Order Trigger Price
LIT
/ MIT
Order Trigger Price
Time in force type
Time in force type
Time in force type
Long term order expire date
Long term order expire date
Long term order expire date
Last updated time
Last updated time
Last updated time
Conditional order trigger time
Conditional order trigger time
Conditional order trigger time
TSMAMT
/ TSLPAMT
order trailing amount
TSMAMT
/ TSLPAMT
order trailing amount
TSMAMT
/ TSLPAMT
order trailing amount
TSMPCT
/ TSLPPCT
order trailing percent
TSMPCT
/ TSLPPCT
order trailing percent
TSMPCT
/ TSLPPCT
order trailing percent
TSLPAMT
/ TSLPPCT
order limit offset amount
TSLPAMT
/ TSLPPCT
order limit offset amount
TSLPAMT
/ TSLPPCT
order limit offset amount
Conditional order trigger status
Conditional order trigger status
Conditional order trigger status
Enable or disable outside regular trading hours
Enable or disable outside regular trading hours
Enable or disable outside regular trading hours
Commission-free Status
Commission-free Status
Commission-free Status
Commission-free amount
Commission-free amount
Commission-free amount
Commission-free currency
Commission-free currency
Commission-free currency
Deduction status
Deduction status
Deduction status
Deduction amount
Deduction amount
Deduction amount
Deduction currency
Deduction currency
Deduction currency
Platform fee deduction status
Platform fee deduction status
Platform fee deduction status
Platform deduction amount
Platform deduction amount
Platform deduction amount
Platform deduction currency
Platform deduction currency
Platform deduction currency
Order history details
Order history details
Order history details
Order charges
Order charges
Order charges
new
pub fn new(inner: OrderDetail): OrderDetail
[src]
fn new(inner: _OrderDetail): OrderDetail {
let status = inner.status as OrderStatus;
let side = inner.side as OrderSide;
let order_type = inner.order_type as OrderType;
let tag = inner.tag as OrderTag;
let time_in_force = inner.time_in_force as TimeInForceType;
let free_status = inner.free_status as CommissionFreeStatus;
let deductions_status = inner.deductions_status as DeductionStatus;
let platform_deducted_status = inner.platform_deducted_status as DeductionStatus;
let history: [OrderHistoryDetail] = [];
for (let _item in inner.history) {
history.push(OrderHistoryDetail.new(_item));
}
return OrderDetail {
order_id: inner.order_id,
status: status!,
stock_name: inner.stock_name,
quantity: inner.quantity,
executed_quantity: inner.executed_quantity,
price: inner.price,
executed_price: inner.executed_price,
submitted_at: inner.submitted_at,
side: side!,
symbol: inner.symbol,
order_type: order_type!,
last_done: inner.last_done,
trigger_price: inner.trigger_price,
msg: inner.msg,
tag: tag!,
time_in_force: time_in_force!,
expire_date: inner.expire_date,
updated_at: inner.updated_at,
trigger_at: inner.trigger_at,
trailing_amount: inner.trailing_amount,
trailing_percent: inner.trailing_percent,
limit_offset: inner.limit_offset,
trigger_status: inner.trigger_status as TriggerStatus,
currency: inner.currency,
outside_rth: inner.outside_rth as OutsideRTH,
remark: inner.remark,
free_status: free_status!,
free_amount: inner.free_amount,
free_currency: inner.free_currency,
deductions_status: deductions_status!,
deductions_amount: inner.deductions_amount,
deductions_currency: inner.deductions_currency,
platform_deducted_status: platform_deducted_status!,
platform_deducted_amount: inner.platform_deducted_amount,
platform_deducted_currency: inner.platform_deducted_currency,
history,
charge_detail: OrderChargeDetail.new(inner.charge_detail),
};
}
new
pub fn new(inner: OrderDetail): OrderDetail
[src]
fn new(inner: _OrderDetail): OrderDetail {
let status = inner.status as OrderStatus;
let side = inner.side as OrderSide;
let order_type = inner.order_type as OrderType;
let tag = inner.tag as OrderTag;
let time_in_force = inner.time_in_force as TimeInForceType;
let free_status = inner.free_status as CommissionFreeStatus;
let deductions_status = inner.deductions_status as DeductionStatus;
let platform_deducted_status = inner.platform_deducted_status as DeductionStatus;
let history: [OrderHistoryDetail] = [];
for (let _item in inner.history) {
history.push(OrderHistoryDetail.new(_item));
}
return OrderDetail {
order_id: inner.order_id,
status: status!,
stock_name: inner.stock_name,
quantity: inner.quantity,
executed_quantity: inner.executed_quantity,
price: inner.price,
executed_price: inner.executed_price,
submitted_at: inner.submitted_at,
side: side!,
symbol: inner.symbol,
order_type: order_type!,
last_done: inner.last_done,
trigger_price: inner.trigger_price,
msg: inner.msg,
tag: tag!,
time_in_force: time_in_force!,
expire_date: inner.expire_date,
updated_at: inner.updated_at,
trigger_at: inner.trigger_at,
trailing_amount: inner.trailing_amount,
trailing_percent: inner.trailing_percent,
limit_offset: inner.limit_offset,
trigger_status: inner.trigger_status as TriggerStatus,
currency: inner.currency,
outside_rth: inner.outside_rth as OutsideRTH,
remark: inner.remark,
free_status: free_status!,
free_amount: inner.free_amount,
free_currency: inner.free_currency,
deductions_status: deductions_status!,
deductions_amount: inner.deductions_amount,
deductions_currency: inner.deductions_currency,
platform_deducted_status: platform_deducted_status!,
platform_deducted_amount: inner.platform_deducted_amount,
platform_deducted_currency: inner.platform_deducted_currency,
history,
charge_detail: OrderChargeDetail.new(inner.charge_detail),
};
}