{'code': -16, 'message': 'Refresh token API is currently disabled to comply with SE

I am getting this error response: {‘code’: -16, ‘message’: 'Refresh token API is currently disabled to comply with SE.

Could you please help me understand the reason for this error and how such errors are usually handled to avoid running into this.

Hey @100669168896447809940,

As per the retail Algo regulations, daily two factor authentication login is mandatory. Hence the refresh token login flow has been disabled.
You can use TOTP based login, which is seamless and secured. Kindly check your DM, for sample code.

Hey, coming up witht the same issue. “Refresh token API is disabled.”

Please share the sample code for TOTP-based automated login for API v3."

Hi @Sagnik_Dey
Please check DM, sample code has been shared

Hi there, could you please DM me the sample code as well? Thanks!