class_docstr: The current state of the positions held.
  
  Parameters
  ----------
  data_frequency : {'daily', 'minute'}
      The data frequency of the simulation.
class_docstr_tok: ["The","current","state","of","the","positions","held",".","Parameters","--","--","--","--","--","data_frequency",":","{","'daily","'",",","'minute","'","}","The","data","frequency","of","the","simulation","."]
code: def sync_last_sale_prices(
      self, dt, data_portal, handle_non_market_minutes=False
  ):
      self._dirty_stats = True
  
      if handle_non_market_minutes:
          previous_minute = (
              data_portal.trading_calendar.previous_minute(dt)
          )
          get_price = partial(
              data_portal.get_adjusted_value,
              field="price",
              dt=previous_minute,
              perspective_dt=dt,
              data_frequency=self.data_frequency,
          )
  
      else:
          get_price = partial(
              data_portal.get_scalar_asset_spot_value,
              field="price",
              dt=dt,
              data_frequency=self.data_frequency,
          )
  
      update_position_last_sale_prices(self.positions, get_price, dt)
  
imports: from __future__ import division
  from collections import namedtuple, OrderedDict
  from functools import partial
  from math import isnan
  import logbook
  import numpy
  import pandas
  from six import iteritems, itervalues, PY2
  from zipline.assets import Future
  from zipline.finance.transaction import Transaction
  import zipline.protocol
  from zipline.utils.sentinel import sentinel
  from .position import Position
  from ._finance_ext import PositionStats, calculate_position_tracker_stats, update_position_last_sale_prices
label_desc: Use image node_id 11 for calling the PositionTracker obj's underlying member method code with example usage: obj.sync_last_sale_prices(dt, data_portal, handle_non_market_minutes) without return types