class_docstr: Motivation
  - Make generating order easier
      - User may have no knowledge about the adjust-factor information about the system.
      - It involves too much interaction with the exchange when generating orders.
class_docstr_tok: ["Motivation","-","Make","generating","order","easier","-","User","may","have","no","knowledge","about","the","adjust-factor","information","about","the","system",".","-","It","involves","too","much","interaction","with","the","exchange","when","generating","orders","."]
docstr: help to create a order
  
  # TODO: create order for unadjusted amount order
  
  Parameters
  ----------
  code : str
      the id of the instrument
  amount : float
      **adjusted trading amount**
  direction : OrderDir
      trading  direction
  start_time : Union[str, pd.Timestamp] (optional)
      The interval of the order which belongs to
  end_time : Union[str, pd.Timestamp] (optional)
      The interval of the order which belongs to
  
  Returns
  -------
  Order:
      The created order
code: def create(
      code: str,
      amount: float,
      direction: OrderDir,
      start_time: Union[str, pd.Timestamp] = None,
      end_time: Union[str, pd.Timestamp] = None,
  ) -> Order:
      """
      help to create a order
  
      # TODO: create order for unadjusted amount order
  
      Parameters
      ----------
      code : str
          the id of the instrument
      amount : float
          **adjusted trading amount**
      direction : OrderDir
          trading  direction
      start_time : Union[str, pd.Timestamp] (optional)
          The interval of the order which belongs to
      end_time : Union[str, pd.Timestamp] (optional)
          The interval of the order which belongs to
  
      Returns
      -------
      Order:
          The created order
      """
      # NOTE: factor is a value belongs to the results section. User don't have to care about it when creating orders
      return Order(
          stock_id=code,
          amount=amount,
          start_time=None
          if start_time is None
          else pd.Timestamp(start_time),
          end_time=None if end_time is None else pd.Timestamp(end_time),
          direction=direction,
      )
  
imports: from __future__ import annotations
  from abc import abstractmethod
  from datetime import time
  from enum import IntEnum
  from typing import TYPE_CHECKING, Any, ClassVar, Generic, List, Optional, Tuple, TypeVar, Union, cast
  from qlib.backtest.utils import TradeCalendarManager
  from qlib.data.data import Cal
  from qlib.log import get_module_logger
  from qlib.utils.time import concat_date_time, epsilon_change
  from dataclasses import dataclass
  import numpy
  import pandas
label_desc: Use image node_id 2 for calling the OrderHelper obj's underlying member method code with example usage: obj.create(code, amount, direction, start_time, end_time) and returns: Order