alpacahq / alpacahq/alpaca-backtrader-api
Minute data does not work
- Ngôn ngữ chính
- Python
- Star
- 702
- Fork
- 160
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
To reproduce this problem, simply go into one of the examples, set IS_BACKTEST=True, and change the timeframe to bt.TimeFrame.Minutes (instead of Days).
Exception in thread Thread-1:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/trading_calendars/utils/memoize.py", line 47, in __get__
return self._cache[instance]
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/weakref.py", line 394, in __getitem__
return self.data[ref(key)]
KeyError:
I also tried using Polygon data, but I ran into a different issue:
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.polygon.io/v2/...
Does anyone know how to solve this? It seems like this is a fundamental issue that should be affecting everyone.
If there is no way to solve it, is there at least a way to run with daily data at market open (instead of close)?
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.