{"openapi":"3.1.0","info":{"title":"金融数据库个人 API","description":"只读数据接口。使用内部签发凭证按 RFC 9421 计算逐请求签名。","version":"1.0"},"servers":[{"url":"https://api.open.invstbot.com"}],"paths":{"/v1/datasets":{"get":{"summary":"可读取的数据目录","operationId":"datasets_v1_datasets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"X-Data-Version":{"schema":{"type":"string"},"description":"响应所用发布版本"},"X-Request-ID":{"schema":{"type":"string"},"description":"请求编号"}}},"401":{"description":"凭证缺失、无效或已过期","content":{"application/json":{"schema":{"type":"object","required":["error_code","message","request_id"],"properties":{"error_code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}}}}}},"403":{"description":"操作未授权","content":{"application/json":{"schema":{"type":"object","required":["error_code","message","request_id"],"properties":{"error_code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}}}}}},"404":{"description":"数据集未开放","content":{"application/json":{"schema":{"type":"object","required":["error_code","message","request_id"],"properties":{"error_code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}}}}}},"409":{"description":"分页版本或游标已失效","content":{"application/json":{"schema":{"type":"object","required":["error_code","message","request_id"],"properties":{"error_code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}}}}}},"422":{"description":"查询参数无效","content":{"application/json":{"schema":{"type":"object","required":["error_code","message","request_id"],"properties":{"error_code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}}}}}},"429":{"description":"达到请求额度","content":{"application/json":{"schema":{"type":"object","required":["error_code","message","request_id"],"properties":{"error_code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}}}}}},"503":{"description":"服务暂不可用","content":{"application/json":{"schema":{"type":"object","required":["error_code","message","request_id"],"properties":{"error_code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}},"parameters":[{"in":"header","name":"Signature-Input","required":true,"schema":{"type":"string"},"description":"按 RFC 9421 生成的签名参数，包含凭证 ID、时间窗及 nonce。"},{"in":"header","name":"Signature","required":true,"schema":{"type":"string"},"description":"由内部签发的 Ed25519 凭证在调用端计算。"}]}},"/v1/datasets/{dataset_id}":{"get":{"summary":"数据集定义和覆盖范围","operationId":"dataset_v1_datasets__dataset_id__get","parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","title":"Dataset Id"}},{"in":"header","name":"Signature-Input","required":true,"schema":{"type":"string"},"description":"按 RFC 9421 生成的签名参数，包含凭证 ID、时间窗及 nonce。"},{"in":"header","name":"Signature","required":true,"schema":{"type":"string"},"description":"由内部签发的 Ed25519 凭证在调用端计算。"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"X-Data-Version":{"schema":{"type":"string"},"description":"响应所用发布版本"},"X-Request-ID":{"schema":{"type":"string"},"description":"请求编号"}}},"422":{"description":"查询参数无效","content":{"application/json":{"schema":{"type":"object","required":["error_code","message","request_id"],"properties":{"error_code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}}}}}},"401":{"description":"凭证缺失、无效或已过期","content":{"application/json":{"schema":{"type":"object","required":["error_code","message","request_id"],"properties":{"error_code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}}}}}},"403":{"description":"操作未授权","content":{"application/json":{"schema":{"type":"object","required":["error_code","message","request_id"],"properties":{"error_code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}}}}}},"404":{"description":"数据集未开放","content":{"application/json":{"schema":{"type":"object","required":["error_code","message","request_id"],"properties":{"error_code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}}}}}},"409":{"description":"分页版本或游标已失效","content":{"application/json":{"schema":{"type":"object","required":["error_code","message","request_id"],"properties":{"error_code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}}}}}},"429":{"description":"达到请求额度","content":{"application/json":{"schema":{"type":"object","required":["error_code","message","request_id"],"properties":{"error_code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}}}}}},"503":{"description":"服务暂不可用","content":{"application/json":{"schema":{"type":"object","required":["error_code","message","request_id"],"properties":{"error_code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}}},"/v1/datasets/{dataset_id}/rows":{"get":{"summary":"筛选并分页读取业务记录","operationId":"rows_v1_datasets__dataset_id__rows_get","parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","title":"Dataset Id"}},{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Code"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"End"}},{"name":"fields","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Fields"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":1800},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","pattern":"^(json|csv)$","default":"json","title":"Format"}},{"in":"header","name":"Signature-Input","required":true,"schema":{"type":"string"},"description":"按 RFC 9421 生成的签名参数，包含凭证 ID、时间窗及 nonce。"},{"in":"header","name":"Signature","required":true,"schema":{"type":"string"},"description":"由内部签发的 Ed25519 凭证在调用端计算。"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}},"text/csv":{"schema":{"type":"string"}}},"headers":{"X-Data-Version":{"schema":{"type":"string"},"description":"响应所用发布版本"},"X-Request-ID":{"schema":{"type":"string"},"description":"请求编号"}}},"422":{"description":"查询参数无效","content":{"application/json":{"schema":{"type":"object","required":["error_code","message","request_id"],"properties":{"error_code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}}}}}},"401":{"description":"凭证缺失、无效或已过期","content":{"application/json":{"schema":{"type":"object","required":["error_code","message","request_id"],"properties":{"error_code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}}}}}},"403":{"description":"操作未授权","content":{"application/json":{"schema":{"type":"object","required":["error_code","message","request_id"],"properties":{"error_code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}}}}}},"404":{"description":"数据集未开放","content":{"application/json":{"schema":{"type":"object","required":["error_code","message","request_id"],"properties":{"error_code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}}}}}},"409":{"description":"分页版本或游标已失效","content":{"application/json":{"schema":{"type":"object","required":["error_code","message","request_id"],"properties":{"error_code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}}}}}},"429":{"description":"达到请求额度","content":{"application/json":{"schema":{"type":"object","required":["error_code","message","request_id"],"properties":{"error_code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}}}}}},"503":{"description":"服务暂不可用","content":{"application/json":{"schema":{"type":"object","required":["error_code","message","request_id"],"properties":{"error_code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}