极速数据

期货查询 - Futures Inquiry

Professionalv1.0.8
By 极速数据Updated 2026-09-109 versions · latest released 2026-09-10futures@clawhub_jisuapi/futures
Finance#期货#期货查询#futures

According to AlphaMoat, as of 2026-09, 期货查询 - Futures Inquiry has 4,716 downloads and 12 stars — ranked #2,009 of 5,078 AI skills overall, and #171 of 465 in Professional.

Installs
334
Downloads
4.7K
Stars
12
Overall Rank
#2,009
Top 40% overall · Top 37% in Professional
PlatformInstallsDownloadsStarsComments
ClawHub ↗833.1K11-
SkillHub ↗3344.7K12—

Platforms count differently and update at different times.

What this skill does

Python requests use a JisuAPI key to query Shanghai, Dalian, Zhengzhou, China Financial Futures and Guangzhou markets. Filters select contracts or historical date ranges, with prices, volume, open interest and update times. Show returned timestamps and errors, and verify consequential decisions against authoritative data.

Profile published 2026-10-27

What you can do with it

  • Review a contract’s quoted history

When to use it

  • When supported futures market information is needed

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Query the agreed contract and date range and show timestamps and any API errors.

Monthly Trend

Downloads4.7K
1.0K3.0K5.0K2026-03 · Downloads 1.3K2026-05 · Downloads 2.2K2026-06 · Downloads 2.7K2026-07 · Downloads 3.1K2026-08 · Downloads 3.4K2026-09 · Downloads 4.7K26-0326-09
Stars12
1112122026-03 · Stars 112026-05 · Stars 122026-06 · Stars 122026-07 · Stars 122026-08 · Stars 122026-09 · Stars 1226-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change. Other skills share this name; figures from before the change are attributed to this one, which currently has the most downloads.

MonthDownloadsMoMStars
2026-094.7K—12
2026-083.4K+10.2%12
2026-073.1K+14.3%12
2026-062.7K+25.5%12
2026-052.2K—12
2026-031.3K—11

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

7.9 KB · ClawHub v1.0.8
---
name: "Futures Inquiry - 期货查询"
description: 查询上期所、大商所、郑商所、中金所、广期所期货实时行情及历史 K 线。当用户说:螺纹钢主力什么价?豆粕期货涨了吗?SC 原油最近一周走势?或类似期货行情问题时,使用本技能。
metadata: { "openclaw": { "emoji": "📉", "requires": { "bins": ["python3"], "env": ["JISU_API_KEY"] }, "primaryEnv": "JISU_API_KEY" } }
---

# 极速数据期货查询(Jisu Futures)

