Skip to main content
Question
FYERS API
Kamal
Kamalakar
Asked a question 3 months ago

AttributeError: 'SessionModel' object has no attribute 'auth' Tried sample code but not able to connect through API, facing above error rom fyers_api import accessToken from fyers_api import fyersModel app_id = XXXX app_secret = XXXX app_session = accessToken.SessionModel(app_id, app_secret) response = app_session.auth()

Join FYERS Community to pick others' brains on Trading/Investing

Hi Kamal,

which API version are you referring to here.

If it's API V2 Please refer this docs https://myapi.fyers.in/docs/#tag/Authentication-and-Login-Flow-User-Apps/paths/~1Authentication%20&%20Login%20Flow%20-%20User%20Apps/patch 87

The calling method here will be appsession.generateauthcode()

Related Questions