tensortrade.orders.broker module¶
-
class
tensortrade.orders.broker.Broker(exchanges)[source]¶ Bases:
tensortrade.orders.order_listener.OrderListener,tensortrade.base.core.TimeIndexedA broker for handling the execution of orders on multiple exchanges. Orders are kept in a virtual order book until they are ready to be executed.
-
exchanges¶ The list of exchanges the broker will execute orders on.
Return type: List[ForwardRef]
-
executed¶ The dictionary of orders the broker has executed since resetting, organized by order id
Return type: Dict[str,Order]
-
trades¶ The dictionary of trades the broker has executed since resetting, organized by order id.
Return type: Dict[str,ForwardRef]
-