Skip to content
Longport Whale
Client Trading Limit

Set Trade Credit Switch

The top "Trading-limit master switch" toggle on the Client Trading Limit page. A GET to /risk/v1/trade_credit_switch reads the current switch state on page load.

POSThttps://b-api.longbridge.xyz/risk/v1/trade_credit_switch_v2

Authorization

AuthorizationstringheaderRequired

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

Request body application/json

switchstringrequired

Trade Credit Switch. Enum: On=enabled, Off=disabled. The front-end antd Switch component's boolean value is converted to this string before submission.

front_payloadobject

Front Payload. A non-core business field; type is fixed as data_diff, and the data array records the before/after display values of the toggle for the risk-control approval ticket.

audit_frontend_resourceobject

Audit Frontend Resource. A non-core business field recording the switch's original value (On/Off) before toggling.

Responses

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

No nested fields

Whale Docs