Alpaca / Polygon Api 404 client error: Not Found for url ***

Last couple of days my code was working fine. Getting this error from last night. Need Help!!

/root/.zipline/data/dailycache/polygon_company.pkl: digest mismatch 011fa134da7482b822cd623219795f0b != 0bb21a5c8a9a7bcc0b5134dfb17a43db, reloading
Traceback (most recent call last):
  File "", line 408, in <module>
  File "", line 333, in run_live
    early_rating = get_ratings(api, None)
  File "", line 110, in get_ratings
    df = make_pipeline()
  File "", line 101, in make_pipeline
    df = eng.run_pipeline(pipe)
  File "/usr/local/lib/python3.6/dist-packages/pipeline_live/", line 77, in run_pipeline
  File "/usr/local/lib/python3.6/dist-packages/pipeline_live/", line 244, in compute_chunk
    to_load, mask_dates, symbols, mask,
  File "/usr/local/lib/python3.6/dist-packages/pipeline_live/data/polygon/", line 12, in load_adjusted_array
    company =
  File "/usr/local/lib/python3.6/dist-packages/pipeline_live/data/sources/", line 17, in company
    return _company(all_symbols)
  File "/usr/local/lib/python3.6/dist-packages/pipeline_live/data/sources/", line 68, in wrapper
    body = func(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/pipeline_live/data/sources/", line 32, in _company
    return parallelize(fetch, workers=25, splitlen=50)(all_symbols)
  File "/usr/local/lib/python3.6/dist-packages/pipeline_live/data/sources/", line 30, in wrapper
    task_result = task.result()
  File "/usr/lib/python3.6/concurrent/futures/", line 425, in result
    return self.__get_result()
  File "/usr/lib/python3.6/concurrent/futures/", line 384, in __get_result
    raise self._exception
  File "/usr/lib/python3.6/concurrent/futures/", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.6/dist-packages/pipeline_live/data/sources/", line 27, in fetch
    response = api.polygon.get('/meta/symbols/company', params=params)
  File "/usr/local/lib/python3.6/dist-packages/alpaca_trade_api/polygon/", line 36, in get
    return self._request('GET', path, params=params, version=version)
  File "/usr/local/lib/python3.6/dist-packages/alpaca_trade_api/polygon/", line 32, in _request
  File "/usr/lib/python3/dist-packages/requests/", line 935, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url:********************
1 Like

I get the same error but with the api.polygon.historic_agg API. One day it works and then all of the sudden it doesn’t. I can’t seem to find any documentation on what might have changed. If you hit https:// however you get a maintenance page but that page has been up there for days.

I see. So I’m not the only one who is having issues related to Polygon. I use pipeline_live.
I have removed from import PolygonCompany and using alpaca api for the data. Not calling polygon api directly for any reason. So It’s working well now. I just have to find a better solution to get company fundamentals quickly.

Same here:
requests.exceptions.HTTPError: 404 Client Error: Not Found for url:

This is not working…
It seems my Alpaca API key is being passed to Polygon API for those API calls.

Given the Polygon is the only way to get historical data with adjusted prices, this makes long term price analysis impossible.
But this should be a quick fix…

Anyone have any luck fixing this? I am still getting a 404 on my google sheets.