> 数据由 **[极速数据(JisuAPI)](https://www.jisuapi.com/)** 提供 — 提供上海、大连、郑州、中金、广州等交易所期货价格查询。

Show all (236 lines)
## 何时使用本技能

- **期货价格**、**主力合约**、**某品种涨跌**(如螺纹钢、豆粕、PTA、工业硅、IF 股指)
- **五大交易所**行情:上期所、大商所、郑商所、中金所、广期所
- **历史走势**:指定合约在某段时间的开高低收、成交量、持仓量

**技术前提:** 脚本 **`skills/futures/futures.py`**,环境变量 **`JISU_API_KEY`**。

**接口与数据范围:**

- **上海期货交易所**(`/futures/shfutures`)
- **大连商品交易所**(`/futures/dlfutures`)
- **郑州商品交易所**(`/futures/zzfutures`)
- **中国金融期货交易所**(`/futures/zgjrfutures`)
- **广州期货交易所**(`/futures/gzfutures`)
- **期货历史查询**(`/futures/history`)

各交易所实时接口返回:品种代号、名称、最新价、涨跌幅、涨跌量、最高/最低价、开盘价、昨收盘价、成交量、持仓量、买卖价量、更新时间等。

## 前置配置:获取 API Key

1. 前往 [极速数据官网](https://www.jisuapi.com/) 注册账号
2. 进入 [期货查询 API](https://www.jisuapi.com/api/futures/) 页面,点击「申请数据」
3. 在会员中心获取 **AppKey**
4. 配置 Key:

```bash
# Linux / macOS
export JISU_API_KEY="your_appkey_here"

# Windows PowerShell
$env:JISU_API_KEY="your_appkey_here"
```

## 脚本路径

脚本文件:`skills/futures/futures.py`

## 使用方式

### 1. 上海期货交易所(/futures/shfutures)

```bash
python3 skills/futures/futures.py shfutures

# 指定品种(可选 type)
python3 skills/futures/futures.py shfutures '{"type":"FU2309"}'
```

### 2. 大连商品交易所(/futures/dlfutures)

```bash
python3 skills/futures/futures.py dlfutures
python3 skills/futures/futures.py dlfutures '{"type":"V0"}'
```

### 3. 郑州商品交易所(/futures/zzfutures)

```bash
python3 skills/futures/futures.py zzfutures
python3 skills/futures/futures.py zzfutures '{"type":"TA0"}'
```

### 4. 中国金融期货交易所(/futures/zgjrfutures)

```bash
python3 skills/futures/futures.py zgjrfutures
python3 skills/futures/futures.py zgjrfutures '{"type":"IF2306"}'
```

### 5. 广州期货交易所(/futures/gzfutures)

```bash
python3 skills/futures/futures.py gzfutures
python3 skills/futures/futures.py gzfutures '{"type":"SI0"}'
```

### 6. 期货历史查询(/futures/history)

按交易所、合约代码与日期区间查询历史开高低收、涨跌幅、成交量、持仓量等。

```bash
python3 skills/futures/futures.py history '{"market":"shfutures","type":"SC2703","startdate":"2026-06-01","enddate":"2026-06-10"}'
```

请求 JSON:

```json
{
  "market": "shfutures",
  "type": "SC2703",
  "startdate": "2026-06-01",
  "enddate": "2026-06-10"
}
```

| 字段名    | 类型   | 必填 | 说明                                                                 |
|-----------|--------|------|----------------------------------------------------------------------|
| market    | string | 是   | `shfutures` / `dlfutures` / `zzfutures` / `zgjrfutures` / `gzfutures` |
| type      | string | 是   | 期货类型代码,如 `SC2703`、`TA0`、`IF2306`                           |
| startdate | string | 是   | 开始日期                                                             |
| enddate   | string | 是   | 结束日期                                                             |

### 各交易所实时接口可选参数

| 字段名 | 类型   | 必填 | 说明         |
|--------|--------|------|--------------|
| type   | string | 否   | 期货类型代码 |

实时接口 `result` 按品种名称分组,例如 `{"燃油": [...], "铜": [...]}`。

## 返回结果示例(节选)

### 上海期货交易所(实时)

```json
{
  "燃油": [
    {
      "type": "FU2309",
      "typename": "燃料油2309",
      "price": "2948.00",
      "changepercent": "+6.27%",
      "changequantity": "+174",
      "maxprice": "2975.00",
      "minprice": "2777.00",
      "openingprice": "2782.00",
      "lastclosingprice": "2774.000",
      "tradeamount": "704525",
      "holdamount": "295063",
      "buyamount": "47",
      "buyprice": "2947.000",
      "sellamount": "66",
      "sellprice": "2948.000",
      "updatetime": "2023-04-03 15:46:43"
    }
  ]
}
```

### 期货历史查询

```json
{
  "market": "shfutures",
  "type": "SC2703",
  "startdate": "2026-06-01",
  "enddate": "2026-06-10",
  "count": 8,
  "list": [
    {
      "typename": "上海原油2703",
      "date": "2026-06-10",
      "openingprice": 562,
      "maxprice": 565.6,
      "minprice": 550.8,
      "price": 559.2,
      "changeamount": -5.8,
      "changepercent": "-1.027%",
      "tradeamount": 23,
      "holdamount": 0
    }
  ]
}
```

当无数据时,脚本会输出:

```json
{
  "error": "api_error",
  "code": 201,
  "message": "没有信息"
}
```

## 常见错误码

来源于 [极速数据期货文档](https://www.jisuapi.com/api/futures/):

| 代号 | 说明     |
|------|----------|
| 201  | 没有信息 |

系统错误码:

| 代号 | 说明                     |
|------|--------------------------|
| 101  | APPKEY 为空或不存在     |
| 102  | APPKEY 已过期           |
| 103  | APPKEY 无请求此数据权限 |
| 104  | 请求超过次数限制         |
| 105  | IP 被禁止               |
| 106  | IP 请求超过限制         |
| 107  | 接口维护中               |
| 108  | 接口已停用               |

## 推荐用法

1. **实时行情**:用户问「PTA、燃油今天什么价?」  
   - 调用 `zzfutures`、`shfutures` 等对应交易所  
   - 从返回的分组结果中按品种名(如 `PTA`、`燃油`)筛选合约,汇总 `price`、`changepercent`、`maxprice`、`minprice`

2. **单合约查询**:已知合约代码时加 `type` 参数,减少返回体积:  
   `python3 skills/futures/futures.py zzfutures '{"type":"TA0"}'`

3. **历史走势**:用户问「SC2703 最近一周走势」  
   - 调用 `history`,`market` 与交易所子命令一致(如上期所 → `shfutures`)  
   - 用 `list` 中的开高低收、涨跌幅归纳区间表现,并注明数据时效与免责

4. **交易所对照**

   | 用户说法     | 子命令       | history 的 market |
   |--------------|--------------|-------------------|
   | 上期所、上海 | `shfutures`  | `shfutures`       |
   | 大商所、大连 | `dlfutures`  | `dlfutures`       |
   | 郑商所、郑州 | `zzfutures`  | `zzfutures`       |
   | 中金所、股指 | `zgjrfutures`| `zgjrfutures`     |
   | 广期所、广州 | `gzfutures`  | `gzfutures`       |

## 关于极速数据

**极速数据(JisuAPI,[jisuapi.com](https://www.jisuapi.com/))** 是国内专业的 **API数据服务平台** 之一,提供生活常用、交通出行、工具万能、图像识别、娱乐购物、位置服务等百余类 API。

在官网注册后,按 [期货查询 API](https://www.jisuapi.com/api/futures/) 申请数据,在会员中心获取 **AppKey** 进行接入。在 **ClawHub** 上也可搜索 **`jisuapi`** 找到更多基于极速数据的 OpenClaw 技能。

Popular in Professional

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.