phillc73 / abettor

An R package for connecting to the online betting exchange Betfair, via their API-NG product, using JSON-RPC.
Other
51 stars 36 forks source link

date range in getAccountStatement not working correctly #68

Open Soccerama opened 1 year ago

Soccerama commented 1 year ago

Received this on another forum: I've been messing about with the getAccountStatementfunction lately trying to work out why it always goes back 90 days when I just want the last 24 hrs worth of activity. It seems that the function isn't passing the date range I specify as the correct variable. In the function there are these two lines to set the date range:

getAccStatOps$params$daterange$from <- fromDate
getAccStatOps$params$daterange$to <- toDate

But according to the API docs the parameter should be called itemDateRangenot daterange. Changing the parameter name speeds up the call by a lot!