Description Usage Arguments Value See Also Examples
Get Details of all Settled bets
1 2 | mb_get_settled(session_data, sport_id = NULL, period = NULL,
start_date = Sys.Date() - 90, end_date = Sys.Date())
|
session_data |
A session object returned from a successful mb_login attempt. It contains details about your user preferences and security details. |
sport_id |
A vector of integer sport_ids that indicated sports for which event details are required. e.g. c(15,1) gives Soccer and Pro Football (NFL) |
period |
A value with one of 'today', '1-day', '2-day', 'yesterday', 'week', 'month', '1-month', '3-month' |
start_date |
A string (or date/POSIXct) value with format YYYY-mm-dd or YYYY-mm-dd HH:MM:SS format. Defaults to 90 days ago. |
end_date |
A string (or date/POSIXct) value with format YYYY-mm-dd or YYYY-mm-dd HH:MM:SS format. Defaults to today. |
If successful, a dataframe with first 500 settled bets. Only 500 bets are permitted at one time. Pagination is possible but not implemented in this version. The data frame has the following fields:
the amount bet
The sport id on which the bet was placed
The event id on which the bet was placed
The market id on which the bet was placed
The market type on which the bet was placed
The amount won or lost on the market
The date the bet was settled
1 2 3 | ## Not run: my_session <- mb_login("my_user_name","verysafepassword");
mb_get_settled(session_data=my_session)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.