Get Margin Quota
margin_quota
Request Parameter
| Parameter | Type | Meaning |
|---|---|---|
| account | Account | Account |
| stock_no | string | Symbol |
Result Response
| Parameter | Type | Meaning |
|---|---|---|
| is_success | bool | Interface result |
| data | MarginShortQuota | MarginShortQuota is returned |
| message | string | is_success = False error description is returned |
MarginShortQuota Parameter
Return type : Object
| Parameter | Type | Meaning |
|---|---|---|
| stock_no | string | Symbol |
| date | string | Query date (today) |
| shortsell_orig_quota | int | The original shortsell quota |
| shortsell_tradable_quota | int | Available shortsell quota |
| margin_orig_quota | int | The original margin quota |
| margin_tradable_quota | int | Available margin quota |
| margin_ratio | int | Margin Ration |
| short_ratio | int | Short Sell Ration |
info
Explanation of Quota: If the margin_ratio is None, it means funding is halted. If the short_ratio is None, it means short selling is halted. Explanation of Returned Quota: 0 - No quota / Greater than 0 - Quota available / None - No restrictions / Both of ratio of and quota return 0 - margin or short selling halted.
Request Example
sdk.stock.margin_quota(account, "2330")
Response Example
Result {
is_success: True,
message: None,
data: [
MarginShortQuota {
stock_no: 2330,
date: "2024/01/24",
shortsell_orig_quota: 894,
shortsell_tradable_quota: 894,
margin_orig_quota: None,
margin_tradable_quota: None,
margin_ratio: 60,
short_ratio: 90,
}]
}