Skip to content

Get market data permissions ​

GET /api/v1.0/quote/permissions

Query 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.

FieldTypeDescription
uidintegerAuthenticated user UID
updated_atintegerPermission snapshot update time in Unix seconds
from_cachebooleanWhether the snapshot was served from cache
open_api_grantedbooleanWhether OpenAPI quote authorization is granted; false when ungranted or both total quota limits are zero
quotasobjectAccount total quota limits
quotas.sub_limitintegerTotal subscription quota limit (not remaining capacity)
quotas.history_kline_limitintegerTotal historical K-line quota limit (not remaining capacity)
us_lv2_booksobjectUS depth-feed entitlement flags
us_lv2_books.nasdaq_totalviewbooleanWhether Nasdaq TotalView depth is enabled
us_lv2_books.arcabooleanWhether NYSE Arca depth is enabled
marketsobject[]Permission items grouped by market (including NONE items); currently covers HK, US, CN, SG, JP, MY, CC, KS, KR, AU, CA, and GI
markets[].marketstringPermission market code (distinct from instrument symbol prefixes, e.g. CN covers SH/SZ/BJ and MY maps to BMS)
markets[].itemsobject[]Permission items under this market
markets[].items[].keystringPermission key identifier (31 keys total); see the permission dictionary
markets[].items[].categorystringAsset category code: stock, option, future, index, otc, overnight, future_option, crypto, or event_contract
markets[].items[].exchangestringExchange code (CME, CBOT, NYMEX, COMEX, CBOE, OTC, SH, SZ, BJ); omitted when inapplicable, never empty or null
markets[].items[].levelstringNormalized 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_codeerror.codeDescription
-3missing_uidAuthenticated user identity is missing
-9permission_deniedAccess denied by policy
-11rate_limitedRate limit exceeded; back off for Retry-After seconds when provided
-13quota_unavailablePermission 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 to NONE.
  • If OpenAPI authorization is absent or both subscription and historical K-line limits are zero, the request still returns ret_code=0 with open_api_granted=false, zero limits, and NONE for 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.