Get Margin Quota
MarginQuota
Request Parameter
Parameter | Type | Meaning |
---|---|---|
account | Account | Account |
stockNo | string | symbol |
Result Reponse
Parameter | Type | Meaning |
---|---|---|
isSuccess | bool | Interface result |
data | MarginShortQuota | MarginShortQuota is returned |
message | string | isSuccess = False error description is returned |
MarginShortQuota Parameter
Return type : Object
Parameter | Type | Meaning |
---|---|---|
stockNo | string | Symbol |
date | string | Query date (today) |
shortsellOrigQuota | int | The original shortsell quota |
shortsellTradableQuota | int | Available shortsell quota |
marginOrigQuota | int | The original margin quota |
marginTradableQuota | int | Available margin quota |
marginRatio | int | Margin Ration |
shortRatio | int | Short Sell Ration |
info
Explanation of Quota: If the marginRatio return empty, it means margin is halted. If the shorRatio return empty, it means short selling is halted. Explanation of Returned Quota: 0 - No quota / Greater than 0 - Quota available / Empty - No restrictions / Both of ratio of and quota return 0 - margin or short selling halted.
Request Example
Console.WriteLine(sdk.Stock.MarginQuota(account, "2330"));
Response Example
{
isSuccess = True,
message = ,
data = MarginShortQuota{
stockNo = 2330, // Stock symbol (string)
date = 2024/01/24, // Query date (string)
shortsellOrigQuota = 894, // The original short sell quota (int)
shortsellTradableQuota = 894, // Available short sell quota (int)
marginOrigQuota = , // The original margin quota (int)
marginTradableQuota = , // Available margin quota (int)
marginRatio = 60, // Margin Ratio (int)
shortRatio = 90 // Short Sell Ratio (int)
}
}