Account

DCA Plans

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

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 all recurring investment (DCA) plans for the current user.

>_ CLI
longbridge dca
longbridge dca --status Active

Request

Query parameters

NameTypeRequiredDescription
statusstringOptionalFilter by plan status: `Active`, `Suspended`, `Finished`.
symbolstringOptionalFilter by security symbol, e.g. `AAPL.US`.

Response

Response properties

NameTypeRequiredDescription
plansobject[]RequiredList of DCA plans
└ plan_idstringRequiredDCA plan ID
└ symbolstringRequiredSecurity symbol
└ stock_namestringOptionalSecurity name
└ marketstringOptionalMarket
└ statusstringOptionalPlan status: `Active`, `Suspended`, `Finished`
└ per_invest_amountstringOptionalAmount per investment
└ invest_frequencystringOptionalFrequency: `Daily`, `Weekly`, `Fortnightly`, `Monthly`
└ invest_day_of_weekstringOptionalDay of week for weekly plans
└ invest_day_of_monthstringOptionalDay of month for monthly plans
└ next_trd_datestringOptionalNext trade date
└ cum_amountstringOptionalCumulative invested amount
└ cum_profitstringOptionalCumulative profit/loss
└ average_coststringOptionalAverage cost per share
└ allow_margin_financebooleanOptionalWhether margin financing is allowed
└ alter_hoursstringOptionalReminder hours before trade
└ display_accountstringOptionalAccount display name
└ account_channelstringOptionalAccount channel
└ aaidstringOptionalAccount asset ID
└ member_idstringOptionalMember ID
└ issue_numberstringOptionalExecution count
└ created_atstringOptionalCreation timestamp
└ updated_atstringOptionalLast update timestamp

Response JSON example

{
  "code": 0,
  "message": "success",
  "data": {
    "plans": [
      {
        "plan_id": "1239402174908207104",
        "symbol": "AAPL.US",
        "stock_name": "Apple Inc.",
        "market": "US",
        "status": "Active",
        "per_invest_amount": "100",
        "invest_frequency": "Monthly",
        "invest_day_of_month": "15",
        "invest_day_of_week": "",
        "next_trd_date": "1778853600",
        "cum_amount": "0",
        "cum_profit": "0",
        "average_cost": "0",
        "allow_margin_finance": false,
        "alter_hours": "6",
        "display_account": "LBPT10065023",
        "member_id": "3162",
        "aaid": "20975338",
        "account_channel": "lb_papertrading",
        "issue_number": 0,
        "created_at": "1778725628",
        "updated_at": "1778725628"
      }
    ]
  }
}

Error code

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