Get market data permissions
GET/api/v1.0/quote/permissionsQuery real-time market data entitlements by market and asset category, US depth-feed flags, and total subscription and historical K-line quota limits for the authenticated user. No pagination.
Request parameters
This endpoint takes no request parameters. The user is identified from the authentication credential (an OAuth 2.1 access token with quote:read or an AppKey signature; see Getting Started).
Request example
bash
curl -s "https://webapi.futunn.com/api/v1.0/quote/permissions" \
-H "Authorization: Bearer <AccessToken>"Response fields
Fields under data.
| Field | Type | Description |
|---|---|---|
uid | integer | Authenticated user UID |
updated_at | integer | Permission snapshot update time in Unix seconds |
from_cache | boolean | Whether the snapshot was served from cache |
open_api_granted | boolean | Whether OpenAPI quote authorization is granted; false when ungranted or both total quota limits are zero |
quotas | object | Account total quota limits |
quotas.sub_limit | integer | Total subscription quota limit (not remaining capacity) |
quotas.history_kline_limit | integer | Total historical K-line quota limit (not remaining capacity) |
us_lv2_books | object | US depth-feed entitlement flags |
us_lv2_books.nasdaq_totalview | boolean | Whether Nasdaq TotalView depth is enabled |
us_lv2_books.arca | boolean | Whether NYSE Arca depth is enabled |
markets | object[] | Permission items grouped by market (including NONE items); currently covers HK, US, CN, SG, JP, MY, CC, KS, KR, AU, CA, and GI |
markets[].market | string | Permission market code (distinct from instrument symbol prefixes, e.g. CN covers SH/SZ/BJ and MY maps to BMS) |
markets[].items | object[] | Permission items under this market |
markets[].items[].key | string | Permission key identifier (31 keys total); see the permission dictionary |
markets[].items[].category | string | Asset category code: stock, option, future, index, otc, overnight, future_option, crypto, or event_contract |
markets[].items[].exchange | string | Exchange code (CME, CBOT, NYMEX, COMEX, CBOE, OTC, SH, SZ, BJ); omitted when inapplicable, never empty or null |
markets[].items[].level | string | Normalized display level (NONE, LV1, LV2, LV3, SF), not order-book depth; NONE means no real-time entitlement |
Response example
This redacted example uses the fictional UID 10001 and shows selected items from two market groups (live responses return all 12 market groups).
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"uid": 10001,
"updated_at": 1795408052,
"from_cache": true,
"open_api_granted": true,
"quotas": {
"sub_limit": 2000,
"history_kline_limit": 2000
},
"us_lv2_books": {
"nasdaq_totalview": true,
"arca": true
},
"markets": [
{
"market": "HK",
"items": [
{
"key": "hk_stock",
"category": "stock",
"level": "SF"
},
{
"key": "hk_option",
"category": "option",
"level": "LV2"
}
]
},
{
"market": "CN",
"items": [
{
"key": "cn_sh",
"category": "stock",
"exchange": "SH",
"level": "LV1"
},
{
"key": "cn_sz",
"category": "stock",
"exchange": "SZ",
"level": "LV1"
}
]
}
]
}
}Errors
| ret_code | error.code | Description |
|---|---|---|
| -3 | missing_uid | Authenticated user identity is missing |
| -9 | permission_denied | Access denied by policy |
| -11 | rate_limited | Rate limit exceeded; back off for Retry-After seconds when provided |
| -13 | quota_unavailable | Permission or rate-limit dependency is temporarily unavailable |
Notes
level(NONE,LV1,LV2,LV3,SF) is a cross-market normalized display level and does not directly specify order-book depth; delayed entitlements also map toNONE.- If OpenAPI authorization is absent or both subscription and historical K-line limits are zero, the request still returns
ret_code=0withopen_api_granted=false, zero limits, andNONEfor every item; dependency failures return a business error instead of an empty grant. - See the permission dictionary for the complete table of keys and exchanges, and Historical K-line quota / Subscription quota for current usage.