Get Margin Quota
marginQuota
Input Parameters
| Parameter | Type | Meaning |
|---|---|---|
| account | Account | Account |
| stockNo | string | Symbol |
Result
| Parameter | Type | Meaning |
|---|---|---|
| isSuccess | bool | Whether successful |
| data | Object | MarginShortQuota list is returned |
| message | string ? (optional) | Error message returned when isSuccess = false |
MarginShortQuota Parameter
Return type : Object
| Parameter | Type | Meaning |
|---|---|---|
| stockNo | string | Symbol |
| date | string | Query Date (today) |
| shortsellOrigQuota | number ? | The Original Shortsell Quota |
| shortsellTradableQuota | number ? | Available Shortsell Quota |
| marginOrigQuota | number ? | The Original Margin Quota |
| marginTradableQuota | number ? | Available Margin Quota |
| marginRatio | number ? | Margin Ration |
| shortRatio | number ? | Short Sell Ration |
info
Explanation of Quota: If the marginRatio not return, it means margin is halted. If the shorRatio not return, it means short selling is halted. Explanation of Returned Quota: 0 - No quota / Greater than 0 - Quota available / Not return - No restrictions / Both of ratio of and quota not return 0 - margin or short selling halted.
Request Example
sdk.stock.marginQuota(account, "2330")
Response Example
{
isSuccess: true,
data: {
stockNo: '2330',
date: '2024/01/24',
shortsellOrigQuota: 894,
shortsellTradableQuota: 894,
marginRatio: 60,
shortRatio: 90
}
}