https://api.lbkrs.com/v1/orders/stock_contract/available_open_quantityParameters
counter_idstringqueryRequiredOption contract security ID (counter_id), such as OP/US/AAPL260724C110000
pricestringqueryRequiredOrder price (premium per share) in the trading currency
settlement_currencystringqueryRequiredSettlement currency, such as USD or HKD. Use an item of channel_infos.settlement_currency returned by Get Order Configuration
currencystringqueryRequiredTrading currency. Pass the same value as settlement_currency
order_typestringqueryRequiredOrder type code, such as LO, MO, or ELO. Use a key of channel_infos.order_type_config returned by Get Order Configuration
actionintegerqueryRequiredOrder side:
1- Buy2- Sell
12
order_idstringqueryOriginal order ID when amending an order. Omit it for a new order or when the order being amended is an untriggered conditional order
order_id_strstringqueryString form of the original order ID. When amending, pass the same value as order_id
Responses
HTTP 200The request succeeded. The response body contains the result of the “Estimate Option Open Quantity” operation.codemessagedatadataobjectdata structureMaximum contracts with cash
Maximum contracts including margin financing
Whether this trade opens or closes a position:
OPEN- OpenCLOSE- Close
OPENCLOSE
Initial margin before the trade
Initial margin after the trade
Maintenance margin before the trade
Maintenance margin after the trade
Available cash before the trade
Available cash after the trade