Skip to main content

Win Statistics Queries

These queries provide aggregated information about winning bets over the past 24 hours.

totalWinForPast24Hours​

Returns the total amount and count of wins across all games in the past 24 hours, converted to user's preferred currency and filtered by bet type.

Query​

query TotalWinForPast24Hours($type: QueryUserBetType) {
totalWinForPast24Hours(type: $type) {
totalWonAmount
totalPlayers
}
}

Parameters​

ParameterTypeDescriptionRequired
typeQueryUserBetTypeFilter by bet type (SPORT, CASINO, BOTH)No

Response​

{
"data": {
"totalWinForPast24Hours": {
"totalWonAmount": "$25,750.50",
"totalPlayers": 128
}
}
}

winForPast24HoursByProvider​

Returns the amount and count of wins for a specific game provider in the past 24 hours, converted to user's preferred currency and filtered by bet type.

Query​

query WinForPast24HoursByProvider(
$providerId: String!
$type: QueryUserBetType
) {
winForPast24HoursByProvider(providerId: $providerId, type: $type) {
totalWonAmount
totalPlayers
}
}

Parameters​

ParameterTypeDescriptionRequired
providerIdStringID of the game providerYes
typeQueryUserBetTypeFilter by bet type (SPORT, CASINO, BOTH)No

Response​

{
"data": {
"winForPast24HoursByProvider": {
"totalWonAmount": "$8,942.25",
"totalPlayers": 45
}
}
}

winForPast24HoursByGame​

Returns the amount and count of wins for a specific casino game in the past 24 hours, converted to user's preferred currency and filtered by bet type.

Query​

query WinForPast24HoursByGame($gameId: String!, $type: QueryUserBetType) {
winForPast24HoursByGame(gameId: $gameId, type: $type) {
totalWonAmount
totalPlayers
}
}

Parameters​

ParameterTypeDescriptionRequired
gameIdStringID of the casino gameYes
typeQueryUserBetTypeFilter by bet type (SPORT, CASINO, BOTH)No

Response​

{
"data": {
"winForPast24HoursByGame": {
"totalWonAmount": "$3,125.75",
"totalPlayers": 18
}
}
}

winForPast24HoursByCasinoPage​

Returns the amount and count of wins for a specific casino page in the past 24 hours, converted to user's preferred currency and filtered by bet type.

Query​

query WinForPast24HoursByCasinoPage(
$casinoPageSlug: String!
$type: QueryUserBetType
) {
winForPast24HoursByCasinoPage(casinoPageSlug: $casinoPageSlug, type: $type) {
totalWonAmount
totalPlayers
}
}

Parameters​

ParameterTypeDescriptionRequired
casinoPageSlugStringSlug of the casino pageYes
typeQueryUserBetTypeFilter by bet type (SPORT, CASINO, BOTH)No

Response​

{
"data": {
"winForPast24HoursByCasinoPage": {
"totalWonAmount": "$12,487.50",
"totalPlayers": 63
}
}
}

Field Descriptions​

FieldDescription
totalWonAmountThe total amount won, formatted as a string in the user's preferred currency
totalPlayersThe number of unique players who won bets

Notes​

  1. The totalWonAmount is automatically converted to the user's preferred currency.
  2. Only winning bets (with status WON) are included in these statistics.
  3. The totalPlayers count represents unique users, even if they had multiple winning bets.