Skip to main content

map_trade_record

Function map_trade_record 

Source
pub fn map_trade_record(record: &TradeRecord, now: Instant) -> Option<Execution>
Expand description

A trade of the history (POST /trades/search). The docs describe a flat record (tradeNum, orderNum, tradeQuantity, tradeDateTime, …) without our clientOrderId and without a commission: cid is None, commission 0. The older data form is still read if it comes.