code: def get_historical_minute_data(self, ticker: str):
          
          start = self._start
          stop = self._stop
  
          if len(stop) > 4:
              stop = stop[:4]
  
          if len(start) > 4:
              start = start[:4]
  
          for year in range(int(start), int(stop) + 1):
              beg_time = ('%s0101000000' % year)
              end_time = ('%s1231235959' % year)
              msg = "HIT,%s,60,%s,%s,,,,1,,,s\r\n" % (ticker,
                                                      beg_time,
                                                      end_time)
              try:
                  data = iq.iq_query(message=msg)
                  iq.add_data_to_df(data=data)
              except Exception as err:
                  log.error('No data returned because %s', err)
  
          try:
              self.dfdb.write_points(self._ndf, ticker)
          except InfluxDBClientError as err:
              log.error('Write to database failed: %s' % err)
docs: Request historical 5 minute data from DTN.