My Bets Queries
These queries provide paginated information about bets placed by the current authenticated user.
myBets​
Returns a paginated list of the current user's bets across all games, filtered by bet type with limit and offset for pagination.
Query​
query MyBets($limit: Int, $offset: Int, $type: QueryUserBetType) {
myBets(limit: $limit, offset: $offset, type: $type) {
data {
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": {
"myBets": {
"data": [
{
"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"
},
{
"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": 28,
"limit": 10,
"offset": 0
}
}
}
myBetsByProvider​
Returns a paginated list of the current user's bets for a specific game provider, filtered by bet type with limit and offset for pagination.
Query​
query MyBetsByProvider(
$providerId: String!
$limit: Int
$offset: Int
$type: QueryUserBetType
) {
myBetsByProvider(
providerId: $providerId
limit: $limit
offset: $offset
type: $type
) {
data {
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 myBets
but filtered to a specific provider.
myBetsByGame​
Returns a paginated list of the current user's bets for a specific casino game, filtered by bet type with limit and offset for pagination.
Query​
query MyBetsByGame(
$gameId: String!
$limit: Int
$offset: Int
$type: QueryUserBetType
) {
myBetsByGame(gameId: $gameId, limit: $limit, offset: $offset, type: $type) {
data {
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 myBets
but filtered to a specific game.
myBetsByCasinoPage​
Returns a paginated list of the current user's bets for a specific casino page, filtered by bet type with limit and offset for pagination.
Query​
query MyBetsByCasinoPage(
$casinoPageSlug: String!
$limit: Int
$offset: Int
$type: QueryUserBetType
) {
myBetsByCasinoPage(
casinoPageSlug: $casinoPageSlug
limit: $limit
offset: $offset
type: $type
) {
data {
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 myBets
but filtered to games on a specific casino page.
Notes​
- These queries require authentication; they return the current user's betting history.
- Unlike other bet queries, the response does not include user information because all bets belong to the current user.
- 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.