Just reached version 1.0 on betfairlightweight, I have added a simple tutorial to help anyone just getting started with the language/API.
https://underround.wordpress.com/
https://github.com/liampauling/betfairlightweight
betfairlightweight (python wrapper)
Just wondered if anyone could help, iv managed to create a certificate to try and enable me to use LinusP's betfairlightweight however I
am still unable to log in. My certificate seems to have uploaded successfully.
am still unable to log in. My certificate seems to have uploaded successfully.
You do not have the required permissions to view the files attached to this post.
right managed to get .crt file and uploaded to betfair. Ran there sample python code and got a successful log in with session token printed, yay
.
However when i come to login via betfairlightweight it still says Exception: Certificate folder not found in /certs/. Be gentle![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
![Laughing :lol:](./images/smilies/icon_lol.gif)
However when i come to login via betfairlightweight it still says Exception: Certificate folder not found in /certs/. Be gentle
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Lightweight assumes you have a folder at the top of your c drive /certs, you can either create this folder and place the certs in there or provide the location of your certs to the client:
https://github.com/liampauling/betfairl ... ent.py#L46
https://github.com/liampauling/betfairl ... ent.py#L46
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>
File "C:\Python36\lib\site-packages\betfairlightweight\endpoints\login.
(response, elapsed_time) = self.request(self.url, session=session)
File "C:\Python36\lib\site-packages\betfairlightweight\endpoints\login.
self._error_handler(response_data)
File "C:\Python36\lib\site-packages\betfairlightweight\endpoints\login.
raise self._error(response)
betfairlightweight.exceptions.LoginError: API login: CERT_AUTH_REQUIRED
followed the documentation very closely. any ideas?
When I try trading.login() i get the following error
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python36\lib\site-packages\betfairlightweight\endpoints\login.
(response, elapsed_time) = self.request(self.url, session=session)
File "C:\Python36\lib\site-packages\betfairlightweight\endpoints\login.
self._error_handler(response_data)
File "C:\Python36\lib\site-packages\betfairlightweight\endpoints\login.
raise self._error(response)
betfairlightweight.exceptions.LoginError: API login: CERT_AUTH_REQUIRED
followed the documentation very closely. any ideas?
What version are you running? Betfair recently updated the endpoints.sa7med wrote: ↑Wed Mar 20, 2019 6:51 pmhi...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>
File "C:\Python36\lib\site-packages\betfairlightweight\endpoints\login.
(response, elapsed_time) = self.request(self.url, session=session)
File "C:\Python36\lib\site-packages\betfairlightweight\endpoints\login.
self._error_handler(response_data)
File "C:\Python36\lib\site-packages\betfairlightweight\endpoints\login.
raise self._error(response)
betfairlightweight.exceptions.LoginError: API login: CERT_AUTH_REQUIRED
followed the documentation very closely. any ideas?
i see, ill update nowLinusP wrote: ↑Wed Mar 20, 2019 7:46 pmWhat version are you running? Betfair recently updated the endpoints.sa7med wrote: ↑Wed Mar 20, 2019 6:51 pmhi...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>
File "C:\Python36\lib\site-packages\betfairlightweight\endpoints\login.
(response, elapsed_time) = self.request(self.url, session=session)
File "C:\Python36\lib\site-packages\betfairlightweight\endpoints\login.
self._error_handler(response_data)
File "C:\Python36\lib\site-packages\betfairlightweight\endpoints\login.
raise self._error(response)
betfairlightweight.exceptions.LoginError: API login: CERT_AUTH_REQUIRED
followed the documentation very closely. any ideas?
Hi
I am trying to use this on a Windows 10 machine, i have created a folder C:\certs & put my .crt file in there, however when I run:
trading = betfairlightweight.APIClient(username=my_username,
password=my_password,
app_key=my_app_key,
certs=r'C:\certs')
I get the error:
betfairlightweight.exceptions.APIError: None
Params: None
Exception: Certificate folder not found in C:\certs
Process finished with exit code 1
Find it strange that is says 'Certificate folder not found' any ideas its driving me crazy !?
Cheers
I am trying to use this on a Windows 10 machine, i have created a folder C:\certs & put my .crt file in there, however when I run:
trading = betfairlightweight.APIClient(username=my_username,
password=my_password,
app_key=my_app_key,
certs=r'C:\certs')
I get the error:
betfairlightweight.exceptions.APIError: None
Params: None
Exception: Certificate folder not found in C:\certs
Process finished with exit code 1
Find it strange that is says 'Certificate folder not found' any ideas its driving me crazy !?
Cheers