Can get 500+ stock data every second without rate limit

Process.

First fetch 1 minute time frame data and save into json file or redis(for fastest read and write)

Then get data from websocket (1minutes previous and Live data ) . Websocket live data converter into 1 minutes live data candle . Now you can get 1minutes previous data, 1minutes live data.

Then keep updating and inserting live data in json file .

Create one another file or function which can read this json file and convert into any time frame data like 2-min, 3-min, …..1-hour, 2-hour.

By this method you can get live data and you will never get rate limit error.

I searched many method to avoid rate limit. And I found this method , this is the best method. Only first time I need to call api for data. After that websocket data I will insert in JSON file.