class_docstr: Tracks the performance of the algorithm.
docstr: Handles the close of the given minute in minute emission.
  
  Parameters
  __________
  dt : Timestamp
      The minute that is ending
  
  Returns
  _______
  A minute perf packet.
docstr_tok: ["Handles","the","close","of","the","given","minute","in","minute","emission",".","Parameters","__________","dt",":","Timestamp","The","minute","that","is","ending","Returns","_______","A","minute","perf","packet","."]
code: def handle_minute_close(self, dt, data_portal):
      """
      Handles the close of the given minute in minute emission.
  
      Parameters
      __________
      dt : Timestamp
          The minute that is ending
  
      Returns
      _______
      A minute perf packet.
      """
      self.position_tracker.sync_last_sale_prices(
          dt, False, data_portal
      )
      self.update_performance()
      todays_date = normalize_date(dt)
      account = self.get_account(False)
  
      bench_returns = self.all_benchmark_returns.loc[todays_date:dt]
      # cumulative returns
      bench_since_open = (1.0 + bench_returns).prod() - 1
  
      self.cumulative_risk_metrics.update(
          todays_date,
          self.todays_performance.returns,
          bench_since_open,
          account.leverage,
      )
  
      minute_packet = self.to_dict(emission_type="minute")
      return minute_packet
  
imports: from __future__ import division
  import logbook
  import pandas
  from pandas.tseries.tools import normalize_date
  from catalyst.finance.performance.period import PerformancePeriod
  from catalyst.errors import NoFurtherDataError
  import catalyst.finance.risk
  from .position_tracker import PositionTracker
  from catalyst.constants import LOG_LEVEL
label_desc: Use image node_id 18 for calling the PerformanceTracker obj's underlying member method code with example usage: obj.handle_minute_close(dt, data_portal) and returns: minute_packet