Skip to content

Quant Python API catalog ​

GET /api/v1.0/quote/quant-python-docs

List published quant Python API entries for a locale, including names, categories, signatures, and summaries. Requires a signed-in user; the catalog is returned in a single unpaginated response. Pass a returned symbol and the same locale to retrieve documentation details.

Request parameters ​

ParameterTypeInRequiredDescription
localestringqueryNoLocale; defaults to zh-CN and accepts zh-CN, zh-HK, en, and ja-JP
categoriesstring[]queryNoOptional filter: function, builtin, or enum; omit for all; repeat the query key for multiple values, up to 3 items

Request example ​

bash
curl -s "https://webapi.futunn.com/api/v1.0/quote/quant-python-docs?locale=en&categories=function&categories=builtin" \
  -H "Authorization: Bearer <AccessToken>"

Response fields ​

Fields under data.

FieldTypeDescription
localestringLocale actually used
catalog_versionstringCatalog content hash; unchanged when only document bodies change
itemsobject[]Matching API entries for the locale, not paginated
items[].symbolstringExact symbol; pass it to the details endpoint
items[].categorystringCategory: function, builtin, or enum
items[].kindstringKind: function, method, attribute, constant, or class
items[].packagestringPackage name, such as fquote or Color
items[].modulestringImportable module name
items[].summarystringOne-line summary; empty string when missing
items[].signaturestringSignature; may be empty

Response example ​

json
{
  "code": 0,
  "message": "success",
  "data": {
    "locale": "en",
    "catalog_version": "7a3e8b",
    "items": [
      {
        "symbol": "abs",
        "category": "builtin",
        "kind": "function",
        "package": "builtins",
        "module": "builtins",
        "summary": "Return the absolute value.",
        "signature": "abs(x)"
      }
    ]
  }
}

Errors ​

Failed responses (code != 0) include top-level trace_id (omitted when code=0).

codeDescription
-3Invalid parameter, such as an unsupported locale or categories value, or more than 3 categories items
-5Missing login session, unsupported user region (supports CN/HKG/US/SG/AU/JP), or internal query failure
-9Access denied by policy
-11Rate limit exceeded; back off for Retry-After seconds
-13Rate-limit service unavailable