tedchou12 / webull

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

Add timestamp to get_bars to allow fetching historical data #369

Closed AdriandLiu closed 1 year ago

AdriandLiu commented 1 year ago

Description

This PR is to add timestamp and extended hours to bars url. Previously this feature has been commented out and not active anymore. Please note that the timestamp argument is dedicated to have integer data type and it's supposed to be unix timestamp. Also it seems that webull increased their capacity in how many data they can return at once from 800 to 1200, changes implied.

Tests

Tested locally using postman with GET method and modified URL

Influence

This PR will affect functions of

While all default value is set and a checker is in place.

Date

2022-12-29