0 votes
Error in if (.xmlp("errorCode", v) != "OK") return(FALSE) : 
  argument is of length zero
 
Get the above error when trying to log into my betfair account. Login worked one month ago, has been no alteration to code.
 
Any ideas?
 
Thanks
in betfaiR package by stoatey2802 Plater (120 points)

1 Answer

0 votes
Two possibilities here:

 

1. There was a change in Betfair's T&Cs in early Nov - their regulator changed from Gibraltar to Britain, basically - and you had to accept the change manually via a website login. Until you did this the API locked you out. Once you did it, everything was fine. So if you haven't used the Betfair website recently, this could be an explanation with a simple fix.

 

2. Also in early-Nov, Betfair turned off the old SOAP-based API. Only the new one (JSON-based, REST) now works. Therefore, if you're running a Bot that only works with the old API, I'm afraid it's now redundant and there's no alternative but to rewrite it for the new API. This is very much not an easy fix. Sorry if this is the case for you.
by SlightReturn Listed class (2.9k points)
...