class_docstr: A trade object for use within trading environments.
class_docstr_tok: ["A","trade","object","for","use","within","trading","environments","."]
code: def to_dict(self):
      return {
          "id": self.id,
          "order_id": self.order_id,
          "step": self.step,
          "exchange_pair": self.exchange_pair,
          "base_symbol": self.exchange_pair.pair.base.symbol,
          "quote_symbol": self.exchange_pair.pair.quote.symbol,
          "side": self.side,
          "type": self.type,
          "size": self.size,
          "quantity": self.quantity,
          "price": self.price,
          "commission": self.commission,
          "created_at": self.created_at,
      }
  
imports: from enum import Enum
  from tensortrade.core import TimedIdentifiable
label_desc: Use image node_id 13 for calling the Trade obj's underlying member method code with example usage: obj.to_dict() and returns: dict