Skip to content
Client Contract

Edit Exchange Contract V2

Include id in the path. Uses nearly the same fields as Create Client Contract, plus audit_frontend_resource. This changes live contracts and funds.

Request parameters

  • Required: trade_dones (Trade Done List), audit_frontend_resource (Audit Context), id (id)
  • See each field for its format, allowed values, default behavior, and business meaning.

Result

On success, the endpoint completes the described business operation. See the 200 response schema for returned data.

PUThttps://b-api.lbkrs.com/v2/billing/exchange_contract/{id}

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

Authorization

AuthorizationstringheaderRequired

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

Permission

lb_hk_clearing.contract_manage_edit

The Broker ACCESS_TOKEN must be granted the permission below, or the call will be rejected.

Parameters

idstringRequired

Included in the path.

Request body application/json

trade_donesarray<string>required

Submit Trade Done List as a JSON array. This field is required.

audit_frontend_resourceobjectrequired

Contains $behavior/$action/no.

Responses

HTTP 200The request was processed successfully. The response data does not contain additional business fields.
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