tensortrade.oms.instruments.trading_pair module¶
-
class
tensortrade.oms.instruments.trading_pair.
TradingPair
(base: Instrument, quote: Instrument)[source]¶ Bases:
object
A pair of financial instruments to be traded on an exchange.
Parameters: - base (Instrument) – The base instrument of the trading pair.
- quote (Instrument) – The quote instrument of the trading pair.
Raises: InvalidTradingPair
– Raises if base and quote instrument are equal.