Quant Python API documentation
GET/api/v1.0/quote/quant-python-docs/detailsRetrieve documentation by exact symbol from the catalog using the same locale. Requires a signed-in user; docs follows request order and unmatched symbols appear in not_found, even when none of the requested symbols match.
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 |
symbols | string[] | query | Yes | 1 to 20 exact symbols; repeat the query key for multiple values |
Request example
bash
curl -s "https://webapi.futunn.com/api/v1.0/quote/quant-python-docs/details?locale=en&symbols=abs&symbols=int" \
-H "Authorization: Bearer <AccessToken>"Response fields
Fields under data.
| Field | Type | Description |
|---|---|---|
locale | string | Locale actually used |
docs | object[] | Documents found, in request order |
docs[].symbol | string | Exact symbol |
docs[].category | string | Category: function, builtin, or enum |
docs[].kind | string | Kind: function, method, attribute, constant, or class |
docs[].package | string | Package name |
docs[].module | string | Importable module name |
docs[].import_stmt | string | Import statement; may be empty for builtins |
docs[].signature | string | Signature |
docs[].return_type | string | Return type |
docs[].title | string | Title |
docs[].summary | string | One-line summary; empty string when missing |
docs[].returns | string | Return value description |
docs[].params | string | Parameter JSON string |
docs[].example_src | string | Example code; empty string when missing |
docs[].body_md | string | Body Markdown; empty string when missing |
not_found | string[] | Original symbols with no published document in this locale; empty array when all symbols are found |
Response example
json
{
"code": 0,
"message": "success",
"data": {
"locale": "en",
"docs": [
{
"symbol": "abs",
"category": "builtin",
"kind": "function",
"package": "builtins",
"module": "builtins",
"import_stmt": "",
"signature": "abs(x)",
"return_type": "number",
"title": "abs",
"summary": "Return the absolute value.",
"returns": "Absolute value of x.",
"params": "[{\"name\":\"x\"}]",
"example_src": "abs(-3)",
"body_md": "Returns the absolute value of a number."
}
],
"not_found": [
"int"
]
}
}Errors
Failed responses (code != 0) include top-level trace_id (omitted when code=0).
| code | Description |
|---|---|
| -3 | Invalid parameter, such as missing symbols, more than 20 symbols, or an unsupported locale |
| -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 |