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

data.history() fails tracing back to alpaca_trade_api/rest.py TypeError #250

Open
vinceperkins opened this issue Jul 21, 2021 · 0 comments

Comments

@vinceperkins
Copy link

vinceperkins commented Jul 21, 2021

Reproduceable by calling data.history(symbol('SSY'), 'price', bar_count=745, frequency="1m").fillna('ffill') .

With some symbols the function will run with expected results. Other times the following error will occur with certain symbols. It traces back to a TypeError, despite no argument changes when data is successfully gotten from a symbol.

Exception in thread Thread-904:Traceback (most recent call last): File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner self.run() File "/usr/lib/python3.6/threading.py", line 864, in run self._target(*self._args, **self._kwargs) File "/usr/lib/python3.6/multiprocessing/pool.py", line 463, in _handle_results task = get() File "/usr/lib/python3.6/multiprocessing/connection.py", line 251, in recv return _ForkingPickler.loads(buf.getbuffer()) File "/home/vincentfperkins/venv/lib/python3.6/site-packages/alpaca_trade_api/rest.py", line 48, in __init__ super().__init__(error['message'])TypeError: string indices must be integers

Any help is much appreciated. Thank you.

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