Latest Wins Queries
These queries provide information about recent winning bets placed by users.
totalLatestWin​
Returns the latest wins within the last hour, converted to user's preferred currency and filtered by bet type.
Query​
query TotalLatestWin($type: QueryUserBetType) {
totalLatestWin(type: $type) {
user {
id
username
avatarUrl
}
game {
id
name
thumbnailUrl
provider
}
wonAmount
}
}
Parameters​
Parameter | Type | Description | Required |
---|---|---|---|
type | QueryUserBetType | Filter by bet type (SPORT, CASINO, BOTH) | No |
Response​
{
"data": {
"totalLatestWin": [
{
"user": {
"id": "60da4b45bc06b53c4851a123",
"username": "player123",
"avatarUrl": "https://example.com/avatars/player123.jpg"
},
"game": {
"id": "cg-123456",
"name": "Book of Dead",
"thumbnailUrl": "https://example.com/games/book-of-dead.jpg",
"provider": "Play'n GO"
},
"wonAmount": "$250.50"
},
{
"user": {
"id": "60da4b45bc06b53c4851a124",
"username": "gambler456",
"avatarUrl": "https://example.com/avatars/gambler456.jpg"
},
"game": {
"id": "cg-789012",
"name": "Gonzo's Quest",
"thumbnailUrl": "https://example.com/games/gonzos-quest.jpg",
"provider": "NetEnt"
},
"wonAmount": "$175.25"
}
]
}
}
casinoGameLatestWin​
Returns the latest wins within the last hour for a specific casino game, converted to user's preferred currency.
Query​
query CasinoGameLatestWin($gameId: String!, $type: QueryUserBetType) {
casinoGameLatestWin(gameId: $gameId, type: $type) {
user {
id
username
avatarUrl
}
game {
id
name
thumbnailUrl
provider
}
wonAmount
}
}
Parameters​
Parameter | Type | Description | Required |
---|---|---|---|
gameId | String | ID of the casino game | Yes |
type | QueryUserBetType | Filter by bet type (SPORT, CASINO, BOTH) | No |
Response​
Similar to totalLatestWin
but filtered to a specific game.
gameProviderLatestWin​
Returns the latest wins within the last hour for a specific game provider, converted to user's preferred currency.
Query​
query GameProviderLatestWin($providerId: String!, $type: QueryUserBetType) {
gameProviderLatestWin(providerId: $providerId, type: $type) {
user {
id
username
avatarUrl
}
game {
id
name
thumbnailUrl
provider
}
wonAmount
}
}
Parameters​
Parameter | Type | Description | Required |
---|---|---|---|
providerId | String | ID of the game provider | Yes |
type | QueryUserBetType | Filter by bet type (SPORT, CASINO, BOTH) | No |
Response​
Similar to totalLatestWin
but filtered to a specific provider.
casinoPageLatestWin​
Returns the latest wins within the last hour for a specific casino page, converted to user's preferred currency.
Query​
query CasinoPageLatestWin($casinoPageSlug: String!, $type: QueryUserBetType) {
casinoPageLatestWin(casinoPageSlug: $casinoPageSlug, type: $type) {
user {
id
username
avatarUrl
}
game {
id
name
thumbnailUrl
provider
}
wonAmount
}
}
Parameters​
Parameter | Type | Description | Required |
---|---|---|---|
casinoPageSlug | String | Slug of the casino page | Yes |
type | QueryUserBetType | Filter by bet type (SPORT, CASINO, BOTH) | No |
Response​
Similar to totalLatestWin
but filtered to games on a specific casino page.