https://b-api.lbkrs.com/v1/risk_monitoring/simulate_margin_call_cal_v3Authorization
Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.
Request body application/json
Simulate Cal Type. Determines which of task_id, stock_group_id, market, counter_id and index_price_limit_info takes effect.
Allowed values: 0 By batch number, 1 By stock group, 2 By market, 3 By single stock, 4 By index level
0- TaskId
1- StockGroup
2- Market
3- Stock
4- IndexLimit
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. Format is {type}/{market}/{code}, for example, stock ST/HK/700 or ST/US/AAPL, and option OP/US/AAPL270319C320000.
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.
Allowed values: 0 Full calculation, 1 Margin call calculation, 2 Non-frozen fund surplus calculation
0- Full calculation
1- Margin call calculation
2- Non-frozen fund surplus calculation
Is Filter. Boolean flag for is filter. this field is required.
Boolean values:
true- The condition appliesfalse- The condition does not apply
Remark. This field is required.
Responses
HTTP 200The request was processed successfully. data contains task_id.codemessagedatadataobjectdata structureTask ID. The batch number generated by this stress-test calculation.
HTTP 400Bad request. Check the business error code in code and the error details in message.codemessagedatadataobjectdata structureNo nested fields
HTTP 401The user is not authenticated, or the login session has expired.codemessagedatadataobjectdata structureNo nested fields
HTTP 403The current account is not authorized to use this feature. Grant the required permission to the account in User Permission.codemessagedatadataobjectdata structureNo nested fields
HTTP 408The request timed out. Check the business error code in code and the error details in message.codemessagedatadataobjectdata structureNo nested fields