Skip to content
Day-End Tasks

Get Front Ledger Date

Get the current front-office ledger date and day-cutoff time.

Request parameters

  • This endpoint takes no request parameters.

Usage notes

This endpoint returns the front-office ledger date, which may be ahead of the clearing ledger date after the day cutoff. Clearing day-end steps (such as sync_data_from_front_office, before_clearing_ready, market_clearing) and clearing endpoints that only allow changes on the current ledger date must use the clearing ledger date from get_near_three_ledger_date.

Returns

On success, returns the current ledger date and day-cutoff time. See the response definition below for field meanings.

GEThttps://b-api.lbkrs.com/risk/portfolio/get_current_ledgedate

Authorization

AuthorizationstringheaderRequired

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

Responses

HTTP 200The request was processed successfully. data contains the current ledger date and day-cutoff time.
Standard response envelopecodemessagedata
dataobjectdata structure
ledger_dateinteger

Current ledger date in YYYYMMDD format, for example 20230412.

day_cut_off_timestring

Day-cutoff time, for example 17:00:00.

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