Skip to content
Day-End Tasks

Get Front Ledger Date

Returns the current front-office ledger date and its day-cutoff time. Any authenticated caller may access it; no additional permission is required.

Request parameters

This endpoint takes no request parameters.

Result

On success, returns the current ledger date and day-cutoff time. See the 200 response schema for field definitions.

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

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.

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