Skip to content
Longport Whale
Auto Forceselling Switch

Update Auto Cover Rule

The inline "Rule settings" drawer in the Auto Forceselling Switch list; the forms of its two tabs are merged and submitted to update auto margin-call / force-liquidation rules. It affects real auto-force-liquidation rules and is high-risk — call with caution.

POSThttps://b-api.longbridge.xyz/v1/risk_monitoring/auto_cover_rule_v2

Authorization

AuthorizationstringheaderRequired

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

Request body application/json

no_new_stockboolean

No New Stock. Derived from whether the "holding types not auto-recovered" include new_stock.

no_option_holdingboolean

No Option Holding. Derived from whether the "holding types not auto-recovered" include option_holding.

rule1object

Conditional Close-Out Rule 1. { enabled: boolean (whether enabled), net_asset_threshold: string (net-asset threshold, between 0 and 1) }; this rule has no auto_close_time / margin_call_type form fields.

rule2object

Conditional Close-Out Rule 2. { enabled: boolean, net_asset_threshold: string }; this rule has no auto_close_time / margin_call_type form fields.

rule3object

Conditional Close-Out Rule 3. { enabled: whether enabled, auto_close_time: force-liquidation time HH:mm, margin_call_type: margin-call types (multi-select, values from the alert_type_info_v2 dynamic enumeration) }.

rule4object

Conditional Close-Out Rule 4. Same structure as rule3.

rule5object

Conditional Close-Out Rule 5. Same structure as rule3.

rule6object

Conditional Close-Out Rule 6. Same structure as rule3.

rule7object

Expiring Option Close-Out Rule. { enabled: boolean, auto_close_time: string HH:mm }; the front end requires auto_close_time only when enabled.

Responses

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

No nested fields

Whale Docs