mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-20 06:13:25 +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>
2.9 KiB
2.9 KiB
实时分钟行情
文档ID: 340 原始链接: https://tushare.pro/document/2?doc_id=340
期货实时分钟行情
接口:rt_fut_min描述:获取全市场期货合约实时分钟数据,支持1min/5min/15min/30min/60min行情,提供Python SDK、 http Restful API和websocket三种方式,如果需要主力合约分钟,请先通过主力mapping接口获取对应的合约代码后提取分钟。限量:每分钟可以请求500次,支持多个合约同时提取权限:需单独开权限,正式权限请参阅权限说明。
rt_fut_min输入参数
| 名称 | 类型 | 必选 | 描述 |
|---|---|---|---|
| ts_code | str | Y | 股票代码,e.g.CU2310.SHF,支持多个合约(逗号分隔) |
| freq | str | Y | 分钟频度(1MIN/5MIN/15MIN/30MIN/60MIN) |
rt_fut_min_daily输入参数
| 名称 | 类型 | 必选 | 描述 |
|---|---|---|---|
| ts_code | str | Y | 股票代码,e.g.CU2310.SHF,仅支持一次一个合约的回放 |
| freq | str | Y | 分钟频度(1MIN/5MIN/15MIN/30MIN/60MIN) |
| date_str | str | N | 回放日期(格式:YYYY-MM-DD,默认为交易当日,支持回溯一天) |
| freq | 说明 |
|---|---|
| 1MIN | 1分钟 |
| 5MIN | 5分钟 |
| 15MIN | 15分钟 |
| 30MIN | 30分钟 |
| 60MIN | 60分钟 |
| 名称 | 类型 | 默认显示 | 描述 |
|---|---|---|---|
| code | str | Y | 股票代码 |
| freq | str | Y | 频度 |
| time | str | Y | 交易时间 |
| open | float | Y | 开盘价 |
| close | float | Y | 收盘价 |
| high | float | Y | 最高价 |
| low | float | Y | 最低价 |
| vol | int | Y | 成交量 |
| amount | float | Y | 成交金额 |
| oi | float | Y | 持仓量 |
pro = ts.pro_api()
#单个合约
df = pro.df = pro.rt_fut_min(ts_code='CU2501.SHF', freq='1MIN')
#多个合约
df = pro.df = pro.rt_fut_min(ts_code='CU2501.SHF,CU2502.SHF', freq='1MIN')