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 }