pub struct OrderRecord {Show 18 fields
pub id: String,
pub symbol: String,
pub board: Option<String>,
pub exchange: Option<String>,
pub portfolio: Option<String>,
pub comment: Option<String>,
pub kind: Option<String>,
pub side: Option<String>,
pub status: Option<String>,
pub trans_time: Option<String>,
pub update_time: Option<String>,
pub qty_units: Option<Decimal>,
pub qty: Option<Decimal>,
pub filled_qty_units: Option<Decimal>,
pub filled: Option<Decimal>,
pub price: Option<Decimal>,
pub time_in_force: Option<String>,
pub existing: Option<bool>,
}Expand description
An order of the portfolio: the item of GET /md/v2/Clients/{exchange}/{portfolio}/orders, the answer of the
call for one order and the message of the orders subscription.
Fields§
§id: StringThe number of the order at the exchange. Text, though it looks like a number.
symbol: StringThe ticker.
board: Option<String>The trading mode.
exchange: Option<String>MOEX or SPBX.
portfolio: Option<String>The portfolio.
comment: Option<String>The comment of the order (up to 100 characters). The connector keeps the client order id here.
kind: Option<String>limit or market.
side: Option<String>buy or sell.
status: Option<String>working, filled, canceled or rejected.
trans_time: Option<String>When the order was placed, UTC text.
update_time: Option<String>When the status last changed, UTC text.
qty_units: Option<Decimal>The ordered quantity in pieces.
qty: Option<Decimal>The ordered quantity in lots.
filled_qty_units: Option<Decimal>The filled quantity in pieces.
filled: Option<Decimal>The filled quantity in lots.
price: Option<Decimal>The price (empty for a market order).
time_in_force: Option<String>The time in force: oneday, immediateorcancel, fillorkill, attheclose, goodtillcancelled,
bookorcancel.
existing: Option<bool>true for data from the history (the first messages of a subscription), false for new events.
Trait Implementations§
Source§impl Clone for OrderRecord
impl Clone for OrderRecord
Source§fn clone(&self) -> OrderRecord
fn clone(&self) -> OrderRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more