Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP 404 error #235

Open
taeyurl opened this issue Jun 5, 2022 · 0 comments
Open

HTTP 404 error #235

taeyurl opened this issue Jun 5, 2022 · 0 comments

Comments

@taeyurl
Copy link

taeyurl commented Jun 5, 2022

Can I get some help with the issue below??

zipline-trader/zipline/data/bundles/alpaca_api.py:272: UserWarning: Overwriting bundle with name 'alpaca_api'
def api_to_bundle(interval=['1m']):
zipline-trader/zipline/data/bundles/alpaca_api.py:350: UserWarning: Overwriting bundle with name 'alpaca_api'
end_session=end_date
Merging daily equity files: [------------------------------------] 0%
Traceback (most recent call last):
File "zipline-trader/zipline/data/bundles/alpaca_api.py", line 359, in
show_progress=True,
File "c:\zipline-demo\zipline-trader\zipline\data\bundles\core.py", line 513, in ingest
pth.data_path([name, timestr], environ=environ),
File "zipline-trader/zipline/data/bundles/alpaca_api.py", line 302, in ingest
daily_bar_writer.write(daily_data_generator(), assets=assets_to_sids.values(), show_progress=True)
File "c:\zipline-demo\zipline-trader\zipline\data\bcolz_daily_bars.py", line 207, in write
return self._write_internal(it, assets)
File "c:\zipline-demo\zipline-trader\zipline\data\bcolz_daily_bars.py", line 269, in _write_internal
for asset_id, table in iterator:
File "c:\zipline-demo\zipline-trader\zipline\data\bcolz_daily_bars.py", line 264, in iterator
for asset_id, table in iterator:
File "C:\zipline-demo\venv-demo\lib\site-packages\click_termui_impl.py", line 328, in generator
for rv in self.iter:
File "c:\zipline-demo\zipline-trader\zipline\data\bcolz_daily_bars.py", line 198, in
(sid, self.to_ctable(df, invalid_data_behavior))
File "zipline-trader/zipline/data/bundles/alpaca_api.py", line 295, in
return (sid_df for (sid_df, *metadata.iloc[sid_df[0]]) in df_generator(interval='1d',
File "zipline-trader/zipline/data/bundles/alpaca_api.py", line 234, in df_generator
df: pd.DataFrame = get_aggs_from_alpaca(partial, start, end, 'day' if interval == '1d' else 'minute', 1)
File "zipline-trader/zipline/data/bundles/alpaca_api.py", line 199, in get_aggs_from_alpaca
response = _iterate_api_calls()
File "zipline-trader/zipline/data/bundles/alpaca_api.py", line 119, in _iterate_api_calls
end=curr.isoformat()
File "C:\zipline-demo\venv-demo\lib\site-packages\alpaca_trade_api\rest.py", line 515, in get_barset
resp = self.data_get('/bars/{}'.format(timeframe), params)
File "C:\zipline-demo\venv-demo\lib\site-packages\alpaca_trade_api\rest.py", line 193, in data_get
'GET', path, data, base_url=base_url, api_version=api_version,
File "C:\zipline-demo\venv-demo\lib\site-packages\alpaca_trade_api\rest.py", line 139, in _request
return self._one_request(method, url, opts, retry)
File "C:\zipline-demo\venv-demo\lib\site-packages\alpaca_trade_api\rest.py", line 160, in _one_request
resp.raise_for_status()
File "C:\zipline-demo\venv-demo\lib\site-packages\requests\models.py", line 960, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://data.alpaca.markets/v1/bars/day?symbols=AAPL%2CTSLA%2CGOOG&limit=1000&end=2022-06-03T00%3A00%3A00%2B00%3A00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant