Skip to main content

Get Margin Quota

margin_quota

Request Parameter

ParameterTypeMeaning
accountAccountAccount
stock_nostringSymbol

Result Response

ParameterTypeMeaning
is_successboolInterface result
dataMarginShortQuotaMarginShortQuota is returned
messagestringis_success = False error description is returned

MarginShortQuota Parameter

Return type : Object

ParameterTypeMeaning
stock_nostringSymbol
datestringQuery date (today)
shortsell_orig_quotaintThe original shortsell quota
shortsell_tradable_quotaintAvailable shortsell quota
margin_orig_quotaintThe original margin quota
margin_tradable_quotaintAvailable margin quota
margin_ratiointMargin Ration
short_ratiointShort Sell Ration
info

Explanation of Quota: If the margin_ratio is None, it means funding is halted. If the short_ratio is None, it means short selling is halted. Explanation of Returned Quota: 0 - No quota / Greater than 0 - Quota available / None - No restrictions / Both of ratio of and quota return 0 - margin or short selling halted.

Request Example

sdk.stock.margin_quota(account, "2330")

Response Example

Result {
is_success: True,
message: None,
data: [
MarginShortQuota {
stock_no: 2330,
date: "2024/01/24",
shortsell_orig_quota: 894,
shortsell_tradable_quota: 894,
margin_orig_quota: None,
margin_tradable_quota: None,
margin_ratio: 60,
short_ratio: 90,
}]
}