shlomiku / zipline-trader

Zipline Trader, a Pythonic Algorithmic Trading Library with broker integration
https://github.com/shlomikushchi/zipline-trader
Apache License 2.0
319 stars 71 forks source link

HTTP error #211

Open taeyurl opened 2 years ago

taeyurl commented 2 years ago

Can someone help out with the error 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 358, 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 513, 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%2CGOOG%2CTSLA&limit=1000&end=2022-06-01T00%3A00%3A00%2B00%3A00

safimuhammad commented 2 years ago

getting the same issue with the current fork need help.