contivo-trader
v1.0.0Contivo 交易员:自建投资数据库的只读取数服务,提供行情、估值、因子、指数成分与受限只读…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
data_status 查数据新鲜度与治理状态
Contivo 交易员:本地投资数据库的新鲜度与治理状态:各表最新日期、数据集目录状态分布、高危质量检查项、DATA_VALIDATION_STATUS 摘要。
list_datasets 检索数据集目录
Contivo 交易员:按关键词/层/schema/状态检索数据集目录(meta.dataset_catalog,1400+ 数据集,带 PIT 安全标记与来源)。
| Parameter | Type | Description |
|---|---|---|
layer | string | bronze / silver / gold / raw / meta |
limit | integer | 返回条数,默认 40 |
query | string | 数据集 ID 或来源关键词 |
schema | string | cn / hk / us / fut / idx / factors ... |
status | string | production / active / planned / watch ... |
dataset_detail 查数据集登记信息
Contivo 交易员:单个数据集的登记信息:来源、主键、分区、PIT 安全标记、状态、行数与日期覆盖区间。
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | 如 cn.daily / fut.daily |
get_prices 取日线行情
Contivo 交易员:日线行情:开高低收、涨跌幅、成交量额。支持 A股(cn)、港股(hk)、美股(us)、期货(fut)。
| Parameter | Type | Description |
|---|---|---|
codes * | array | ts_code 列表 |
end | string | 结束日期 YYYYMMDD |
limit | integer | |
market | string | cn / hk / us / fut |
start | string | 起始日期 YYYYMMDD |
get_valuation 取估值截面
Contivo 交易员:估值截面:PE(TTM)、PB、PS、股息率、换手率、总市值/流通市值。
| Parameter | Type | Description |
|---|---|---|
codes | array | |
date | string | 交易日 YYYYMMDD |
limit | integer |
list_symbols 查标的代码与名称
Contivo 交易员:标的清单与检索:A股、港股、美股、ETF、期货合约(代码/名称/行业/上市状态)。
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
market | string | cn / hk / us / etf / fut |
query | string | 代码或名称关键词 |
get_factor 取因子值与因子元信息
Contivo 交易员:因子值与因子元信息(含 IC 均值/ICIR、样本区间)。不给 factor_name 时返回因子清单。
| Parameter | Type | Description |
|---|---|---|
codes | array | |
end | string | |
factor_name | string | |
limit | integer | |
start | string |
index_members 取指数成分与权重
Contivo 交易员:指数成分与权重(idx.weight),如 000300.SH 沪深300。
| Parameter | Type | Description |
|---|---|---|
index_code * | string | 如 000300.SH |
date | string | 交易日 YYYYMMDD |
limit | integer |
query_sql 跑只读 SQL 取数
Contivo 交易员:受限只读 SQL:只允许 SELECT / WITH,拦截写语句与 DDL,行数自动截断。用于目录外的临时取数。
| Parameter | Type | Description |
|---|---|---|
sql * | string | SELECT/WITH 查询 |
limit | integer |