PushOrderChanged
struct PushOrderChanged
Order changed message
Fields
Stock name
Stock name
Stock name
Submitted quantity
Submitted quantity
Submitted quantity
Order type
Order type
Order type
Submitted price
Submitted price
Submitted price
Executed quantity
Executed quantity
Executed quantity
Executed price
Executed price
Executed price
Order status
Order status
Order status
Submitted time
Submitted time
Submitted time
Last updated time
Last updated time
Last updated time
Order trigger price
Order trigger price
Order trigger price
Conditional order trigger status
Conditional order trigger status
Conditional order trigger status
Conditional order trigger time
Conditional order trigger time
Conditional order trigger time
Trailing amount
Trailing amount
Trailing amount
Trailing percent
Trailing percent
Trailing percent
Limit offset amount
Limit offset amount
Limit offset amount
Account no
Account no
Account no
Last share
Last share
Last share
Last price
Last price
Last price
Methods
new
pub fn new(inner: PushOrderChanged): PushOrderChanged
[src]
fn new(inner: _PushOrderChanged): PushOrderChanged {
let side = inner.side as OrderSide;
let order_type = inner.order_type as OrderType;
let status = inner.status as OrderStatus;
let tag = inner.tag as OrderTag;
return PushOrderChanged {
side: side!,
stock_name: inner.stock_name,
submitted_quantity: inner.submitted_quantity,
symbol: inner.symbol,
order_type: order_type!,
submitted_price: inner.submitted_price,
executed_quantity: inner.executed_quantity,
executed_price: inner.executed_price,
order_id: inner.order_id,
currency: inner.currency,
status: status!,
submitted_at: inner.submitted_at,
updated_at: inner.updated_at,
trigger_price: inner.trigger_price,
msg: inner.msg,
tag: tag!,
trigger_status: inner.trigger_status as TriggerStatus,
trigger_at: inner.trigger_at,
trailing_amount: inner.trailing_amount,
trailing_percent: inner.trailing_percent,
limit_offset: inner.limit_offset,
account_no: inner.account_no,
last_share: inner.last_share,
last_price: inner.last_price,
};
}
new
pub fn new(inner: PushOrderChanged): PushOrderChanged
[src]
fn new(inner: _PushOrderChanged): PushOrderChanged {
let side = inner.side as OrderSide;
let order_type = inner.order_type as OrderType;
let status = inner.status as OrderStatus;
let tag = inner.tag as OrderTag;
return PushOrderChanged {
side: side!,
stock_name: inner.stock_name,
submitted_quantity: inner.submitted_quantity,
symbol: inner.symbol,
order_type: order_type!,
submitted_price: inner.submitted_price,
executed_quantity: inner.executed_quantity,
executed_price: inner.executed_price,
order_id: inner.order_id,
currency: inner.currency,
status: status!,
submitted_at: inner.submitted_at,
updated_at: inner.updated_at,
trigger_price: inner.trigger_price,
msg: inner.msg,
tag: tag!,
trigger_status: inner.trigger_status as TriggerStatus,
trigger_at: inner.trigger_at,
trailing_amount: inner.trailing_amount,
trailing_percent: inner.trailing_percent,
limit_offset: inner.limit_offset,
account_no: inner.account_no,
last_share: inner.last_share,
last_price: inner.last_price,
};
}