Skip to main content

Query Margin Quota

margin_quota

Input Parameters

ParameterTypeDescription
accountAccountAccount
stockNostringStock 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(target_account, "2330");

Response Example

{
isSuccess = true,
message = ,
data = MarginShortQuota{
stockNo = 2330,
date = 2024/01/24,
shortsellOrigQuota = 894,
shortsellTradableQuota = 894,
marginOrigQuota = ,
marginTradableQuota = ,
marginRatio = 60,
shortRatio = 90
}
}