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: Execute an order on the exchange.
  
  Parameters
  ----------
  order: `Order`
      The order to execute.
  portfolio : `Portfolio`
      The portfolio to use.
docstr_tok: ["Execute","an","order","on","the","exchange",".","Parameters","--","--","--","--","--","order",":","`","Order","`","The","order","to","execute",".","portfolio",":","`","Portfolio","`","The","portfolio","to","use","."]
code: def execute_order(
      self, order: "Order", portfolio: "Portfolio"
  ) -> None:
      """Execute an order on the exchange.
  
      Parameters
      ----------
      order: `Order`
          The order to execute.
      portfolio : `Portfolio`
          The portfolio to use.
      """
      trade = self._service(
          order=order,
          base_wallet=portfolio.get_wallet(self.id, order.pair.base),
          quote_wallet=portfolio.get_wallet(self.id, order.pair.quote),
          current_price=self.quote_price(order.pair),
          options=self.options,
          clock=self.clock,
      )
  
      if trade:
          order.fill(trade)
  
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 6 for calling the Exchange obj's underlying member method code with example usage: obj.execute_order(order, portfolio) without return types