https://b-api.longbridge.xyz/v1/risk_monitoring/simulate_margin_call_cal_v3Authorization
Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.
Request body application/json
Simulate Cal Type. enum SimulateCalType { 0=calculate by batch number (TaskId), 1=calculate by stock group (StockGroup), 2=calculate by market (Market), 3=calculate by stock (Stock), 4=calculate by index level (IndexLimit) }; determines which of task_id/stock_group_id/market/counter_id/index_price_limit_info below takes effect.
Task ID. Used only when simulate_cal_type=0.
Market. Used only when simulate_cal_type=2, e.g. HK/US.
Stock Group ID. Used only when simulate_cal_type=1.
Counter ID. Used only when simulate_cal_type=3.
Price Limit. The assumed price-change percentage, e.g. -10 means a 10% drop.
Index Price Limit Info. Used only when simulate_cal_type=4; the sub-fields tier1_price_limit/tier2_price_limit/other_price_limit correspond to the assumed drops for index level 1 / level 2 / other levels respectively.
Calculation Type. A string-array enum: 0=full calculation, 1=margin call calculation, 2=non-frozen funds surplus calculation; multiple values allowed.
Is Filter. Whether to apply the exemption rule.
Remark. The remark/title of this test.
Responses
HTTP 200Returns business fields.codemessagedatadataobjectdata structureTask ID. The batch number generated by this stress-test calculation.