Comments (8)
A quick look at the Betfair API documentation seems to indicate it is possible to return Account Statement information limited by time/date range.
My initial proposal would be to write an Account Statement function, including "Date From" and "Date To" options. You would be able to return account history data between any date range you desire. Your local application would then calculate the P&L.
from abettor.
That would be fantastic - thanks
Sent from my iPhone
On 15 Dec 2015, at 14:50, Phill [email protected] wrote:
A quick look at the Betfair API documentation seems to indicate it is possible to return Account Statement information limited by time/date range.
My initial proposal would be to write an Account Statement function, including "Date From" and "Date To" options. You would be able to return account history data between any date range you desire. Your local application would then calculate the P&L.
—
Reply to this email directly or view it on GitHub.
from abettor.
Hey phill you can use my forked account balance API call to start if you want. I was going to do the update myself, but I'm not very familiar with Github and didn't want to mess anything up.
On Dec 15, 2015, at 11:39, Tammboy [email protected] wrote:
That would be fantastic - thanks
Sent from my iPhone
On 15 Dec 2015, at 14:50, Phill [email protected] wrote:
A quick look at the Betfair API documentation seems to indicate it is possible to return Account Statement information limited by time/date range.
My initial proposal would be to write an Account Statement function, including "Date From" and "Date To" options. You would be able to return account history data between any date range you desire. Your local application would then calculate the P&L.
—
Reply to this email directly or view it on GitHub.—
Reply to this email directly or view it on GitHub.
from abettor.
Thanks! I will certainly use your function as a starting point. Much appreciated. It'll for sure save me some time.
from abettor.
Hi guys,
If you check out my fork, I've created a few account related functions (e.g. account balance, market P&L, etc).
I've also added other bet related calls (cancel/update orders) and edited loginBF to incorporate basic error handling. I too am not very familiar with Github, so I'm not too sure the best way to proceed. But I am very keen to create a comprehensive library of Betfair API requests to use within R.
from abettor.
Thanks @dashee87 for the collaboration on this project.
The first thing to do is to create a pull request (PR) from your forked branch back to the master here.
https://help.github.com/articles/github-flow-in-the-browser/ (step 3)
https://help.github.com/articles/using-pull-requests/
That should make it much easier for me to review the changes and incorporate into the main repository.
I really appreciate your participation on this.
from abettor.
This enhancement is now complete thanks to additions by @dashee87
from abettor.
@dashee87 I'd like to include you as a package author in the DESCRIPTION file. Can you send me an email with your name and email address (assuming you'd like to be included of course!)? phill [at] starkingdom.co.uk
from abettor.
Related Issues (20)
- Additional Accounts API Calls HOT 4
- Regenerate Package Documentation HOT 1
- Support Spanish, Italian and Swedish end points HOT 1
- listRunnerBook Fails to Generate Documentation HOT 1
- placeOrders function does not include all fields HOT 10
- Rename checkBalance and listMarketPandL Functions HOT 2
- placeOrders not working correctly for some optional fields HOT 2
- getAccountStatement uses legacyData fields and code is messy HOT 1
- listCurrentOrders does not include all parameters HOT 1
- listClearedOrders is not correctly putting results into a dataframe and is instead providing one very long row. HOT 2
- Minor API change to listCurrentOrders - week commencing 9 August HOT 1
- Check valid login status HOT 5
- placeOrder function seems to not pass customerOrderRef on MARKET_ON_CLOSE bets HOT 1
- Help pulling market prices HOT 1
- Minor issue when trying to cancel individual betIds. Simple code fix has been proposed. HOT 3
- getAccountStatement crash with dead heat HOT 4
- getAccountStatement not returning all columns
- listMarketBook function returning identical results HOT 8
- The placeOrders function doesn't pass the handicap field to the API HOT 1
- date range in getAccountStatement not working correctly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from abettor.