mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-20 04:53:16 +08:00
- 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>
3.5 KiB
3.5 KiB
股票历史列表
文档ID: 262 原始链接: https://tushare.pro/document/2?doc_id=262
股票历史列表(历史每天股票列表)
接口:bak_basic描述:获取备用基础列表,数据从2016年开始限量:单次最大7000条,可以根据日期参数循环获取历史,正式权限需要5000积分。
输入参数
| 名称 | 类型 | 必选 | 描述 |
|---|---|---|---|
| trade_date | str | N | 交易日期 |
| ts_code | str | N | 股票代码 |
| 名称 | 类型 | 默认显示 | 描述 |
|---|---|---|---|
| trade_date | str | Y | 交易日期 |
| ts_code | str | Y | TS股票代码 |
| name | str | Y | 股票名称 |
| industry | str | Y | 行业 |
| area | str | Y | 地域 |
| pe | float | Y | 市盈率(动) |
| float_share | float | Y | 流通股本(亿) |
| total_share | float | Y | 总股本(亿) |
| total_assets | float | Y | 总资产(亿) |
| liquid_assets | float | Y | 流动资产(亿) |
| fixed_assets | float | Y | 固定资产(亿) |
| reserved | float | Y | 公积金 |
| reserved_pershare | float | Y | 每股公积金 |
| eps | float | Y | 每股收益 |
| bvps | float | Y | 每股净资产 |
| pb | float | Y | 市净率 |
| list_date | str | Y | 上市日期 |
| undp | float | Y | 未分配利润 |
| per_undp | float | Y | 每股未分配利润 |
| rev_yoy | float | Y | 收入同比(%) |
| profit_yoy | float | Y | 利润同比(%) |
| gpr | float | Y | 毛利率(%) |
| npr | float | Y | 净利润率(%) |
| holder_num | int | Y | 股东人数 |
pro = ts.pro_api()
df = pro.bak_basic(trade_date='20211012', fields='trade_date,ts_code,name,industry,pe')
数据样例
trade_date ts_code name industry pe
0 20211012 300605.SZ 恒锋信息 软件服务 56.4400
1 20211012 301017.SZ 漱玉平民 医药商业 58.7600
2 20211012 300755.SZ 华致酒行 其他商业 23.0000
3 20211012 300255.SZ 常山药业 生物制药 24.9900
4 20211012 688378.SH 奥来德 专用机械 24.9600
... ... ... ... ... ...
4529 20211012 688257.SH 新锐股份 机械基件 0.0000
4530 20211012 688255.SH 凯尔达 机械基件 0.0000
4531 20211012 688211.SH 中科微至 专用机械 0.0000
4532 20211012 605567.SH 春雪食品 食品 0.0000
4533 20211012 605566.SH 福莱蒽特 染料涂料 0.0000