tensortrade.oms.orders.order_listener module¶
-
class
tensortrade.oms.orders.order_listener.
OrderListener
[source]¶ Bases:
object
A callback class for an order.
-
on_cancel
(order: Order) → None[source]¶ Callback for an order after cancellation.
Parameters: order (Order) – The cancelled order.
-
on_complete
(order: Order) → None[source]¶ Callback for an order after being completed.
Parameters: order (Order) – The completed order.
-