code: def get_ticks(self, lookback=None, as_dict=False):
          
          ticks = self._get_symbol_dataframe(self.parent.ticks, self)
  
          lookback = self.tick_window if lookback is None else lookback
          ticks = ticks[-lookback:]
          # if lookback is not None:
          #     ticks = ticks[-lookback:]
  
          if not ticks.empty and ticks['asset_class'].values[-1] not in ("OPT", "FOP"):
              ticks.drop(ticks.columns[
                  ticks.columns.str.startswith('opt_')].tolist(),
                  inplace=True, axis=1)
  
          if as_dict:
              ticks.loc[:, 'datetime'] = ticks.index
              ticks = ticks.to_dict(orient='records')
              if lookback == 1:
                  ticks = None if not ticks else ticks[0]
  
          return ticks
docs: Get ticks for this instrument
  
          :Parameters:
              lookback : int
                  Max number of ticks to get (None = all available ticks)
              as_dict : bool
                  Return a dict or a pd.DataFrame object
  
          :Retruns:
              ticks : pd.DataFrame / dict
                  The ticks for this instruments