oclaw/runtime/skills/tushare-finance/reference/接口文档/ETF复权因子.md
oliver d1bcc4debe feat: multimodal image clients, workspaces, Tushare skill, test fixes
- Replace monolithic image_message_client with HTTP/OCR/legacy modules; tighten OpenAI transport + tool schemas for multimodal downgrade to OCR specialist path.
- Add image/stock workspace prompts (META/SOUL/ROLE_SYSTEM); register experts; tweak specialist agent/direct loop/query_image_attachment.
- Add bundled runtime/skills/tushare-finance (references, api_client, SKILL metadata).
- Document OCR-related env vars; admin chat tweaks; README; weixin_install Ensure-OfficialPluginRuntimeDeps helper.
- Tests: multimodal downgrade + OCR coverage, strict tool pairing in attachment replay guard, workspace contract skips _internal/_system dirs, router/trace/prompt guards.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-10 04:41:42 +08:00

2.5 KiB
Raw Blame History

ETF复权因子

文档ID: 199 原始链接: https://tushare.pro/document/2?doc_id=199


基金复权因子

接口:fund_adj描述:获取基金复权因子,用于计算基金复权行情限量:单次最大提取2000行记录,可循环提取,数据总量不限制积分:用户积600积分可调取,超过5000积分以上频次相对较高。具体请参阅积分获取办法

复权行情实现参考:

后复权 = 当日最新价 × 当日复权因子前复权 = 当日最新价 ÷ 最新复权因子

输入参数

名称 类型 必选 描述
ts_code str N TS基金代码(支持多只基金输入)
trade_date str N 交易日期(格式:yyyymmdd,下同)
start_date str N 开始日期
end_date str N 结束日期
offset str N 开始行数
limit str N 最大行数
输出参数
名称 类型 默认显示 描述
ts_code str Y ts基金代码
trade_date str Y 交易日期
adj_factor float Y 复权因子
接口使用

pro = ts.pro_api()

df = pro.fund_adj(ts_code='513100.SH', start_date='20190101', end_date='20190926')

数据示例

     ts_code    trade_date  adj_factor
0    513100.SH   20190926         1.0
1    513100.SH   20190925         1.0
2    513100.SH   20190924         1.0
3    513100.SH   20190923         1.0
4    513100.SH   20190920         1.0
5    513100.SH   20190919         1.0
6    513100.SH   20190918         1.0
7    513100.SH   20190917         1.0
8    513100.SH   20190916         1.0
9    513100.SH   20190912         1.0
10   513100.SH   20190911         1.0
11   513100.SH   20190910         1.0
12   513100.SH   20190909         1.0
13   513100.SH   20190906         1.0
14   513100.SH   20190905         1.0
15   513100.SH   20190904         1.0
16   513100.SH   20190903         1.0
17   513100.SH   20190902         1.0
18   513100.SH   20190830         1.0
19   513100.SH   20190829         1.0
20   513100.SH   20190828         1.0