code: def create_historical_stream(directory, listener=None):
          
          listener = listener if listener else BaseListener()
          listener.register_stream('HISTORICAL', 'marketSubscription')
          return HistoricalStream(directory, listener)
docs: Uses streaming listener/cache to parse betfair
          historical data:
              https://historicdata.betfair.com/#/home
  
          :param str directory: Directory of betfair data
          :param BaseListener listener: Listener object
  
          :rtype: HistoricalStream