Provides a wrapper for the some basic functionality around the 'Matchbook' <http://www.matchbook.com> REST API. It features calls to get events, markets and runners in data frame format. It features functions for bet placement and position management and also allows reporting of settled bet transactions. Note: this package uses the back-lay format. The default for odds type, currency and language are set according to those of the registered user account.
The package provides the basic functionality for betting on Matchbook.com via the RESTful API service. More details and examples can be found on this Bitbucket repository. A registered Matchbook.com account is required to use this package. Please read the documentation carefully for each individual function before use.
In order to login and log out, use the following functions:
mb_login
mb_logout
In order to get information on events/marketsor runners, use the following functions:
mb_get_events
mb_get_markets
mb_get_runners
In order to perform a bet action, use the following functions:
mb_bet_place
mb_bet_cancel
mb_bet_update
To see details on bets that have not yet settled, use the following function:
mb_get_bets
To see details on bets that have already settled, use the following function:
mb_get_settled
Your balance/exposure can be displayed on login and they are also returned as part of the mb_bet_place
,mb_bet_cancel
and mb_bet_update
function calls.
Niall Fitzgerald
Maintainer: Niall Fitzgerald <nfitzgerald@xanadu.ie>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.