Module execution
Expand description
Execution history mapping.
Structs§
- Cumulative
- What the broker had executed in one order after a message: the quantity and the value (price times quantity) of everything filled so far, summed over all fills of the order.
Functions§
- cumulative_
of - The running totals of an order message, or
Nonewhen the message does not carry enough to know them (noexecutedQuantity, or neitherexecutionValuenoraveragePrice). - map_
trade_ record - A trade of the history (
POST /trades/search). The docs describe a flat record (tradeNum,orderNum,tradeQuantity,tradeDateTime, …) without ourclientOrderIdand without a commission:cidisNone,commission0. The olderdataform is still read if it comes. - map_
ws_ execution - A fill from the
orders/events/wsWebSocket. Only messages that carry a fill:lastQuantity > 0and anexecutionId, and not a corrected report (executionType13, which restates an earlier message). The order’s cid is read ascrate::map::order::message_cidsays.