tedchou12 / webull

Unofficial APIs for Webull.
MIT License
597 stars 181 forks source link

get_bars, timeStamp not accepting epoc times #330

Open ICANTFINDAUSERNAMEATALL opened 2 years ago

ICANTFINDAUSERNAMEATALL commented 2 years ago

for both paper_webull and webull, adding an epoc time will result a key error:

Traceback (most recent call last): File "filepath...", line 40, in print(wb2.get_bars("NIO", timeStamp=time)) File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\webull\webull.py", line 1120, in get_bars time_zone = timezone(result[0]['timeZone']) KeyError: 0

Thanks so much for this api. it really helps! Hope you can solve this issue!