Issue like Please provide a valid symbol & your app does not have the permission

Getting errors in websocket & history API. @FyersTeam Could you guys look into this issue?

Websocket Market Data

data_type = "symbolData"
symbol = ["NSE:SBIN-EQ"]
fyersSocket = ws.FyersSocket(access_token=Access_token, data_type=data_type,symbol=symbol)

Error message:{‘s’: ‘error’, ‘code’: -300, ‘message’: ‘Please provide a valid symbol’}

Historical AP:

data = {"symbol":"NSE:SBIN-EQ","resolution":"D","date_format":"0","range_from":"1629085327","range_to":"1630058460","cont_flag":"1"}
fyers.history(data)

Error message: {‘s’: ‘error’, ‘code’: -438, ‘message’: ‘your app does not have the permission’}

Hey Pradeep,
While creating the app did you give permission to Historical Data?

Yes Vikram Sri, I have given all the permissions to this App.

@vikram_sri** @tejas_khoday **

Could someone look into this issue?

still I am getting {‘s’: ‘error’, ‘code’: -300, ‘message’: ‘Please provide a valid symbol’} error.

I have provided all the Permission to this App (Profile Details,Transaction Info,Order Placement,Historical Data,Quotes and Market Data)

I am facing the same issue.

I am able to get response for Quotes and Historical API calls. But, when I pass the same for market data in Websockets, I am getting this error.

{‘s’: ‘error’, ‘code’: -300, ‘message’: ‘Please provide a valid symbol’}

Since I am getting response for same symbol for Historical and Quote API methods, symbol is not an issue.

My Access token, I have tried regular “access token” as well as “appID:accessToken” formats. Same response.

Permission - Given all persmissions for the API app.

Kindly advise.

I’m also getting the same issue kindly advice

@vikram_sri

Is the support portals really monitored ? No responses as well as no proper documentation.

How to resolve issues ?

Any update on the reported issue ?

Hi @gbmh1T3YQr

Can you please let me some symbols for which you are facing the issue and also the code snippet as it will help me to have an idea regarding the flow and i would be able to debug it more precisely and get back to you on that

Thanks and Regards,
Piyush Kapse

Hi Piyush,

Thanks for the response.

My code in main:

redirect_url = “http://127.0.0.1/tradebot

appId = “XXXXXXXXXX-100”

app_secret = “YYYYYYYYYY”

data_type = ‘symbolData’

symbol = “NSE:INFY-EQ”

def custom_message(self):

   print("Custom " + str(self.response))

auth_code = getauthToken(appId, redirect_url)

access_token = generate_access_token(auth_code, appId, app_secret).get(‘access_token’)

access_token1 = appId + “:” + access_token

log_path = r"D:\Fyers\Logs\fyers-api-py\fyers_api"

api_call(access_token, appId, log_path)

ws.FyersSocket.websocket_data = custom_message

fyersSocket = ws.FyersSocket(access_token=access_token1, data_type=data_type, symbol=symbol)

fyersSocket.subscribe()

While executing, I get this error :

{‘s’: ‘error’, ‘code’: -300, ‘message’: ‘Please provide a valid symbol’}

Symbols tried :

  • symbol = “NSE:INFY-EQ”
  • symbol = “NSE:USDINR2191768CE”
  • symbol = “NSE:SBIN-EQ”

Please check and guide me if I am missing something. Been stuck with this for more than 1-2 weeks.

When I fetch quotes (or) historical API symbols, I get proper responses. When I make a WS call, this issue is encountered.

@HvxNu5uhfN Could you refer to my initial post. I have given all the necessary code snippet.

You guys just buying time requesting more details instead of fixing the issue.

Is there responsible person in Fyres Team who can look into this issue and provide fix at the earliest?

It is almost a month now, yet no sign of issue fix

Hi @FbRi10dAj0 ,

I have looked into your issue too will provide the fix at earliest if not we can try to have a call wherein we can Discuss about the issue and get it rectified.

Sorry for the inconvenience

Thanks and Regards,
Piyush Kapse

Hi @gbmh1T3YQr ,

you are getting the issue as the
symbol you are passing is of invalid format
the symbol should be passed in a list:

so the symbol here will be
as symbol = [“NSE:INFY-EQ”] instead of symbol = “NSE:INFY-EQ”

Hope this helps you.

Thanks and Regards,
Piyush Kapse

Yes @HvxNu5uhfN call would be better.

Could you arrange for a call any day after 5:30 PM would be fine for me so that I can share my screen and show the issues I am facing.

Hi @FbRi10dAj0 ,
Please check your inbox