https://api.lbkrs.com/v1/orders/estimate_buy_limitParameters
counter_idstringqueryRequiredSecurity ID (counter_id), such as ST/US/AAPL or ST/HK/700
pricestringqueryRequiredOrder price in the trading currency. For a market order, pass the latest price
submit_pricestringqueryRequiredOrder price. Pass the same value as price
marketstringqueryRequiredMarket code of the security, such as US or HK
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
fractional_sharesbooleanqueryWhether to estimate for US fractional shares. Pass it when the account supports US fractional shares
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 Maximum Stock Buy or Sell Quantity” operation.codemessagedatadataobjectdata structureMaximum quantity with cash (generic value)
Maximum quantity including margin financing (generic value)
Maximum cash quantity for limit-type orders
Maximum quantity including margin for limit-type orders
Maximum cash quantity for market-type orders
Maximum quantity including margin for market-type orders
Maximum cash quantity for odd-lot orders
Maximum quantity including margin for odd-lot orders