class_docstr: An abstract exchange for use within a trading environment.
  
  Parameters
  ----------
  name : str
      The name of the exchange.
  service : `Union[Callable, str]`
      The service to be used for filling orders.
  options : `ExchangeOptions`
      The options used to specify the setting of the exchange.
class_docstr_tok: ["An","abstract","exchange","for","use","within","a","trading","environment",".","Parameters","--","--","--","--","--","name",":","str","The","name","of","the","exchange",".","service",":","`","Union","[","Callable",",","str","]","`","The","service","to","be","used","for","filling","orders",".","options",":","`","ExchangeOptions","`","The","options","used","to","specify","the","setting","of","the","exchange","."]
docstr: The quote price of a trading pair on the exchange, denoted in the
  core instrument.
  
  Parameters
  ----------
  trading_pair : `TradingPair`
      The trading pair to get the quote price for.
  
  Returns
  -------
  `Decimal`
      The quote price of the specified trading pair, denoted in the core instrument.
docstr_tok: ["The","quote","price","of","a","trading","pair","on","the","exchange",",","denoted","in","the","core","instrument",".","Parameters","--","--","--","--","--","trading_pair",":","`","TradingPair","`","The","trading","pair","to","get","the","quote","price","for",".","Returns","--","--","--","-","`","Decimal","`","The","quote","price","of","the","specified","trading","pair",",","denoted","in","the","core","instrument","."]
code: def quote_price(self, trading_pair: "TradingPair") -> "Decimal":
      """The quote price of a trading pair on the exchange, denoted in the
      core instrument.
  
      Parameters
      ----------
      trading_pair : `TradingPair`
          The trading pair to get the quote price for.
  
      Returns
      -------
      `Decimal`
          The quote price of the specified trading pair, denoted in the core instrument.
      """
      price = Decimal(self._price_streams[str(trading_pair)].value)
      if price == 0:
          raise ValueError(
              "Price of trading pair {} is 0. Please check your input data to make sure there always is "
              "a valid (nonzero) price.".format(trading_pair)
          )
  
      price = price.quantize(
          Decimal(10) ** -trading_pair.base.precision
      )
      if price == 0:
          raise ValueError(
              "Price quantized in base currency precision ({}) would amount to 0 {}. "
              "Please consider defining a custom instrument with a higher precision.".format(
                  trading_pair.base.precision, trading_pair.base
              )
          )
  
      return price
  
file_path: tensortrade/tensortrade/oms/exchanges/exchange.py
imports: from typing import Callable
  from decimal import Decimal
  from tensortrade.core import Component, TimedIdentifiable
  from tensortrade.oms.instruments import TradingPair
label_desc: Use image node_id 4 for calling the Exchange obj's underlying member method code with example usage: obj.quote_price(trading_pair) and returns: price