tensortrade.exchanges.exchange module¶
-
class
tensortrade.exchanges.exchange.Exchange(name, service, options=None)[source]¶ Bases:
tensortrade.data.stream.node.Module,tensortrade.base.component.Component,tensortrade.base.core.TimedIdentifiableAn abstract exchange for use within a trading environment.
-
is_pair_tradable(trading_pair)[source]¶ Whether or not the specified trading pair is tradable on this exchange.
Parameters: trading_pair ( TradingPair) – The TradingPair to test the tradability of.Return type: boolReturns: A bool designating whether or not the pair is tradable.
-
options¶
-
quote_price(trading_pair)[source]¶ The quote price of a trading pair on the exchange, denoted in the base instrument.
Parameters: trading_pair ( TradingPair) – The TradingPair to get the quote price for.Return type: floatReturns: The quote price of the specified trading pair, denoted in the base instrument.
-
registered_name= 'exchanges'¶
-