Skip to main content

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​

ParameterTypeDescriptionRequiredDefault
limitIntMaximum number of results to returnNo10
offsetIntNumber of results to skipNo0
typeQueryUserBetTypeFilter by bet type (SPORT, CASINO, BOTH)NoCASINO

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​

ParameterTypeDescriptionRequiredDefault
providerIdStringID of the game providerYes-
limitIntMaximum number of results to returnNo10
offsetIntNumber of results to skipNo0
typeQueryUserBetTypeFilter by bet type (SPORT, CASINO, BOTH)NoCASINO

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​

ParameterTypeDescriptionRequiredDefault
gameIdStringID of the casino gameYes-
limitIntMaximum number of results to returnNo10
offsetIntNumber of results to skipNo0
typeQueryUserBetTypeFilter by bet type (SPORT, CASINO, BOTH)NoCASINO

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​

ParameterTypeDescriptionRequiredDefault
casinoPageSlugStringSlug of the casino pageYes-
limitIntMaximum number of results to returnNo10
offsetIntNumber of results to skipNo0
typeQueryUserBetTypeFilter by bet type (SPORT, CASINO, BOTH)NoCASINO

Response​

Similar to myBets but filtered to games on a specific casino page.

Notes​

  1. These queries require authentication; they return the current user's betting history.
  2. Unlike other bet queries, the response does not include user information because all bets belong to the current user.
  3. The response includes pagination metadata (count, limit, offset) for implementing pagination controls.
  4. The results are ordered by bet amount in descending order.
  5. The currency field represents the original currency of the bet, which may differ from the user's preferred currency.