tedchou12 / webull

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

How to get the 4h candles as 9:30-11:00-15:00 instead of 13:30 and 16:00? #385

Open alexh0101 opened 1 year ago

alexh0101 commented 1 year ago

When I download 4h candles, I get only 2 candles per trading session (I don't want extended hours).

Is there a way I can get those 3 candles: 9:30-11:00-15:00?

ICANTFINDAUSERNAMEATALL commented 1 year ago

I don't think so. A simple, or maybe complicated way would be to get the 2h candles and then convert these to what you want.

LukeWang01 commented 1 year ago

Can we get hourly bars? we I call this: bar_data = wb.get_bars('QQQ', interval='h2', count=1000, extendTrading=0, timeStamp=None)

I get this output, only one bar... image