Skip to content
Client Option Margin Factor

Delete Client Stock Option Margin

Delete a client's stock-option margin-factor record, removing the client's option margin configuration for a given underlying.

Request parameters

  • Required: user_stock_opt_margin_ratios (the client-level stock-option margin configurations to delete; at least 1 item). Each item requires counter_id (the underlying, in {type}/{market}/{code} format, such as ST/US/AAPL) and aaid (the internal securities-account ID; use the aaid_val of a row returned by POST /v1/datasets/risk_member_option_margin_ratios, not account_no).
  • Optional: audit_frontend_resource (audit context submitted by the caller).
  • Example: {"user_stock_opt_margin_ratios":[{"counter_id":"ST/US/AAPL","aaid":"10000000"}]}.
  • See the field descriptions for the format, value range, and business meaning of each field.

Business notes

Once deleted, the record no longer participates in margin calculations for the client's option positions, and the client falls back to the default or higher-level margin rules.

Risk warning

This operation deletes a client-level stock-option margin configuration and directly affects the margin requirements on the client's option positions. 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/account_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

user_stock_opt_margin_ratiosarray<object>required

Client-level stock-option margin configurations to delete; at least 1 item. Each item comes from a row returned by POST /v1/datasets/risk_member_option_margin_ratios.

Child attributes
counter_idstringrequired

Underlying in {type}/{market}/{code} format, such as ST/US/AAPL; use the row's counter_id.

aaidstringrequired

Internal securities-account ID; use the row's aaid_val, not the securities account number account_no.

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