Skip to content
Day-End Tasks

Get Adjacent Three Ledger Dates

Given a ledger date, returns the previous, current, and next ledger dates. Any authenticated caller may access it; no additional permission is required.

Request parameters

  • Optional: ledger_date (Ledger Date). When omitted, the current system date is used.

Result

On success, returns the three adjacent ledger dates. See the 200 response schema for field definitions.

GEThttps://b-api.lbkrs.com/clearing/get_near_three_ledger_date

Production: https://b-api.lbkrs.com · Test: https://b-api.longbridge.xyz

Authorization

AuthorizationstringheaderRequired

Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.

Permission

No dedicated permission key. Any authenticated Broker ACCESS_TOKEN with access to this scope can call it.

Parameters

ledger_datestring

Ledger date in YYYYMMDD format. When omitted, the current system date is used.

Responses

HTTP 200The request was processed successfully. data contains the three adjacent ledger dates.
Standard response envelopecodemessagedata
dataobjectdata structure
last_ledger_datenumber

Previous ledger date in YYYYMMDD format.

ledger_datenumber

Current ledger date in YYYYMMDD format.

next_ledger_datenumber

Next ledger date in YYYYMMDD format.

HTTP 400Bad request. Check the business error code in code and the error details in message.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 401The user is not authenticated, or the login session has expired.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 403The current account is not authorized to use this feature. Grant the required permission to the account in User Permission.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 408The request timed out. Check the business error code in code and the error details in message.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

Whale Docs