Skip to main content

Query Margin Quota

margin_quota

Input Parameters​

ParameterTypeDescription
accountAccountAccount
stock_nostringStock code

Result Response​

ParameterTypeDescription
is_successboolWhether successful
dataMarginShortQuotaReturned margin/short quota info
messagestringError message when is_success = False

MarginShortQuota Fields​

Return type: Object

ParameterTypeDescription
stock_nostringStock code
datestringDate
shortsell_orig_quotaintOriginal short sell quota
shortsell_tradable_quotaintTradable short sell quota
margin_orig_quotaintOriginal margin quota
margin_tradable_quotaintTradable margin quota
margin_ratiointMargin ratio
short_ratiointShort sell ratio

Request Example​

auto quota_response = sdk->stock->margin_quota(account, "2330");

Response Example​

{
is_success = true,
message = ,
data = MarginShortQuota{
stock_no = 2330,
date = 2024/01/24,
shortsell_orig_quota = 894,
shortsell_tradable_quota = 894,
margin_orig_quota = ,
margin_tradable_quota = ,
margin_ratio = 60,
short_ratio = 90
}
}