alpacahq / alpacahq/pylivetrader

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

Offen
#250 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
685
Forks
198
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.