Skip to content
Client Trading Limit

Modify Trade Credit

Creates or updates a client's trading-limit configuration. This changes live trading limits.

Request parameters

  • Required: aaid (Account AAID), trade_credit_type (Trade Credit Type), trade_credit_map (Trade Credit Map), expired_at (Expired At), action (Action)
  • Optional: remark (Remark), audit_frontend_resource (Audit Context)
  • See each field for its format, allowed values, default behavior, and business meaning.

Risk notice

This operation may affect live business data or asset state. Verify the target records, amounts, quantities, and operation type before calling it.

Result

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

POSThttps://b-api.lbkrs.com/risk/v1/trade_credit/modify

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.

Request body application/json

aaidstringrequired

Account AAID. The customer fund account selected via the request field member_query_aaid component; disabled and unchangeable when editing.

trade_credit_typestringrequired

Trade Credit Type. A radio group whose value comes from options.trade_credit_type_ref; commonly 0 = single-currency trading limit, 1 = multi-currency trading limit.

0 · Single-Currency Trading Limit1 · Multi-Currency Trading Limit

trade_credit_mapobjectrequired

Trade Credit Map. Currency-to-limit key-value pairs, e.g. {"HKD":"100000"}; when trade_credit_type=0 it contains only a single currency, and when =1 it may contain multiple currencies.

expired_atnumberrequired

Expired At. A Unix timestamp (seconds); after a date is chosen in the date picker, the hour/minute/second are taken from the current time at submission.

remarkstring

Remark. A textarea, up to 100 characters.

actionnumberrequired

Action. 0=Create (add), 1=Edit (edit); computed automatically by the client based on whether an item record is passed in.

0 · add1 · edit

audit_frontend_resourceobject

Audit Context. A non-core business field carrying before and value (after) data plus $action/$behavior, used for display in risk-control approval tickets.

Responses

HTTP 200The request was processed successfully. The response data does not contain additional business fields.
Standard response envelopecodemessagedata
dataobjectdata structure
ticket_idstring

Ticket id

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