tensortrade.exchanges package

tensortrade.exchanges.get(identifier)[source]

Gets the InstrumentExchange that matches with the identifier.

As a caution, when exchanges that require a data frame are instantiated by this function, the data frame is set as None and must be set at a later point in time for the exchange to work.

Parameters

identifier (str) – The identifier for the InstrumentExchange

Raises

KeyError – if identifier is not associated with any InstrumentExchange

Return type

InstrumentExchange