My plan is to record volume value of specific symbol in csv for every minute as it updates.
Issues:
1] The response doesn't contain the data I want for the given symbol.
2] The response gives data for multiple strike prices even if strikecount 1 is set.
3] The response gives data for multiple strike prices even if specific symbol is required.
4] The response doesn't have timestamp info in it to determine at what time the data is captured.
How do i implement my requirement to record the volume of specific symbol for every specific interval of time. (for example: having columns volume, datetime in csv and record updated volume in rows)
fyers = fyersModel.FyersModel(
client_id=cred.CLIENT_ID,
token=cred.TOKEN,
is_async=False,
log_path=log_path,
)
data = {
"symbol": "NSE:NIFTY2511625000PE",
"strikecount": 1,
"timestamp": "1737021600",
}
response = fyers.optionchain(data=data)
beautified_response = json.dumps(response, indent=4)