Skip to content
Company Limit Setting

Reset Company Finance Config

Resets the company-level financing-limit configuration using the allowed request fields and marginType. This operation changes live company financing limits; use it with caution.

Request parameters

  • Required: currency (Currency), cp_finance_total (Max Finance Total), cp_finance_used_warning (Finance Used Warning Threshold), cp_advance_used_warning (Advance Used Warning Threshold), margin_type (Margin Type)
  • Optional: 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.longbridge.xyz/risk/v1/company_finance_cfg/reset_apply

Authorization

AuthorizationstringheaderRequired

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

Request body application/json

currencystringrequired

Displayed disabled in the form; taken from the record currently being edited.

cp_finance_totalstringrequired

Converted to a string via toString before submission by the front-end InputNumber.

cp_finance_used_warningstringrequired

Specifies Finance Used Warning Threshold. This field is required.

cp_advance_used_warningstringrequired

Specifies Advance Used Warning Threshold. This field is required.

margin_typestringrequired

Passed in via the external marginType prop; not a request field; the specific enum values are not confirmed within this component.

Allowed values:

  • NormalMargin - Margin Credit Limit
  • IntradayMargin - Day Trade Credit Limit

NormalMargin · Margin Credit LimitIntradayMargin · Day Trade Credit Limit

audit_frontend_resourceobject

Records the original record content before submission, used for comparison display in the approval ticket.

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