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