Skip to content

Quant Python API documentation ​

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

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

ParameterTypeInRequiredDescription
localestringqueryNoLocale; defaults to zh-CN and accepts zh-CN, zh-HK, en, and ja-JP
symbolsstring[]queryYes1 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.

FieldTypeDescription
localestringLocale actually used
docsobject[]Documents found, in request order
docs[].symbolstringExact symbol
docs[].categorystringCategory: function, builtin, or enum
docs[].kindstringKind: function, method, attribute, constant, or class
docs[].packagestringPackage name
docs[].modulestringImportable module name
docs[].import_stmtstringImport statement; may be empty for builtins
docs[].signaturestringSignature
docs[].return_typestringReturn type
docs[].titlestringTitle
docs[].summarystringOne-line summary; empty string when missing
docs[].returnsstringReturn value description
docs[].paramsstringParameter JSON string
docs[].example_srcstringExample code; empty string when missing
docs[].body_mdstringBody Markdown; empty string when missing
not_foundstring[]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).

codeDescription
-3Invalid parameter, such as missing symbols, more than 20 symbols, or an unsupported locale
-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