Retrieve Total Bets/Wins of User
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.
📜 Sample JSON Request (from your server to the RGS-CWS server)
//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" }📥 Input Parameters (from your server to the RGS-CWS server)
You must provide either
loginoruserid— not both.
📃 Sample JSON Response (returned by RGS-CWS)
✅ Success:
{ "message": "OK", "amount": 41241924.11 }❌ Failure (e.g., invalid user):
{ "message": "ERROR", "amount": 0 }