Account

Pause / Resume / Stop DCA Plan

POSThttps://openapi.longbridge.com/v1/dailycoins/toggle

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.

Change the status of an existing DCA plan: pause, resume, or permanently stop it.

>_ CLI
longbridge dca pause 12345

Request

Request body

NameTypeRequiredDescription
plan_idstringRequiredDCA plan ID.
statusstringRequiredTarget status: `Suspended` (pause), `Active` (resume), `Finished` (stop).

Response

Response JSON example

{
  "code": 0,
  "message": "success"
}

Error code

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