东方财富日内行情 dfcf-stock-intraday
v1.0.2使用东方财富 API 获取 A 股(沪市/深市)及指数的日内分时数据。当用户询问某只 A 股或指数的日内走势、分时数据、当日行情、实时价格、分时图数据时,必须使用此 skill。触发关键词包括:分时数据、日内数据、今日行情、分时走势、intraday、当日走势、东方财富获取数据。支持沪市(market=1)和深市...
Security Scan
OpenClaw
Benign
high confidencePurpose & Capability
The skill's name/description match the runtime instructions (it fetches intraday data from push2.eastmoney.com). One minor inconsistency: SKILL.md instructs running curl but the skill metadata lists no required binaries — the skill should declare 'curl' as a required binary or avoid shell commands. Otherwise the requested capabilities align with the purpose.
Instruction Scope
Instructions are narrowly focused: determine secid, call the Eastmoney API via curl, parse the returned JSON, and format output for the user. The instructions do not request unrelated files, environment variables, or external endpoints beyond Eastmoney.
Install Mechanism
This is an instruction-only skill with no install spec or code to download or execute. No installation-related risks are present.
Credentials
The skill requires no credentials, environment variables, or config paths. It only performs an unauthenticated HTTP GET to a public API, which is proportionate to its purpose.
Persistence & Privilege
The skill is not forced-always and does not request persistent privileges or modify other skills/config. Autonomous invocation is allowed (platform default) but not combined with other red flags.
Assessment
This skill appears to do what it says: call Eastmoney's public API, parse the JSON, and present intraday data. Before installing, consider: (1) the skill runs a shell curl command — ensure the agent environment has curl available or the skill metadata is updated to declare it; (2) the agent will make outbound network requests to push2.eastmoney.com, so verify you are comfortable with those requests (they may reveal which tickers you query to that endpoint); (3) the skill infers stock codes from names — double-check results for ambiguous names; and (4) because it executes shell commands, only enable in trusted agent environments. If you want stricter controls, request the skill be updated to use an internal HTTP client rather than invoking curl, or to explicitly declare required binaries.Like a lobster shell, security has layers — review code before you run it.
latest
东方财富日内分时数据 Skill
第一步:确定 secid
secid 格式为 {market}.{code},规则如下:
| 股票代码开头 | 市场 | market 值 | secid 示例 |
|---|---|---|---|
6 | 沪市 A 股 | 1 | 1.600519(贵州茅台) |
0 或 3 | 深市 A 股 | 0 | 0.000858(步长制药) |
000001 | 上证指数 | 1 | 1.000001 |
399001 | 深证成指 | 0 | 0.399001 |
399006 | 创业板指 | 0 | 0.399006 |
如果用户只说了股票名称,先推断代码,再按上表确定 secid。
第二步:执行 curl 请求
在 bash 中运行以下命令(将 <secid> 替换为实际值):
curl -s "https://push2.eastmoney.com/api/qt/stock/trends2/get?fields1=f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13&fields2=f51,f52,f53,f54,f55,f56,f57,f58&ut=fb5fd1943c7b386f172d6893dbfba10b&ndays=1&iscr=1&secid=<secid>"
示例(上证指数):
curl -s "https://push2.eastmoney.com/api/qt/stock/trends2/get?fields1=f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13&fields2=f51,f52,f53,f54,f55,f56,f57,f58&ut=fb5fd1943c7b386f172d6893dbfba10b&ndays=1&iscr=1&secid=1.000001"
第三步:解析 JSON 响应
检查返回是否正常
rc == 0且data不为 null → 正常,继续解析data为 null → secid 有误,告知用户检查代码和市场- 请求失败 → 提示网络问题
data 顶层字段
| 字段 | 含义 |
|---|---|
name | 股票/指数名称 |
code | 股票代码 |
preClose | 昨收价 |
trendsTotal | 分时数据总条数 |
trends | 分时数据数组(见下) |
trends 数组格式
每条字符串按逗号分隔,共 8 个字段:
时间(f51), 开盘价(f52), 现价/收盘价(f53), 最高价(f54), 最低价(f55), 成交量-手(f56), 成交额-元(f57), 均价(f58)
示例:
"2026-03-24 09:31,3850.95,3841.40,3852.03,3841.40,21144419,27208168960.00,3876.612"
第四步:输出数据
将解析结果以如下格式直接输出给用户:
【上证指数】(000001)当日分时数据
昨收价: 3813.28 | 共 256 条
时间 开盘 现价 最高 最低 成交量(手) 成交额(元) 均价
-------- -------- -------- -------- -------- ------------ ------------------- --------
09:15 3813.28 3813.28 3813.28 3813.28 0 0.00 3813.28
09:31 3850.95 3841.40 3852.03 3841.40 21144419 27208168960.00 3876.61
...
15:00 3880.86 3881.28 3881.42 3880.86 8194784 10308771840.00 3937.72
注意:
- 时间只显示
HH:MM部分(去掉日期前缀) - 均价保留 2 位小数
- 非交易时间请求会返回上一交易日数据,需告知用户
- 集合竞价阶段(9:15–9:25)成交量通常为 0,属正常现象
Comments
Loading comments...
