# DCA Trade History

`GET` `/v1/dailycoins/query-records`

:::warning Longbridge HK / SG accounts only
This method is available to Longbridge HK / SG accounts only. It works with any supported symbol, including US stocks.
:::

Get the execution history for a specific DCA plan including trade dates, amounts, and prices.

## Parameters

### Query Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `plan_id` | string | Yes | DCA plan ID. |
| `page` | integer | Yes | Page number, starting from `1`. |
| `size` | integer | Yes | Page size (records per page). |

## Request Example

```bash
curl --request GET \
  --url 'https://openapi.longbridge.com/v1/dailycoins/query-records?plan_id=<plan_id>&page=<page>&size=<size>' \
  --header 'Authorization: Bearer <access_token>'
```

## Response

### Response Properties

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `records` | object[] | Yes | List of execution records |
| `└ symbol` | string | Yes | Security symbol |
| `└ order_id` | string | No | Associated order ID |
| `└ status` | string | No | Execution status |
| `└ action` | string | No | Action type (e.g. `buy`) |
| `└ order_type` | string | No | Order type (e.g. `market`) |
| `└ executed_qty` | string | No | Executed quantity |
| `└ executed_price` | string | No | Executed price |
| `└ executed_amount` | string | No | Executed cost amount |
| `└ rejected_reason` | string | No | Rejection reason if failed |
| `└ created_at` | string | No | Creation Unix timestamp |
| `has_more` | boolean | No | Whether more records exist |

### Response JSON Example

```json
{
  "code": 0,
  "message": "success",
  "data": {
    "has_more": false,
    "records": [
      {
        "symbol": "AAPL.US",
        "order_id": "123456",
        "status": "Filled",
        "action": "Buy",
        "order_type": "Market",
        "executed_qty": "1",
        "executed_price": "180.50",
        "executed_amount": "180.50",
        "created_at": "1763769600",
        "rejected_reason": ""
      }
    ]
  }
}
```
