firstrade-api icon indicating copy to clipboard operation
firstrade-api copied to clipboard

Cannot login using python file

Open elfwinter319 opened this issue 9 months ago • 1 comments

My python file changed nothing, but today's feedback is “Traceback (most recent call last): File "C:\Users\xxx\AppData\Local\Programs\Python\Python313\zhuchengxuv2.py", line 6, in need_code = ft_ss1.login() File "C:\Users\xxx\AppData\Local\Programs\Python\Python313\Lib\site-packages\firstrade\account.py", line 135, in login raise LoginResponseError(self.login_json["error"]) firstrade.exceptions.LoginResponseError: Failed to login. API returned the following error: Bad Request”

elfwinter319 avatar May 04 '25 09:05 elfwinter319

I use a PIN code as the login method, using the same Python script with two different accounts, one can log in through the API and the other cannot. Excuse me, how can I confirm if there is an issue with my account? Additionally, it should be noted that the problematic account could have been logged in with a PIN code even a month ago.

elfwinter319 avatar May 10 '25 13:05 elfwinter319