Get historical K-line quota
GET/api/v1.0/quote/quotas/history-klineReturns historical K-line quota usage for the authenticated user in the selected pool. Both pools share the same total limit and track usage separately; the option pool deduplicates contracts by market, underlying, and expiry. A slot is consumed on the first successful non-empty history K-line response and held for 7 days (7×24 hours) by default; repeated reads do not extend the expiry.
Request parameters
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
pool | string | query | No | Quota pool: standard (default) or option |
offset | integer | query | No | Zero-based starting offset into committed targets; defaults to 0 |
limit | integer | query | No | Maximum detail items per page, range 1–200; defaults to 100 |
Request example
bash
curl -s "https://webapi.futunn.com/api/v1.0/quote/quotas/history-kline?pool=standard&offset=0&limit=2" \
-H "Authorization: Bearer <AccessToken>"Response fields
Fields under data.
| Field | Type | Description |
|---|---|---|
pool | string | Queried quota pool (standard or option) |
total | integer | Current entitlement total limit |
used | integer | Current committed usage count |
reserved | integer | New targets temporarily held by in-flight requests (expires after 60 seconds) |
remaining | integer | Remaining quota after committed usage (max(total - used, 0)) |
available | integer | Immediately available quota after committed and reserved slots (max(total - used - reserved, 0)) |
details | object[] | Committed targets on this page ordered by expiry (excludes reservations); empty array when none |
details[].target_id | string | Opaque quota target ID (do not use as a quote symbol) |
details[].expires_at | integer | Quota release time in Unix seconds |
Pagination (top-level pagination)
| Field | Type | Description |
|---|---|---|
offset | integer | Starting offset of this page |
limit | integer | Maximum items requested for this page |
has_more | boolean | Whether more items remain; when true, request the next page with offset + limit |
Response example
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"available": 1876,
"details": [
{
"target_id": "82673841484938",
"expires_at": 1795857225
},
{
"target_id": "82673841483487",
"expires_at": 1795857237
}
],
"pool": "standard",
"remaining": 1876,
"reserved": 0,
"total": 2000,
"used": 124
},
"pagination": {
"has_more": true,
"limit": 2,
"offset": 0
}
}Errors
| ret_code | error.code | Description |
|---|---|---|
| -3 | missing_uid | Authenticated user identity is missing |
| -3 | invalid_parameter | Invalid pool, offset, or limit parameter |
| -9 | permission_denied | Access denied by policy |
| -11 | rate_limited | Rate limit exceeded; back off for Retry-After seconds when provided |
| -13 | quota_unavailable | Entitlement or usage service temporarily unavailable |
Notes
- Total limits depend on account quote entitlements (example totals are illustrative, not fixed quotas for all accounts). WebAPI usage is tracked independently of OpenD.
- Entitlement or usage-query failures return a business error rather than reporting zero usage.