oclaw/skills/tushare-finance/reference/接口文档/每日筹码及胜率.md
oliver beb52006d8 refactor: move bundled skills tree to repo root skills/
- Relocate runtime/skills -> skills/; runtime_skills_root() prefers oclaw/skills
  with fallback to legacy runtime/skills for unmigrated trees.
- session-bootstrap hook handler resolves repo root via PROJECT_ROOT.
- Update architecture/migration docs and in-tree skill references.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-10 11:35:57 +08:00

3 KiB
Raw Blame History

每日筹码及胜率

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


每日筹码及胜率

接口:cyq_perf描述:获取A股每日筹码平均成本和胜率情况,每天18~19点左右更新,数据从2018年开始来源:Tushare社区限量:单次最大5000条,可以分页或者循环提取积分:5000积分每天20000次,10000积分每天200000次,15000积分每天不限总量

输入参数

名称 类型 必选 描述
ts_code str Y 股票代码
trade_date str N 交易日期(YYYYMMDD)
start_date str N 开始日期
end_date str N 结束日期
输出参数
名称 类型 默认显示 描述
ts_code str Y 股票代码
trade_date str Y 交易日期
his_low float Y 历史最低价
his_high float Y 历史最高价
cost_5pct float Y 5分位成本
cost_15pct float Y 15分位成本
cost_50pct float Y 50分位成本
cost_85pct float Y 85分位成本
cost_95pct float Y 95分位成本
weight_avg float Y 加权平均成本
winner_rate float Y 胜率
接口用法
pro = ts.pro_api()

df = pro.cyq_perf(ts_code='600000.SH', start_date='20220101', end_date='20220429')

数据样例

      ts_code trade_date his_low his_high cost_5pct cost_95pct weight_avg winner_rate
0   600000.SH   20220429    0.72    12.16      8.18      11.34       9.76        3.52
1   600000.SH   20220428    0.72    12.16      8.24      11.34       9.76        3.08
2   600000.SH   20220427    0.72    12.16      8.30      11.34       9.76        1.71
3   600000.SH   20220426    0.72    12.16      8.34      11.34       9.76        2.02
4   600000.SH   20220425    0.72    12.16      8.36      11.34       9.77        1.44
..        ...        ...     ...      ...       ...        ...        ...         ...
72  600000.SH   20220110    0.72    12.16      8.60      11.36       9.89        7.62
73  600000.SH   20220107    0.72    12.16      8.60      11.36       9.89        7.59
74  600000.SH   20220106    0.72    12.16      8.60      11.36       9.89        3.92
75  600000.SH   20220105    0.72    12.16      8.60      11.36       9.89        5.65
76  600000.SH   20220104    0.72    12.16      8.60      11.36       9.89        3.93