tedchou12 / webull

Unofficial APIs for Webull.
MIT License
601 stars 185 forks source link

get_bars on hour range #217

Closed thesupershan closed 3 years ago

thesupershan commented 3 years ago

I’m able to get_bars on all the minute ranges, and day range, but the hour ranges don’t seem to work. Attempted with TSLA requesting 10 counts but only 1 was returned and it had a strange time stamp.

Results for query of '1h':

bars: 
                            open   high     low  close      volume  vwap
timestamp                                                               
2021-04-26 00:00:00-04:00  741.0  749.3  732.61  738.2  31038502.0   0.0
boonyeow commented 3 years ago

Looks like they changed the parameter value for hourly range. Try using m60, m120, m240 instead of h1, h2, h4.