I require a basic script to use the free betfair API to place bets. The script does not need to have all the advanced API features it only needs to be able to:
- Take input (bet information) to have the bet placed
- Output confirmation to a text file (confirmation of bid placed)
- retrieve account balance and dump this to a text file when required
Basically at the moment I have a bunch of shell scripts/Applescripts that do this for Baseball MLB, but its only temporary. In summary I receive tips via email. I can take care of extracting the relevant information for the bets from the emails I receive and call this script and pass to it (via command line options) the information and the script will then place the bet, output the bet confirmation to a text file. Also as above an option to check account balance and output this to a text file as well.
It will run on Mac OS X, so it can either be a Java (jar) program or a python script.
There was an older Java program called klubar bee which basically interfaced with the betfair API and had a bunch of command options, that is similar to what I require however I only need the basic features. It should be able to work with AUS/UK markets and the following sports:
Horse Racing (UK)
I should be able to call the script via the following for example:
[url removed, login to view] --market AU --sport Baseball --league MLB --type Handicap --bet -1.5 --team(or horse) Red Sox --stake 80.00
[url removed, login to view] --market AU --sport Baseball --league MLB --type Over/Under --bet Over 8 --team(or horse) Red Sox --stake 80.00
[url removed, login to view] --market AU --sport Soccer --league Italy A(example) --type Moneyline(Two way) --team(or horse) Team Name --stake 80.00
[url removed, login to view] --market AU --sport Horse --type Handicap --bet 6m 2f --team(or horse) Horse Name --stake 80.00
The script to handle all available standard bet types Moneyline(two way), Over/Under, Team Total, Handicap
--balance (retrieve account balance, I would then output that to a file a required >> ./balance_file)