Require data for 3min timeframe using Fyers API

@vikram_sri @sAEUMrwqX1

Hi Fyers Team,

I wanted to fetch the ATM options data for 3min timeframe. Below is the example -

symbol = “NSE:BANKNIFTY2252634200CE”

data = {“symbol”: symbol, “resolution”: “3”, “date_format”: “1”, “range_from”: RANGE_FROM, “range_to”: RANGE_TO, ‘cont_flag’: 1}
hist = fyers.history(data)

What does cont_flag actually do?

If I want candle data for 3min Timeframe -

(1) Should I just put sleep(180) in my python code OR (2) setting cont_flag=1 will keep on giving me data every 3mins automatically?

Little confusion with description written for cont_flag

PS: Ignore RANGE_FROM, RANGE_TO as they are my local variables.

Hi Amit,
If cont_flag is set to 1, you will receive continuous futures data,
https://myapi.fyers.in/docs/#tag/Data-Api/paths/~1DataApi/post

You will receive historical data only when you hit the API.