docstr: Get a perf message for the given datetime.
docstr_tok: ["Get","a","perf","message","for","the","given","datetime","."]
code: def _get_daily_message(self, dt, algo, metrics_tracker):
      """
      Get a perf message for the given datetime.
      """
      perf_message = metrics_tracker.handle_market_close(
          dt,
          self.data_portal,
      )
      perf_message["daily_perf"]["recorded_vars"] = algo.recorded_vars
      return perf_message
  
file_path: zipline/zipline/gens/tradesimulation.py
imports: from copy import copy
  from logbook import Logger, Processor
  from zipline.finance.order import ORDER_STATUS
  from zipline.protocol import BarData
  from zipline.utils.api_support import ZiplineAPI
  from zipline.utils.compat import ExitStack
  from six import viewkeys
  from zipline.gens.sim_engine import BAR, SESSION_START, SESSION_END, MINUTE_END, BEFORE_TRADING_START_BAR
label_desc: Use image node_id 6 for calling the AlgorithmSimulator obj's underlying member method code with example usage: obj._get_daily_message(dt, algo, metrics_tracker) and returns: perf_message