Skip to main content

Module execution

Module execution 

Source
Expand description

Own trades: TradesStream and operation history.

Functions§

from_operation
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.
from_order_trades
One Execution per trade in an OrderTrades message. The stream carries no commission (zero) and no order_request_id: cid comes from the order ids the connector has seen.