https://api.lbkrs.com/v1/orders/simulate_asset_calculationParameters
counter_idstringqueryRequiredSecurity ID (counter_id) of a stock or single-leg option
submit_pricestringqueryRequiredOrder price in the trading currency. For market-type and trailing stop orders, pass the latest price
settlement_currencystringqueryRequiredSettlement currency, such as USD or HKD. Use an item of channel_infos.settlement_currency returned by Get Order Configuration
actionintegerqueryRequiredOrder side:
1- Buy2- Sell
12
marketstringqueryRequiredMarket code of the security, such as US or HK
quantitystringqueryRequiredOrder quantity. It must be greater than 0
order_idstringqueryOriginal order ID when amending an order. Omit it for a new order
Responses
HTTP 200The request succeeded. The response body contains the result of the “Simulate Margin Change After Order” operation.codemessagedatadataobjectdata structureSimulated margin information
Child attributes
Initial margin before the trade
Initial margin after the trade
Maintenance margin before the trade
Maintenance margin after the trade
Whether this close would trigger a margin call