> ## Documentation Index
> Fetch the complete documentation index at: https://doc.va777.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Get currency report

> [!NOTE]
>
> * Bet records are kept for at most 3 months.
> * Results are grouped by currency; records with the same currency are summed into one row.
> * This service is rate limited to 80 calls per day (80/d).
> * Data is aggregated by hour and uses an hour-precision RFC3339 format (for example 2022-01-01T00+08:00). Times must be precise to the hour and include the time zone.
> * Sums bets whose bet time is greater than or equal to the start time and less than the end time.
> * The maximum query range is 31 days.

## Request parameters

**channelID** `number` *required*

Channel ID (use 1 if you have no channels; 0 queries all)

**startTime** `string` *required*

Search start time (hour-precision format)

**endTime** `string` *required*

Search end time (hour-precision format)

**sign** `string` *required*

Signature. See [Signature](https://doc.va777.net/en/guides/signature.md) for how to generate it

## Response

Success (the HTTP status code is always 200; check `status.code` for the result)

**data** `object`

**Properties**

**currencyList** `object[]`

Report data

**Properties**

**currency** `string`

Currency (contact our business team)

**totalBet** `number`

Total bet

**totalPayout** `number`

Total payout

**totalWinLose** `number`

Total win/loss

**count** `number`

Record count

**status** `object`

Processing status included in every response

**Properties**

**code** `string`

Response code, see [Response codes](https://doc.va777.net/en/reference/response-codes.md)

**message** `string`

Response message

**datetime** `string`

Time the request was received, in RFC3339

**traceCode** `string`

Unique trace code for matching responses on both sides

```json 200 theme={null}
{
  "data": {
    "currencyList": [
      {
        "currency": "CNY",
        "totalBet": 99999.9,
        "totalPayout": 77777.7,
        "totalWinLose": -22222.2,
        "count": 22222
      }
    ]
  },
  "status": {
    "code": "0",
    "message": "success",
    "datetime": "2022-07-04T23:13:54.920+08:00",
    "traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.