Hello, I am trying to migrate from quotes API to websocket. I need 1 min OHLCV data. Which field should I use for Volume?
Sum oflast_traded_qty , tot_buy_qty + tot_sell_qty or any other field?
Hello, I am trying to migrate from quotes API to websocket. I need 1 min OHLCV data. Which field should I use for Volume?
Sum oflast_traded_qty , tot_buy_qty + tot_sell_qty or any other field?
In websocket, there is no 1-min OHLC like quote Api.
You need to build candles yourself and WS streams continuously. So whatever timeframe you are sampling, you will add volume of day upto previous bar and subtract it from total volume.
OR when your new bar starts, you need to add last_traded_qty cumulatively until a new bar starts.
I wrote an outline here
For OHLC Data Capture -Assistance required for transitioning from Fyers-V2 to Fyers-V3
I use dataframe in python, so i store pv (previous volume) which is cumulative. There is small logic of dividing time to get bar time (timeframe)
Hey @granddervish
We do not provide the 1 minute data through websocket , it is only for a day .