Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Tushare Pro

ASecurity

A股/港股/期货量化数据查询工具。基于 Tushare Pro API,直接通过 HTTP REST 接口调用,无需 pip 和 Python 环境。用于获取中国A股/港股/期货/指数/资金流向/财务数据。

60 stars
0 votes
0 copies
0 views
Added 9/23/2026
developmentpythonapi

Works with

api

Security Analysis

A100/100

Scanned 9/23/2026

Install to Claude Code

$npx -y skills add lxyeternal/MalSkillBench --skill tushare-pro --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tushare Pro?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Tushare Pro
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lxyeternal-tushare-pro/badge)](https://www.skillsdirectory.com/skills/lxyeternal-tushare-pro)

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---
name: tushare-pro
description: A股/港股/期货量化数据查询工具。基于 Tushare Pro API,直接通过 HTTP REST 接口调用,无需 pip 和 Python 环境。用于获取中国A股/港股/期货/指数/资金流向/财务数据。
metadata:
  {
    "openclaw": {
      "requires": {
        "env": ["TUSHARE_TOKEN"],
        "bins": []
      },
      "install": []
    }
  }
---

# Tushare Pro 数据查询技能

通过 HTTP REST 接口直接调用 Tushare Pro,无需 pip/SDK。

## 前提条件

### 1. 注册账号并获取 Token

1. 打开 👉 **https://tushare.pro** 注册账号
2. 登录后进入 **个人中心 → 接口Token**
3. 复制你的 Token

### 2. 配置 Token

在 **~/.openclaw/skills/tushare-pro/** 目录下创建 `token.env` 文件:

```
TUSHARE_TOKEN=你的Token
```

## 数据接口一览

### 股票日线
```
api: daily
params: {ts_code: "600036.SH", start_date: "20260320", end_date: "20260326"}
fields: ts_code,trade_date,open,high,low,close,pct_chg,vol,amount
```
股票代码格式:
- 上交所:`600036.SH`(招商银行)、`600519.SH`(茅台)
- 深交所:`000001.SZ`(平安)、`300001.SZ`(创业板)
- 科创板:`688001.SH`

### 指数日线
```
api: index_daily
params: {ts_code: "000300.SH", start_date: "20260320", end_date: "20260326"}
fields: ts_code,trade_date,open,high,low,close,pct_chg,vol
```
常用指数代码:
- `000300.SH` 沪深300
- `000001.SH` 上证指数
- `399001.SZ` 深证成指
- `HSI.HK` 恒生指数
- `HSTECH.HK` 恒生科技

### 资金流向
```
api: moneyflow
params: {trade_date: "20260324"}
fields: ts_code,trade_date,close,pct_chg,buy_elg_amount,sell_elg_amount
```

### 期货日线
```
api: fut_daily
params: {ts_code: "IF.CFX", start_date: "20260320", end_date: "20260326"}
fields: ts_code,trade_date,open,high,low,close,vol,oi
```
期货代码格式:
- `CU.SHF` 铜
- `AU.SHF` 黄金
- `RB.SHF` 螺纹钢
- `IF.CFX` 沪深300股指
- `IC.CFX` 中证500股指

## 查询脚本

```python
#!/usr/bin/env python3
"""Tushare Pro HTTP 调用工具(无需pip)"""
import os, json, urllib.request

TOKEN = '你的Token'  # 或 os.environ.get('TUSHARE_TOKEN')

def call(api_name, params=None, fields=''):
    payload = json.dumps({
        'api_name': api_name,
        'token': TOKEN,
        'params': params or {},
        'fields': fields
    }).encode('utf-8')
    req = urllib.request.Request(
        'https://api.tushare.pro',
        data=payload,
        headers={'Content-Type': 'application/json'}
    )
    with urllib.request.urlopen(req, timeout=20) as r:
        result = json.loads(r.read().decode())
        if result.get('code') != 0:
            return None
        return result['data']

# 示例:查招商银行近期数据
data = call('daily',
    {'ts_code': '600036.SH', 'start_date': '20260320', 'end_date': '20260326'},
    'ts_code,trade_date,open,high,low,close,pct_chg,vol,amount')
for row in data['items']:
    print(dict(zip(data['fields'], row)))
```

## 常用查询示例

| 目标 | 命令 |
|------|------|
| 招商银行近期日线 | `daily(ts_code='600036.SH', start='20260320', end='20260326')` |
| 沪深300近期日线 | `index_daily(ts_code='000300.SH', start='20260320', end='20260326')` |
| 恒生指数近期 | `index_daily(ts_code='HSI.HK', start='20260320', end='20260326')` |
| 当日全市场资金流 | `moneyflow(trade_date='20260324')` |
| 黄金期货近期 | `fut_daily(ts_code='AU.SHF', start='20260320', end='20260326')` |

## 注意事项

- Token 有调用频率限制,高频查询请加入 `time.sleep(0.5)`
- 部分接口需要 Tushare 积分权限
- 日期格式统一为 `YYYYMMDD`

Attribution

lxyeternallxyeternal
View sourceMore from lxyeternal →
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Related Skills

Browser Extension Developer

Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.

284072 votes

Seo Optimizer

SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.

2192 votes

Google Official Seo Guide

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

1862 votes

Tanstack Start

Build a full-stack TanStack Start app on Cloudflare Workers from scratch — SSR, file-based routing, server functions, D1+Drizzle, better-auth, Tailwind v4+shadcn/ui. Use whenever the user mentions TanStack Start, asks to scaffold a full-stack Cloudflare app with SSR, wants an SSR dashboard, or asks for a React 19 + Cloudflare Workers app with file-based routing and server functions — even if they don't name TanStack Start specifically. No template repo — Claude generates every file fresh per ...

9881 votes

Pentest

PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.

5491 votes
View all in development →