tensortrade.orders.order module¶
-
class
tensortrade.orders.order.
Order
(step, side, trade_type, pair, quantity, portfolio, price, criteria=None, path_id=None, start=None, end=None)[source]¶ Bases:
tensortrade.base.core.TimedIdentifiable
- Responsibilities of the Order:
- Confirming its own validity.
- Tracking its trades and reporting it back to the broker.
- Managing movement of quantities from order to order.
- Generating the next order in its path given that there is a ‘OrderSpec’ for how to make the next order.
- Managing its own state changes when it can.
-
base_instrument
¶ Return type: Instrument
-
quote_instrument
¶ Return type: Instrument
-
trades
¶