class_docstr: A class for order creation following an order being complete.
  
  Parameters
  ----------
  side : `TradeSide`
      The trading side of the specification.
  trade_type : `TradeType`
      The type of trade for the specification.
  exchange_pair : `ExchangePair`
      The exchange pair for the specification.
  criteria : `Callable[[Order, Exchange], bool]`
      The criteria for executing the order after its been created.
docstr: Creates dictionary representation of specification.
  
  Returns
  -------
  dict
      The dictionary representation of specification.
code: def to_dict(self) -> dict:
      """Creates dictionary representation of specification.
  
      Returns
      -------
      dict
          The dictionary representation of specification.
      """
      return {
          "id": self.id,
          "type": self.type,
          "exchange_pair": self.exchange_pair,
          "criteria": self.criteria,
      }
  
file_path: tensortrade/tensortrade/oms/orders/order_spec.py
imports: from typing import Callable
  from tensortrade.core import Identifiable
  from tensortrade.oms.orders import Order, TradeSide, TradeType
label_desc: Use image node_id 3 for calling the OrderSpec obj's underlying member method code with example usage: obj.to_dict() and returns: dict