Quant Python API catalog
GET/api/v1.0/quote/quant-python-docsList 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
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
locale | string | query | No | Locale; defaults to zh-CN and accepts zh-CN, zh-HK, en, and ja-JP |
categories | string[] | query | No | Optional 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.
| Field | Type | Description |
|---|---|---|
locale | string | Locale actually used |
catalog_version | string | Catalog content hash; unchanged when only document bodies change |
items | object[] | Matching API entries for the locale, not paginated |
items[].symbol | string | Exact symbol; pass it to the details endpoint |
items[].category | string | Category: function, builtin, or enum |
items[].kind | string | Kind: function, method, attribute, constant, or class |
items[].package | string | Package name, such as fquote or Color |
items[].module | string | Importable module name |
items[].summary | string | One-line summary; empty string when missing |
items[].signature | string | Signature; 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).
| code | Description |
|---|---|
| -3 | Invalid parameter, such as an unsupported locale or categories value, or more than 3 categories items |
| -5 | Missing login session, unsupported user region (supports CN/HKG/US/SG/AU/JP), or internal query failure |
| -9 | Access denied by policy |
| -11 | Rate limit exceeded; back off for Retry-After seconds |
| -13 | Rate-limit service unavailable |