To ensure that the MG+ platform can efficiently adjust and customize bet settings, we require programmatic access to each game’s bet configuration.
API Endpoint: Input
The API endpoint should accept the following parameters:
-
Game Identifier
-
Proposed bet amount (e.g., minimum, maximum)
-
Exposure limit
-
At least one of the bet amounts or exposure limit must be provided
API Endpoint: Output
The API response should include:
-
Valid bet amounts (min/max) for the game
-
Available bet configurations for the specified game
-
Exposure calculations and related data
Calculation Method (If no API available)
If a direct API is not available, please provide the underlying mathematical formulas and business rules for:
-
Calculating minimum and maximum bet amounts per game
-
Determining maximum exposure limits
-
Enforcing any game-specific bet restrictions (such as bet increments or caps)
Request
Request Parameters
|
Field |
Required/Optional |
Data Type |
Description |
|---|---|---|---|
|
provider |
Required |
string |
Identifier for the game provider. |
|
game |
Required |
string |
Identifier for the game being launched. |
|
exposure |
Optional |
decimal |
Expected exposure. |
|
minBet |
Optional |
decimal |
Expected minimum value for bet. |
|
defaultBet |
Optional |
decimal |
Expected default bet value. |
|
maxBet |
Optional |
decimal |
Expected maximum value for bet. |
Request Example
{
"provider": "gameprovider",
"game": "fantasyquest",
"exposure": 1500000,
"minBet": 100,
"defaultBet": 200
}
Response
Response Parameters
|
Field |
Required/Optional |
Data Type |
Description |
|---|---|---|---|
|
expectedExposure |
Optional |
decimal |
If provided in the request, the expected exposure. |
|
actualExposure |
Optional |
decimal |
The calculated exposure based on the bet settings. |
|
minBetInfo |
Optional |
object |
Details about the min bet. |
|
defaultBetInfo |
Optional |
object |
Details about the default bet. |
|
maxBetInfo |
Optional |
object |
Details about the max bet. |
Response Example
{
"expectedExposure": 1500000.00,
"actualExposure": 1000000.00,
"minBetInfo": {
"lower": 8.00,
"nearest": 9.50,
"higher": 11.00
},
"defaultBetInfo": {
"lower": 8.00,
"nearest": 9.50,
"higher": 11.00
},
"maxBetInfo": {
"lower": 8.00,
"nearest": 9.50,
"higher": 11.00
}
}
betInfo object
|
Field |
Required/Optional |
Data Type |
Description |
|---|---|---|---|
|
lower |
Optional |
decimal |
If available, the next valid bet value lower than nearest. |
|
nearest |
Optional |
decimal |
The closest value to the provided value. |
|
higher |
Optional |
decimal |
If available, the next valid bet value higher than nearest. |