← 返回 Skills 市场
mabtush13

futures-panda

作者 mabtush13 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
514
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install futures-panda
功能描述
通过AKShare财经数据接口库封装,提供股期货、期权的实时数据、历史行情数据、仓单数据、席位数据、基差数据、期货合约基础数据和期货交易费用参照表数据。
使用说明 (SKILL.md)

AKShare财经数据技能

快速开始

# 安装依赖
pip install akshare pandas

# 测试安装
python -c "import akshare; print(akshare.__version__)"

核心功能

1. 期货实时数据

import akshare as ak

# 期货实时行情
futures_zh_spot(symbol='RB2605', market="CF", adjust='0')  # 单合约实时数据获取

2. 期货历史行情

# 日线历史数据
futures_zh_daily_sina(symbol="RB0")  

# 交易所历史数据
get_futures_daily(start_date="20200701", end_date="20200716", market="DCE")()  

# 分时历史数据:1": "1分钟", "5": "5分钟", "15": "15分钟", "30": "30分钟", "60": "60分钟"
futures_zh_minute_sina(symbol="RB0", period="1")  

3. 手续费与保证金

# 期货交易费用参照表
futures_fees_info()

4. 交易日历表

# 期货交易日历 
futures_rule(date="20231205")

7. 合约信息

# 上海期货交易所期货合约
futures_contract_info_shfe(date="20240513")
# 国际能源中心期货交易所期货合约
futures_contract_info_ine(date="20241129")
# 大连商品期货交易所期货合约
futures_contract_info_dce()
# 郑州期货交易所期货合约
futures_contract_info_czce(date="20240228")
# 广州期货交易所期货合约
futures_contract_info_gfex()
# 中金期货交易所期货合约
futures_contract_info_cffex(date="20240228")
#连续合约品种一览表接口
futures_display_main_sina()

8. 现货与股票

# symbol="能源"; choice of {'能源', '化工', '塑料', '纺织', '有色', '钢铁', '建材', '农副'}
futures_spot_stock(symbol="能源")

实用脚本

除了直接调用 AKShare 函数,本技能还提供了封装好的命令行脚本,位于 scripts/ 目录下:

  • futures_data.py(新增) 获取期货实时行情、历史数据、仓单、基差等

使用方法详见 references/README.md 中的示例。

注意事项

  1. 数据来源: 公开财经网站,仅用于学术研究
  2. 商业风险: 投资有风险,决策需谨慎
  3. 更新频率: 实时数据可能有延迟
  4. 数据验证: 建议多数据源交叉验证

参考文档

安全使用建议
This skill appears to do what it claims: wrap AKShare to fetch futures/option data and provide a CLI returning JSON. Before installing: (1) run it in an isolated Python virtualenv to limit side effects; (2) confirm you are comfortable installing akshare and pandas from PyPI and check the installed akshare version and its maintainers (the SKILL references akshare GitHub/docs); (3) review the included script if you need to ensure no hidden network endpoints or logging to external services (the script shown only calls AKShare APIs and prints JSON); (4) note the package source/homepage is not provided by the registry entry and the author contact in README is a personal email — if provenance matters, ask the maintainer for a canonical source (repo or homepage) before using in production. If you want extra caution, run the script locally and inspect network traffic or run it in a sandbox before granting any broader agent autonomy.
功能分析
Type: OpenClaw Skill Name: futures-panda Version: 1.0.0 The skill bundle is a legitimate wrapper for the AKShare financial data library, providing tools to fetch futures and options market data. Analysis of the Python script `scripts/futures_data.py` and the instructions in `SKILL.md` reveals no evidence of malicious intent, data exfiltration, or unauthorized execution; the code simply maps command-line arguments to standard AKShare API calls and returns JSON-formatted results.
能力评估
Purpose & Capability
Name/description advertise AKShare-based futures/option market data. The included script and SKILL.md only import and call AKShare functions (akshare, pandas) to fetch market data — these requirements match the stated purpose and are proportionate.
Instruction Scope
Runtime instructions and the script focus on installing akshare/pandas and calling specific AKShare APIs. They do not read system files, environment secrets, or send data to unexpected external endpoints; they return JSON-formatted data from public finance sources as claimed.
Install Mechanism
There is no registry-level install spec, but SKILL.md includes an OpenClaw 'install' metadata entry that requests pip installing akshare>=1.12 and pandas>=1.5. Installing from PyPI is expected for this skill and is low risk; these are well-known packages. Recommend verifying package versions and using a virtual environment.
Credentials
The skill declares no required environment variables, no credential access, and the code does not reference any secrets or unrelated env vars. This is appropriate for a data-fetching wrapper.
Persistence & Privilege
always is false and the skill does not request persistent system-wide changes or modify other skills. Model invocation is enabled by default (normal); there are no additional elevated privileges requested.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install futures-panda
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /futures-panda 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release with comprehensive futures data features: - Provides real-time and historical data for futures and options using AKShare and pandas. - Covers live quotes, daily/minute bar data, contract info, positions, basis, fees, and trading calendar. - Includes command-line scripts for easy data access. - Supports wide range of Chinese financial derivatives markets. - Dependency: Requires akshare≥1.12 and pandas≥1.5.
元数据
Slug futures-panda
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

futures-panda 是什么?

通过AKShare财经数据接口库封装,提供股期货、期权的实时数据、历史行情数据、仓单数据、席位数据、基差数据、期货合约基础数据和期货交易费用参照表数据。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 514 次。

如何安装 futures-panda?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install futures-panda」即可一键安装,无需额外配置。

futures-panda 是免费的吗?

是的,futures-panda 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

futures-panda 支持哪些平台?

futures-panda 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 futures-panda?

由 mabtush13(@mabtush13)开发并维护,当前版本 v1.0.0。

💬 留言讨论