← Back to Skills Marketplace
mabtush13

futures-panda

by mabtush13 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
514
Downloads
1
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install futures-panda
Description
通过AKShare财经数据接口库封装,提供股期货、期权的实时数据、历史行情数据、仓单数据、席位数据、基差数据、期货合约基础数据和期货交易费用参照表数据。
README (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. 数据验证: 建议多数据源交叉验证

参考文档

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install futures-panda
  3. After installation, invoke the skill by name or use /futures-panda
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug futures-panda
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is futures-panda?

通过AKShare财经数据接口库封装,提供股期货、期权的实时数据、历史行情数据、仓单数据、席位数据、基差数据、期货合约基础数据和期货交易费用参照表数据。 It is an AI Agent Skill for Claude Code / OpenClaw, with 514 downloads so far.

How do I install futures-panda?

Run "/install futures-panda" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is futures-panda free?

Yes, futures-panda is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does futures-panda support?

futures-panda is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created futures-panda?

It is built and maintained by mabtush13 (@mabtush13); the current version is v1.0.0.

💬 Comments