class_docstr: 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.
code: def __init__(self, base: "Instrument", quote: "Instrument") -> None:
      if base == quote:
          raise InvalidTradingPair(base, quote)
      self.base = base
      self.quote = quote
  
file_path: tensortrade/tensortrade/oms/instruments/trading_pair.py
imports: from typing import Any
  from tensortrade.core.exceptions import InvalidTradingPair
label_desc: Use image node_id 1 to create a new TradingPair object  with example: obj = TradingPair(base, quote)