Sports betting exchange Betfair provides an API that allows you to:
- read market information and prices
- place / update / cancel bets
- manage your account
and more. Greentop is a C++ client for this API.
The API is documented at https://developer.betfair.com/.
Greentop is released under the MIT license. See the LICENSE file for the full text.
You can install jsoncpp from your distro's repositories, eg:
sudo apt install libjsoncpp-dev
Then configure and compile:
$ export CPPFLAGS=-I/usr/include/jsoncpp
$ ./configure --prefix=/usr
$ make
$ sudo make install
Instructions for building on Windows using Visual Studio can be found here.
Binaries for Ubuntu are available at https://launchpad.net/~captain-igloo/+archive/ubuntu/greenthumb
See the "examples" directory.
colindoig [at] gmail [dot] com
-- Colin Doig