Skip to content
Recurring Investment

Calculate Next Recurring Investment Debit Time

Calculates the next debit time from the selected fund, investment cycle, and debit day. It only calculates and does not create or modify a plan. Call it when the Client changes the cycle or debit day on the plan edit page to show the first (or, after modification, the next) debit date. Pass plan_id when modifying an existing plan.

When you call this endpoint through WhaleCore requestService(), set requiresTradeToken to true.

GEThttps://api.lbkrs.com/aip/next_time

Parameters

cyclestringqueryRequired

Investment cycle:

  • 1 - Daily
  • 2 - Weekly
  • 3 - Every two weeks
  • 4 - Monthly

1234

cycle_daystringqueryRequired

Debit day: 1-5 (Monday to Friday) for weekly and biweekly cycles; 1-31 for monthly, where 32 means the last day of the month. Not used for the daily cycle

counter_idstringquery

Fund ID (counter_id), a fund code in the form UT/HK/...

plan_idstringquery

Pass the plan ID when modifying an existing plan. Pass an empty string when creating

Responses

HTTP 200The request succeeded. The response body contains the result of the “Calculate next recurring investment debit time” operation.
Standard response envelopecodemessagedata
dataobjectdata structure
next_invest_timeinteger

Next debit time, as a Unix timestamp in seconds

Whale Docs