sa7med wrote: ↑
Wed Mar 20, 2019 6:51 pm
hi...im trying to login with this, ive created and uploaded the proper certificates, they are in a folder 'certs' on the desktop.
When I try trading.login() i get the following error
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
(response, elapsed_time) = self.request(self.url, session=session)
betfairlightweight.exceptions.LoginError: API login: CERT_AUTH_REQUIRED
followed the documentation very closely. any ideas?
sa7med I was just looking for something else and was directed to this chain..and noticed your post...you've probably fixed this long ago, but if someone else finds there way here wondering what the answer is..
I had this error and the fix was to append the Two Step Auth code to your pass word in the Python program...(123456 below)
Also as a temp measure you can also use the program without the certs by replacing :
trading = betfairlightweight.APIClient('Yourusername', 'YourPassword123456', app_key='YourAppkey')
Probably I wouldn't leave it like this as its less secure
(by the way, Ive still very much got my Learner plates on with Python so hope Im not talking rubbish
PS just a thought...if you do use the certs method, is this as safe as having two step in place? (I guess if you didn't have two step on and used certs, if someone were to hack into your system where the certs file was (And your username and password were integral within your code), it would be easy to breach your account?)