Order
struct Order
Order
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
[src]
fn new(inner: _Order): Order {
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;
return Order {
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,
};
}
[src]
fn new(inner: _Order): Order {
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;
return Order {
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,
};
}