docstr: Parameter
  Please refer to the docs of get_amount_of_trade_unit
  deal_amount : float, adjusted amount
  factor : float, adjusted factor
  return : float, real amount
docstr_tok: ["Parameter","Please","refer","to","the","docs","of","get_amount_of_trade_unit","deal_amount",":","float",",","adjusted","amount","factor",":","float",",","adjusted","factor","return",":","float",",","real","amount"]
code: def round_amount_by_trade_unit(
      self,
      deal_amount: float,
      factor: float | None = None,
      stock_id: str | None = None,
      start_time: pd.Timestamp = None,
      end_time: pd.Timestamp = None,
  ) -> float:
      """Parameter
      Please refer to the docs of get_amount_of_trade_unit
      deal_amount : float, adjusted amount
      factor : float, adjusted factor
      return : float, real amount
      """
      if not self.trade_w_adj_price and self.trade_unit is not None:
          # the minimal amount is 1. Add 0.1 for solving precision problem.
          factor = self._get_factor_or_raise_error(
              factor=factor,
              stock_id=stock_id,
              start_time=start_time,
              end_time=end_time,
          )
          return (
              (deal_amount * factor + 0.1)
              // self.trade_unit
              * self.trade_unit
              / factor
          )
      return deal_amount
  
imports: from __future__ import annotations
  from collections import defaultdict
  from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple, Type, Union, cast
  from ..utils.index_data import IndexData
  import random
  import numpy
  import pandas
  from qlib.backtest.position import BasePosition
  from ..config import C
  from ..constant import REG_CN, REG_TW
  from ..data.data import D
  from ..log import get_module_logger
  from .decision import Order, OrderDir, OrderHelper
  from .high_performance_ds import BaseQuote, NumpyQuote
label_desc: Use image node_id 22 for calling the Exchange obj's underlying member method code with example usage: obj.round_amount_by_trade_unit(deal_amount, factor, stock_id, start_time, end_time) and returns: deal_amount, unknown