Skip to content
Option Margin

Delete Stock Option Margin

Delete a stock-option margin-factor record, removing the global option margin factor configuration for an underlying.

Request parameters

  • Required: counter_ids (underlyings whose global option margin configuration should be deleted; at least 1 item; {type}/{market}/{code} format such as ST/US/AAPL; use the counter_id of rows returned by POST /v1/datasets/risk_option_margin_ratio_configs).
  • Optional: audit_frontend_resource (audit context submitted by the caller).
  • Example: {"counter_ids":["ST/US/AAPL"]}.
  • See the field descriptions for the format, value range, and business meaning of each field.

Business notes

Once deleted, this global option margin rule no longer applies to the underlying, which falls back to the system default calculation.

Risk warning

This operation deletes a global stock-option margin configuration and affects margin calculations for all client option positions on the matched underlying. Confirm the target record before calling.

Result

On success, the record is deleted; subsequent state and returned data follow the 200 response definition.

POSThttps://b-api.lbkrs.com/risk/v1/stock_opt_margin_ratio/delete

Authorization

AuthorizationstringheaderRequired

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

Permission

credit_management.option_stock_margin_ratio_query

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

Request body application/json

counter_idsarray<string>required

Underlyings whose global option margin configuration should be deleted; at least 1 item. Format {type}/{market}/{code}, such as ST/US/AAPL; use the counter_id of rows returned by POST /v1/datasets/risk_option_margin_ratio_configs.

audit_frontend_resourceobject

Audit context submitted by the caller to record this operation.

Responses

HTTP 200OK
Standard response envelopecodemessagedata
dataobjectdata structure
ticket_idstring
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