Skip to content

Get historical K-line quota ​

GET /api/v1.0/quote/quotas/history-kline

Returns 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 ​

ParameterTypeInRequiredDescription
poolstringqueryNoQuota pool: standard (default) or option
offsetintegerqueryNoZero-based starting offset into committed targets; defaults to 0
limitintegerqueryNoMaximum 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.

FieldTypeDescription
poolstringQueried quota pool (standard or option)
totalintegerCurrent entitlement total limit
usedintegerCurrent committed usage count
reservedintegerNew targets temporarily held by in-flight requests (expires after 60 seconds)
remainingintegerRemaining quota after committed usage (max(total - used, 0))
availableintegerImmediately available quota after committed and reserved slots (max(total - used - reserved, 0))
detailsobject[]Committed targets on this page ordered by expiry (excludes reservations); empty array when none
details[].target_idstringOpaque quota target ID (do not use as a quote symbol)
details[].expires_atintegerQuota release time in Unix seconds

Pagination (top-level pagination) ​

FieldTypeDescription
offsetintegerStarting offset of this page
limitintegerMaximum items requested for this page
has_morebooleanWhether 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_codeerror.codeDescription
-3missing_uidAuthenticated user identity is missing
-3invalid_parameterInvalid pool, offset, or limit parameter
-9permission_deniedAccess denied by policy
-11rate_limitedRate limit exceeded; back off for Retry-After seconds when provided
-13quota_unavailableEntitlement 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.