Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Historic Data API #32

Open
1 of 5 tasks
phillc73 opened this issue Feb 1, 2021 · 4 comments
Open
1 of 5 tasks

Historic Data API #32

phillc73 opened this issue Feb 1, 2021 · 4 comments

Comments

@phillc73
Copy link
Owner

phillc73 commented Feb 1, 2021

Betfair provides API access to historic pricing data. abettor does not yet support this part of the API and probably could/should.

https://historicdata.betfair.com/#/home
https://historicdata.betfair.com/#/apidocs

Only five functions to consider:

  • GetMyData
  • GetCollectionOptions
  • DownloadListOfFiles
  • GetAdvBasketDataSize
  • DownloadFile
@Soccerama
Copy link
Contributor

Soccerama commented Feb 9, 2021

Started dabbling with this API which is new to me. I could make it work through the browser but then using exactly the same command through the API didn't work and gave the error:

Server Error
401 - Unauthorized: Access is denied due to invalid credentials.
You do not have permission to view this directory or page using the credentials that you supplied.

I asked about it on a Betfair related slack channel and was told that this is "a famously flaky API". So decided there are probably better uses of my time for now. If anyone else wants to give this a try then happy to share my initial work.

@phillc73
Copy link
Owner Author

Seems to work for me. Have made a start with GetMyData() function. The format of the JSON query to the end point is different to all other Betting/Accounts API calls.

@Soccerama
Copy link
Contributor

Glad to hear that. I couldn't even make GetMyData() work.

@Soccerama
Copy link
Contributor

Looks good and great to see you got it working.
Tested GetMyData() and found a minor type in the function arguments which stopped it from working. Pull Request submitted to fix this then it should work fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants