class_docstr: Initiate a trade.
  
  Parameters
  ----------
  name : str
      The symbol to trade.
  order : alphapy.Orders
      Long or short trade for entry or exit.
  quantity : int
      The quantity for the order.
  price : str
      The execution price of the trade.
  tdate : datetime
      The date and time of the trade.
  
  Attributes
  ----------
  states : list of str
      Trade state names for a dataframe.
class_docstr_tok: ["Initiate","a","trade",".","Parameters","--","--","--","--","--","name",":","str","The","symbol","to","trade",".","order",":","alphapy.Orders","Long","or","short","trade","for","entry","or","exit",".","quantity",":","int","The","quantity","for","the","order",".","price",":","str","The","execution","price","of","the","trade",".","tdate",":","datetime","The","date","and","time","of","the","trade",".","Attributes","--","--","--","--","--","states",":","list","of","str","Trade","state","names","for","a","dataframe","."]
code: def __init__(self, name, order, quantity, price, tdate):
      self.name = name
      self.order = order
      self.quantity = float(quantity)
      self.price = float(price)
      self.tdate = tdate
  
imports: from alphapy.frame import Frame
  from alphapy.frame import frame_name
  from alphapy.frame import read_frame
  from alphapy.frame import write_frame
  from alphapy.globals import MULTIPLIERS, SSEP
  from alphapy.globals import Orders
  from alphapy.space import Space
  import logging
  import math
  import numpy
  from pandas import DataFrame
  from pandas import date_range
  from pandas import Series
label_desc: Use image node_id 1 to create a new Trade object  with example: obj = Trade(name, order, quantity, price, tdate)