General
list_sports
Apis.instance().db_api().exec( "list_sports", [] )ChainStore.getSportsList = function getSportsList() {
return new Promise(function (resolve, reject) {
_ws.Apis.instance().db_api().exec('list_sports', []).then(function (sportsList) {
if (sportsList) {
resolve(sportsList);
} else {
resolve(null);
}
}, reject);
});
};list_event_groups
Apis.instance().db_api().exec( "list_event_groups", [sportId] )ChainStore.prototype.getEventGroupsList = function getEventGroupsList(sportId) {
var _this17 = this;
var eventGroupsList = this.event_groups_list_by_sport_id.get(sportId);
if (eventGroupsList === undefined) {
this.event_groups_list_by_sport_id = this.event_groups_list_by_sport_id.set(sportId, _immutable2.default.Set());
_ws.Apis.instance().db_api().exec('list_event_groups', [sportId]).then(function (eventGroups) {
var set = new Set();
for (var i = 0, len = eventGroups.length; i < len; ++i) {
set.add(eventGroups[i]);
}
_this17.event_groups_list_by_sport_id = _this17.event_groups_list_by_sport_id.set(sportId, _immutable2.default.Set(set));
_this17.notifySubscribers();
}, function () {
_this17.event_groups_list_by_sport_id = _this17.event_groups_list_by_sport_id.delete(sportId);
});
}
return this.event_groups_list_by_sport_id.get(sportId);
};list_betting_market_groups
Apis.instance().db_api().exec( "list_betting_market_groups", [eventId] )ChainStore.prototype.getBettingMarketGroupsList = function getBettingMarketGroupsList(eventId) {
var _this18 = this;
var bettingMarketGroupsList = this.betting_market_groups_list_by_sport_id.get(eventId);
if (bettingMarketGroupsList === undefined) {
this.betting_market_groups_list_by_sport_id = this.betting_market_groups_list_by_sport_id.set(eventId, _immutable2.default.Set());
_ws.Apis.instance().db_api().exec('list_betting_market_groups', [eventId]).then(function (bettingMarketGroups) {
var set = new Set();
for (var i = 0, len = bettingMarketGroups.length; i < len; ++i) {
set.add(bettingMarketGroups[i]);
}
_this18.betting_market_groups_list_by_sport_id = _this18.betting_market_groups_list_by_sport_id.set( // eslint-disable-line
eventId, _immutable2.default.Set(set));
_this18.notifySubscribers();
}, function () {
_this18.betting_market_groups_list_by_sport_id = _this18.betting_market_groups_list_by_sport_id.delete( // eslint-disable-line
eventId);
});
}
return this.betting_market_groups_list_by_sport_id.get(eventId);
};list_betting_markets
get_global_betting_statistics
get_binned_order_book
get_total_matched_bet_amount_for_betting_market_group
get_events_containing_sub_string
get_unmatched_bets_for_bettor
list_events_in_group
get_all_unmatched_bets_for_bettor
get_matched_bets_for_bettor
get_all_matched_bets_for_bettor
Last updated
