Account

DCA Trade History

GEThttps://openapi.longbridge.com/v1/dailycoins/query-records

Authorization

Signed mode: every request is signed with your App Key/Secret. Header set:

NameTypeRequiredDescription
Authorizationstring · headerRequiredThe account Access Token from the OpenAPI dashboard — passed as the raw token (no Bearer prefix) and included in the signature calculation.
X-Api-Keystring · headerRequiredYour App Key.
X-Timestampstring · headerRequiredRequest timestamp in seconds (Unix epoch).
X-Api-Signaturestring · headerRequiredHMAC-SHA256 signature. Format: HMAC-SHA256 SignedHeaders=authorization;x-api-key;x-timestamp, Signature=.

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.

>_ CLI
longbridge dca history 1225781523156889600

Request

Query parameters

NameTypeRequiredDescription
plan_idstringRequiredDCA plan ID.
pageintegerRequiredPage number, starting from `1`.
sizeintegerRequiredPage size (records per page).

Response

Response properties

NameTypeRequiredDescription
recordsobject[]RequiredList of execution records
└ symbolstringRequiredSecurity symbol
└ order_idstringOptionalAssociated order ID
└ statusstringOptionalExecution status
└ actionstringOptionalAction type (e.g. `buy`)
└ order_typestringOptionalOrder type (e.g. `market`)
└ executed_qtystringOptionalExecuted quantity
└ executed_pricestringOptionalExecuted price
└ executed_amountstringOptionalExecuted cost amount
└ rejected_reasonstringOptionalRejection reason if failed
└ created_atstringOptionalCreation Unix timestamp
has_morebooleanOptionalWhether more records exist

Response JSON example

{
  "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": ""
      }
    ]
  }
}

Error code

See the Error Codes page for the full list of error codes.