Skip to content
Market

Create Day-End Clearing Business Flow

Creates or edits a day-end clearing business flow, configuring a named clearing flow for a set of markets.

Request parameters

  • Required: flow_name (Flow Name), markets (Markets)
  • Optional: id (Flow ID); provide it when editing an existing flow, omit it when creating a new one.

Result

On success, the corresponding day-end clearing business flow is created or updated. See the 200 response schema for the returned data structure.

POSThttps://b-api.longbridge.xyz/v2/clearing/create_busin_flow

Authorization

AuthorizationstringheaderRequired

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

Request body application/json

flow_namestringrequired

Name of the day-end clearing business flow. This field is required.

marketsarray<string>required

List of market codes covered by this business flow. This field is required.

idinteger

Identifier of the day-end clearing business flow. Provide it when editing an existing flow to indicate which flow to update; omit it when creating a new flow.

Responses

HTTP 200The request was processed successfully. The frontend call site does not read fixed business fields from this endpoint's response, so only the general response structure (code, message, data) is declared here; the concrete fields inside data are unverified.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

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