tensortrade.exchanges.live.interactive_brokers_exchange module¶
-
class
tensortrade.exchanges.live.interactive_brokers_exchange.
InteractiveBrokersExchange
(**kwargs)[source]¶ Bases:
tensortrade.exchanges.instrument_exchange.InstrumentExchange
An instrument exchange for trading using the Interactive Brokers API.
-
current_price
(symbol)[source]¶ The current price of an instrument on the exchange, denoted in the base instrument.
-
property
generated_space
¶ The initial shape of the observations generated by the exchange, before feature transformations.
- Return type
Space
-
property
has_next_observation
¶ If False, the exchange’s data source has run out of observations.
Resetting the exchange may be necessary to continue generating observations.
- Return type
- Returns
Whether or not the specified instrument has a next observation.
-
property
instrument_precision
¶ The floating point precision of the instrument to be traded.
- Return type
-
property
performance
¶ The performance of the active account on the exchange since the last reset.
- Return type
DataFrame
-
property
portfolio
¶ The current balance of each symbol on the exchange (non-positive balances excluded).
-