MCX futures and options data not accessible through in apiV3

Hi,

I am trying to access live MCX data through websocket using api V3. I am getting the following error.

“in __symbol_conversion\n if symbol_value[2] == True:\nIndexError: tuple index out of range”,“exception_name”:“IndexError”".

I checked and found that in FyersWebSocket\map.json only NSE and BSE indices are there in the dictionary. Is there any way to access MCX data?

Can someone also suggest me what is the equivalent of websocket_data method in api V3

Hi @sukrutha2112-ngd ,

It is not like that. We are providing MCX data. You are getting this error because your token has expired. Please create a new access token and then again try. You will get the data.

Hope it will help.
Thank you

Thanks Pankaj. I created new access token and not getting the error anymore. But I am not getting any market data either. below is the snippet of my code. Suggest me if I am doing anything wrong.

Output of the code:

Response: {‘type’: ‘cn’, ‘code’: 200, ‘message’: ‘Authentication done’, ‘s’: ‘ok’}

Response: {‘type’: ‘ful’, ‘code’: 200, ‘message’: ‘Full Mode On’, ‘s’: ‘ok’}

Hi @sukrutha2112-ngd

In Which mode , you are using websocket.?

Hi pankaj,

I have taken this code from the fyers git hub repository. It is for market update and litemode is disabled.

Hi @sukrutha2112-ngd

My mean was foreground or background

If you are using background then it will write log in the log file
Otherwise provide me full code , and symbol for which you are trying.
I will help you