Skip to main content

from_operation

Function from_operation 

pub fn from_operation(op: &OperationItem, now: Instant) -> Vec<Execution>
Expand description

History from GetOperationsByCursor: BUY/SELL operations, one Execution per trade. broker_order_id is the operation id (the history has no order id), cid is None, the operation commission is spread over its trades in proportion to quantity. Quantities are in pieces here, unlike the lots of the live stream.