Latest Bets Queries
These queries provide paginated information about recent bets placed by all users.
latestBets​
Returns a paginated list of the most recent bets placed by all users, filtered by bet type with limit and offset for pagination.
Query​
query LatestBets($limit: Int, $offset: Int, $type: QueryUserBetType) {
latestBets(limit: $limit, offset: $offset, type: $type) {
data {
user {
id
username
avatarUrl
}
game {
id
name
thumbnailUrl
provider
}
wonAmount
betAmount
currency
time
}
count
limit
offset
}
}
Parameters​
Parameter | Type | Description | Required | Default |
---|---|---|---|---|
limit | Int | Maximum number of results to return | No | 10 |
offset | Int | Number of results to skip | No | 0 |
type | QueryUserBetType | Filter by bet type (SPORT, CASINO, BOTH) | No | CASINO |
Response​
{
"data": {
"latestBets": {
"data": [
{
"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": 125.5,
"betAmount": 25.0,
"currency": "USD",
"time": "2023-05-15T14:32:15Z"
},
{
"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": 0,
"betAmount": 50.0,
"currency": "EUR",
"time": "2023-05-15T14:31:45Z"
}
],
"count": 158,
"limit": 10,
"offset": 0
}
}
}
latestBetsByProvider​
Returns a paginated list of the most recent bets for a specific game provider, filtered by bet type with limit and offset for pagination.
Query​
query LatestBetsByProvider(
$providerId: String!
$limit: Int
$offset: Int
$type: QueryUserBetType
) {
latestBetsByProvider(
providerId: $providerId
limit: $limit
offset: $offset
type: $type
) {
data {
user {
id
username
avatarUrl
}
game {
id
name
thumbnailUrl
provider
}
wonAmount
betAmount
currency
time
}
count
limit
offset
}
}
Parameters​
Parameter | Type | Description | Required | Default |
---|---|---|---|---|
providerId | String | ID of the game provider | Yes | - |
limit | Int | Maximum number of results to return | No | 10 |
offset | Int | Number of results to skip | No | 0 |
type | QueryUserBetType | Filter by bet type (SPORT, CASINO, BOTH) | No | CASINO |
Response​
Similar to latestBets
but filtered to a specific provider.
latestBetsByGame​
Returns a paginated list of the most recent bets for a specific casino game, filtered by bet type with limit and offset for pagination.
Query​
query LatestBetsByGame(
$gameId: String!
$limit: Int
$offset: Int
$type: QueryUserBetType
) {
latestBetsByGame(
gameId: $gameId
limit: $limit
offset: $offset
type: $type
) {
data {
user {
id
username
avatarUrl
}
game {
id
name
thumbnailUrl
provider
}
wonAmount
betAmount
currency
time
}
count
limit
offset
}
}
Parameters​
Parameter | Type | Description | Required | Default |
---|---|---|---|---|
gameId | String | ID of the casino game | Yes | - |
limit | Int | Maximum number of results to return | No | 10 |
offset | Int | Number of results to skip | No | 0 |
type | QueryUserBetType | Filter by bet type (SPORT, CASINO, BOTH) | No | CASINO |
Response​
Similar to latestBets
but filtered to a specific game.
latestBetsByCasinoPage​
Returns a paginated list of the most recent bets for a specific casino page, filtered by bet type with limit and offset for pagination.
Query​
query LatestBetsByCasinoPage(
$casinoPageSlug: String!
$limit: Int
$offset: Int
$type: QueryUserBetType
) {
latestBetsByCasinoPage(
casinoPageSlug: $casinoPageSlug
limit: $limit
offset: $offset
type: $type
) {
data {
user {
id
username
avatarUrl
}
game {
id
name
thumbnailUrl
provider
}
wonAmount
betAmount
currency
time
}
count
limit
offset
}
}
Parameters​
Parameter | Type | Description | Required | Default |
---|---|---|---|---|
casinoPageSlug | String | Slug of the casino page | Yes | - |
limit | Int | Maximum number of results to return | No | 10 |
offset | Int | Number of results to skip | No | 0 |
type | QueryUserBetType | Filter by bet type (SPORT, CASINO, BOTH) | No | CASINO |
Response​
Similar to latestBets
but filtered to games on a specific casino page.
Notes​
- For privacy reasons, users with hidden preferences are filtered out from the results.
- The response includes pagination metadata (count, limit, offset) for implementing pagination controls.
- The results are ordered by bet amount in descending order.
- The currency field represents the original currency of the bet, which may differ from the user's preferred currency.