> ## 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.

# List historical bet records

> [!NOTE]
>
> * Historical bet records are bets older than 1 hour, kept for at most 3 months.
> * If one bet ID has more than one record (for example, after a correction), the most recently created record is returned.
> * This service is rate limited to 2 calls per second (2/s).
> * Each query can cover at most 15 minutes and cannot span days.
> * This feature is not available to seamless wallet operators.
> * For paging, see [Pagination](https://doc.va777.net/en/guides/pagination.md).

## Request parameters

**channelID** `number` *required*

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

**startTime** `string` *required*

Search start time (see [Time format](https://doc.va777.net/en/guides/request-format.md#time-format))

**endTime** `string` *required*

Search end time (see [Time format](https://doc.va777.net/en/guides/request-format.md#time-format))

**nextToken** `string`

Query token (empty on the first query, then the nextToken from the previous result)

**maxResults** `number` *required*

Maximum number of results (min 2000, max 5000)

**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**

**betlogList** `object[]`

Bet records

**Properties**

**betID** `string`

Bet ID (unique per bet record)

**channelID** `number`

Channel ID

**account** `string`

Member account

**currency** `string`

Currency (contact our business team)

**gameID** `number`

Game ID

**gameType** `string`

Game type \[slot, fishing, tableGame]

**bet** `number`

Bet amount

**payout** `number`

Payout amount

**winLose** `number`

Win/loss amount

**freeGame** `number`

Includes free games (1: no, 2: yes)

**status** `number`

Bet status (0: not paid out, 1: paid out)

**betMode** `string`

Bet mode (main: base game, special: feature game, item: item card)

**betTime** `string`

Bet time (see [Time format](https://doc.va777.net/en/guides/request-format.md#time-format))

**nextToken** `number`

Token for the next query (empty string on the last page)

**maxResults** `number`

Maximum number of results returned

**total** `number`

Total number of records in this query

**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": {
    "betlogList": [
      {
        "betID": "428263_1-1_22882_24",
        "channelID": 1,
        "account": "player001",
        "currency": "CNY",
        "gameID": 22,
        "gameType": "slot",
        "bet": 4.5,
        "payout": 9,
        "winLose": 4.5,
        "freeGame": 1,
        "status": 1,
        "betMode": "main",
        "betTime": "2022-07-04T22:54:29.649+08:00"
      }
    ],
    "nextToken": "gdfv5451gg5574fs",
    "maxResults": 2000,
    "total": 2000
  },
  "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.