class_docstr: A trade object for use within trading environments.
class_docstr_tok: ["A","trade","object","for","use","within","trading","environments","."]
docstr: Arguments:
      order_id: The id of the order that created the trade.
      step: The timestep the trade was made during the trading episode.
      exchange_pair: The exchange pair of instruments in the trade.
      (e.g. BTC/USDT, ETH/BTC, ADA/BTC, AAPL/USD, NQ1!/USD, CAD/USD, etc)
      side: Whether the quote instrument is being bought or sold.
      (e.g. BUY = trade the `base_instrument` for the `quote_instrument` in the pair. SELL = trade the `quote_instrument` for the `base_instrument`)
      size: The size of the core instrument in the trade.
      (e.g. 1000 shares, 6.50 satoshis, 2.3 contracts, etc).
      price: The price paid per quote instrument in terms of the core instrument.
      (e.g. 10000 represents $10,000.00 if the `base_instrument` is "USD").
      commission: The commission paid for the trade in terms of the core instrument.
      (e.g. 10000 represents $10,000.00 if the `base_instrument` is "USD").
docstr_tok: ["Arguments",":","order_id",":","The","id","of","the","order","that","created","the","trade",".","step",":","The","timestep","the","trade","was","made","during","the","trading","episode",".","exchange_pair",":","The","exchange","pair","of","instruments","in","the","trade",".","(","e.g",".","BTC\/USDT",",","ETH\/BTC",",","ADA\/BTC",",","AAPL\/USD",",","NQ1","!","\/USD",",","CAD\/USD",",","etc",")","side",":","Whether","the","quote","instrument","is","being","bought","or","sold",".","(","e.g",".","BUY","=","trade","the","`","base_instrument","`","for","the","`","quote_instrument","`","in","the","pair",".","SELL","=","trade","the","`","quote_instrument","`","for","the","`","base_instrument","`",")","size",":","The","size","of","the","core","instrument","in","the","trade",".","(","e.g",".","1000","shares",",","6.50","satoshis",",","2.3","contracts",",","etc",")",".","price",":","The","price","paid","per","quote","instrument","in","terms","of","the","core","instrument",".","(","e.g",".","10000","represents","$","10,000.00","if","the","`","base_instrument","`","is","``","USD","''",")",".","commission",":","The","commission","paid","for","the","trade","in","terms","of","the","core","instrument",".","(","e.g",".","10000","represents","$","10,000.00","if","the","`","base_instrument","`","is","``","USD","''",")","."]
code: def __init__(
      self,
      order_id: str,
      step: int,
      exchange_pair: "ExchangePair",
      side: TradeSide,
      trade_type: TradeType,
      quantity: "Quantity",
      price: float,
      commission: "Quantity",
  ):
      """
      Arguments:
          order_id: The id of the order that created the trade.
          step: The timestep the trade was made during the trading episode.
          exchange_pair: The exchange pair of instruments in the trade.
          (e.g. BTC/USDT, ETH/BTC, ADA/BTC, AAPL/USD, NQ1!/USD, CAD/USD, etc)
          side: Whether the quote instrument is being bought or sold.
          (e.g. BUY = trade the `base_instrument` for the `quote_instrument` in the pair. SELL = trade the `quote_instrument` for the `base_instrument`)
          size: The size of the core instrument in the trade.
          (e.g. 1000 shares, 6.50 satoshis, 2.3 contracts, etc).
          price: The price paid per quote instrument in terms of the core instrument.
          (e.g. 10000 represents $10,000.00 if the `base_instrument` is "USD").
          commission: The commission paid for the trade in terms of the core instrument.
          (e.g. 10000 represents $10,000.00 if the `base_instrument` is "USD").
      """
      super().__init__()
      self.order_id = order_id
      self.step = step
      self.exchange_pair = exchange_pair
      self.side = side
      self.type = trade_type
      self.quantity = quantity
      self.price = price
      self.commission = commission
  
imports: from enum import Enum
  from tensortrade.core import TimedIdentifiable
label_desc: Use image node_id 1 to create a new Trade object from inherited base classes: TimedIdentifiable with example: obj = Trade(order_id, step, exchange_pair, side, trade_type, quantity, price, commission)