跳到正文
TakoAPI
返回技能列表

tushare-base

由 wdblink 提供

Browser & Automation
2.3k下载量由 clawskills.sh 提供
3星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Fetch Chinese stock and futures market data via Tushare API.

描述

该技能的功能

Fetches Chinese stock and futures market data via the Tushare API. Covers A-share quotes (daily, weekly, monthly, realtime), futures contracts across major exchanges, company fundamentals, and macroeconomic indicators like GDP, CPI, and PPI. Requires a Tushare account and API token.

Tushare provides a single API covering Chinese equities, futures, and macro data that is otherwise scattered across exchange-specific sources.

何时使用

  • Pulling daily price history for a specific A-share stock
  • Checking realtime quotes for Shenzhen or Shanghai-listed stocks
  • Fetching copper or steel futures data from SHFE
  • Retrieving money flow data for a given trading day
  • Looking up GDP or CPI trends for macro research

示例工作流

输入

User asks: get daily price data for Kweichow Moutai (600519.SH) for January 2024

智能体
  1. 1

    Set TUSHARE_TOKEN environment variable

  2. 2

    Run market.py daily with ts_code 600519.SH

  3. 3

    Pass start_date 20240101 and end_date 20240131

  4. 4

    Display returned OHLCV data

输出

Daily open, high, low, close, and volume data for 600519.SH across all trading days in January 2024

前置要求

  • TUSHARE_TOKEN environment variable
  • Tushare account (register at tushare.pro)

安装

clawhub install wdblink/tushare-base

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接