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​
Parameter | Type | Description | Required |
---|---|---|---|
type | QueryUserBetType | Filter 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​
Parameter | Type | Description | Required |
---|---|---|---|
providerId | String | ID of the game provider | Yes |
type | QueryUserBetType | Filter 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​
Parameter | Type | Description | Required |
---|---|---|---|
gameId | String | ID of the casino game | Yes |
type | QueryUserBetType | Filter 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​
Parameter | Type | Description | Required |
---|---|---|---|
casinoPageSlug | String | Slug of the casino page | Yes |
type | QueryUserBetType | Filter by bet type (SPORT, CASINO, BOTH) | No |
Response​
{
"data": {
"winForPast24HoursByCasinoPage": {
"totalWonAmount": "$12,487.50",
"totalPlayers": 63
}
}
}
Field Descriptions​
Field | Description |
---|---|
totalWonAmount | The total amount won, formatted as a string in the user's preferred currency |
totalPlayers | The number of unique players who won bets |
Notes​
- The totalWonAmount is automatically converted to the user's preferred currency.
- Only winning bets (with status WON) are included in these statistics.
- The totalPlayers count represents unique users, even if they had multiple winning bets.