This function returns the total amount of bets or wins placed by a specific user during the selected time interval. It’s useful for calculating activity, loyalty tiers, or generating reports.
//for bets
{ "command": "9", "login": "demoaccount", "sdate": "2000-01-23 10:01:00", "fdate": "2012-12-25 04:04:02", "apiusername": "your_api_username", "apipass": "your_api_password" }
//for wins
{ "command": "10", "login": "demoaccount", "sdate": "2000-01-23 10:01:00", "fdate": "2012-12-25 04:04:02", "apiusername": "your_api_username", "apipass": "your_api_password" }Parameter | Mandatory | Description | Type |
| ✅ | Must be | string |
| ✅ | Username of the player (min. 6 characters). Optional if | string |
| ❌ | RGS-CWS user ID. Optional alternative to | string |
| ✅ | Start date for filtering bets. Use | string |
| ✅ | End date for filtering bets. Use | string |
| ✅ | API username | string |
| ✅ | API password | string |
You must provide either
loginoruserid— not both.
✅ Success:
{ "message": "OK", "amount": 41241924.11 }❌ Failure (e.g., invalid user):
{ "message": "ERROR", "amount": 0 }Parameter | Required | Description | Type |
| ✅ |
| string |
| ✅ | Total value of bets placed during the period | number |