class_docstr: A financial instrument for use in trading.
  
  Parameters
  ----------
  symbol : str
      The symbol used on an exchange for a particular instrument.
      (e.g. AAPL, BTC, TSLA)
  precision : int
      The precision the amount of the instrument is denoted with.
      (e.g. BTC=8, AAPL=1)
  name : str, optional
      The name of the instrument being created.
class_docstr_tok: ["A","financial","instrument","for","use","in","trading",".","Parameters","--","--","--","--","--","symbol",":","str","The","symbol","used","on","an","exchange","for","a","particular","instrument",".","(","e.g",".","AAPL",",","BTC",",","TSLA",")","precision",":","int","The","precision","the","amount","of","the","instrument","is","denoted","with",".","(","e.g",".","BTC=8",",","AAPL=1",")","name",":","str",",","optional","The","name","of","the","instrument","being","created","."]
docstr: Creates a trading pair through division.
  
  Parameters
  ----------
  other : `Instrument`
      The instrument that will be the quote of the pair.
  
  Returns
  -------
  `TradingPair`
      The trading pair created from the two instruments.
  
  Raises
  ------
  InvalidTradingPair
      Raised if `other` is the same instrument as `self`.
  Exception
      Raised if `other` is not an instrument.
docstr_tok: ["Creates","a","trading","pair","through","division",".","Parameters","--","--","--","--","--","other",":","`","Instrument","`","The","instrument","that","will","be","the","quote","of","the","pair",".","Returns","--","--","--","-","`","TradingPair","`","The","trading","pair","created","from","the","two","instruments",".","Raises","--","--","--","InvalidTradingPair","Raised","if","`","other","`","is","the","same","instrument","as","`","self","`",".","Exception","Raised","if","`","other","`","is","not","an","instrument","."]
code: def __truediv__(self, other: "Instrument") -> "TradingPair":
      """Creates a trading pair through division.
  
      Parameters
      ----------
      other : `Instrument`
          The instrument that will be the quote of the pair.
  
      Returns
      -------
      `TradingPair`
          The trading pair created from the two instruments.
  
      Raises
      ------
      InvalidTradingPair
          Raised if `other` is the same instrument as `self`.
      Exception
          Raised if `other` is not an instrument.
      """
      if isinstance(other, Instrument):
          return TradingPair(self, other)
      raise Exception(
          f"Invalid trading pair: {other} is not a valid instrument."
      )
  
file_path: tensortrade/tensortrade/oms/instruments/instrument.py
imports: from typing import Any
  from tensortrade.oms.instruments.quantity import Quantity
  from tensortrade.oms.instruments.trading_pair import TradingPair
label_desc: Use image node_id 5 for calling the Instrument obj's underlying member method code with example usage: obj.__truediv__(other) and returns: TradingPair