-
Notifications
You must be signed in to change notification settings - Fork 85
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
Still seeing the same issue on TypeError for barset.df #12
Comments
Running locally and see this error: File "main.py", line 5, in |
I fixed it myself by converting it to int64
|
Where did you put this block of code? I am running into the same issue. |
in the enity.py file. Make sure your running the latest alpaca-trade-api (0.24) on line 84: |
Use api version 0.26 |
File "/app/samplealgo/algo.py", line 50, in _get_prices
2019-01-31T17:02:13.116398+00:00 app[worker.1]: return barset.df
2019-01-31T17:02:13.116402+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.6/site-packages/alpaca_trade_api/entity.py", line 102, in df
2019-01-31T17:02:13.116581+00:00 app[worker.1]: df = bars.df.copy()
2019-01-31T17:02:13.116585+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.6/site-packages/alpaca_trade_api/entity.py", line 84, in df
2019-01-31T17:02:13.116746+00:00 app[worker.1]: df.index * 1e9, utc=True,
2019-01-31T17:02:13.116750+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.6/site-packages/pandas/core/ops.py", line 176, in invalid_op
2019-01-31T17:02:13.116959+00:00 app[worker.1]: "{typ}".format(name=name, typ=type(self).name))
2019-01-31T17:02:13.116983+00:00 app[worker.1]: TypeError: cannot perform mul with this index type: Index
The text was updated successfully, but these errors were encountered: