Skip to content
Tradable Quantity and Margin

Get Option Open Order Calculation Factors

On the order page of a margin-mode option (stock_contract.contract_model is 2 in Get Order Configuration), after the limit price changes, queries the account's available funds and the initial margin per contract, so the Broker App can estimate the open quantity and required margin locally: use long_single_option_im_margin for buy and short_single_option_im_margin for sell. Do not call this endpoint for non-margin-mode options or order amendment; for amendment, use Get Option Replace Order Calculation Factors.

When you call this endpoint through WhaleCore requestService(), set requiresTradeToken to true.

GEThttps://api.lbkrs.com/v1/app/risk/opt_open_order/calculation_factor_query_v3

Parameters

opt_counter_idstringqueryRequired

Option contract security ID (counter_id), such as OP/US/AAPL260724C110000

opt_pricestringqueryRequired

Option order price (premium per share) in the trading currency

currencystringqueryRequired

Trading (settlement) currency, such as USD

Responses

HTTP 200The request succeeded. The response body contains the result of the “Get Option Open Order Calculation Factors” operation.
Standard response envelopecodemessagedata
dataobjectdata structure
aaidinteger

Asset account ID

available_financestring

Available funds including margin financing

available_cashstring

Available cash in the currency

max_buy_limitstring

Maximum buying power

long_single_option_im_marginstring

Unfilled initial margin per contract in the buy (long) direction

short_single_option_im_marginstring

Unfilled initial margin per contract in the sell (short) direction

Whale Docs