Query Margin Quota
margin_quota
Input Parameters
| Parameter | Type | Description |
|---|---|---|
| account | Account | Account |
| stockNo | string | Stock code |
Result Response
| Parameter | Type | Description |
|---|---|---|
| is_success | bool | Whether successful |
| data | MarginShortQuota | Returned margin/short quota info |
| message | string | Error message when is_success = False |
MarginShortQuota Fields
Return type: Object
| Parameter | Type | Description |
|---|---|---|
| stock_no | string | Stock code |
| date | string | Date |
| shortsell_orig_quota | int | Original short sell quota |
| shortsell_tradable_quota | int | Tradable short sell quota |
| margin_orig_quota | int | Original margin quota |
| margin_tradable_quota | int | Tradable margin quota |
| margin_ratio | int | Margin ratio |
| short_ratio | int | Short 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
}
}