1 min (or Tick-by-Tick) Bar data in Fyers Websocket

Hi There,

Please help as how to get 1 min bar data for any symbol in websocket?

Fyers websocket provides open_price, low_price, high_price and prev_close_price but these prices are daily prices, I want 1min bar prices or Tick-by-Tick bar prices such as bar_open, bar_high, bar_low, bar_close?

The Docs says TrueData API provides bar data but I have not tested TrueData API yet. Is there anyway to get my desired data using fyers websocket?

As far I know, if you want bars then you have to use the historical api. Websocket will only provide tick data

Yes bro @algo_go is right
And bro you get live data in websocket not one day data

you can generate 1 min bar data using pandas dataframe. just collect all the ticks from websocket into pandas dataframe and then you can calculate 1 min( or any other mins) OHLC data using group by function.