Skip to content
Longport Whale
Day-End Tasks

Start Auto Clearing

The "One-Click Clearing" button at the top of the Day-End Tasks page, which triggers the full-process day-end clearing task for the current accounting day. Involves market-wide day-end settlement; proceed with caution.

POSThttps://b-api.longbridge.xyz/clearing/auto_clearing

Authorization

AuthorizationstringheaderRequired

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

Request body application/json

busin_nointegerrequired

Business Flow No. The business-process number (busin_no) corresponding to the currently selected business process.

stepsarray<string>required

Step List. All clearing steps pending execution under the current process; each item contains step_id (number), ledger_date (string, the accounting date), method (string, the clearing method name), and params (string, a JSON-serialized string of that step's parameters, typically supplementing the original parameters with step_id and ledger_date).

audit_frontend_resourceobject

Frontend Audit Resource. Audit-trail field, not a business parameter, containing $behavior (operation description), $action (fixed to add), busin_no, and ledger_date.

Responses

HTTP 200No confirmable field definitions are available for the response yet.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

Whale Docs