Skip to content
Tradable Quantity and Margin

Get Stock Initial Margin Factors

Retrieves, on a stock (non-option) order page that already holds a trade token, the initial margin factors of the current account for opening long and short positions in the stock. Use them to estimate locally the tradable quantity and the required margin for a margin buy or a short sale: use long_im_factor to open by buying and short_im_factor to open by selling. Option orders do not use this endpoint. When you call this endpoint through WhaleCore requestService(), set requiresTradeToken to true.

GEThttps://api.lbkrs.com/v1/app/stock_margin_ratios

Parameters

counter_idstringqueryRequired

Security ID (counter_id), for example ST/US/AAPL or ST/HK/700

Responses

HTTP 200The request succeeded. The response body contains the result of the “Get Stock Initial Margin Factors” operation.
Standard response envelopecodemessagedata
dataobjectdata structure
long_im_factorstring

Initial margin factor for opening a long position, for example "0.5"

short_im_factorstring

Initial margin factor for opening a short position

Whale Docs