[PR #172] [CLOSED] Add tushare-api skill for Chinese financial data queries #280

Closed
opened 2026-02-15 17:16:38 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/openclaw/clawhub/pull/172
Author: @DayDreammy
Created: 2/7/2026
Status: Closed

Base: mainHead: add-tushare-skill


📝 Commits (10+)

  • 9968c87 Add tushare-api skill - SKILL.md
  • 26049c9 Add tushare-api skill - README.md
  • 43dd9cd Add tushare-api skill - API reference
  • c00fc8b Add tushare-api skill - examples script
  • 4df5291 Add tushare-api skill - bank stocks analysis script
  • 038b9fd Delete encoded file
  • 4e1adae Add api-reference.md
  • fb2d1c2 Update SKILL.md
  • 968ac30 Update README.md
  • 39616e2 Update api-reference.md

📊 Changes

5 files changed (+927 additions, -0 deletions)

View changed files

skills/tushare-api/README.md (+26 -0)
skills/tushare-api/SKILL.md (+103 -0)
skills/tushare-api/references/api-reference.md (+427 -0)
skills/tushare-api/scripts/analyze_bank_stocks.py (+238 -0)
skills/tushare-api/scripts/tushare_examples.py (+133 -0)

📄 Description

📊 New Skill: Tushare API

Description

Tushare Pro financial data API assistant for querying Chinese stocks, funds, futures, bonds, and other financial data. Use this skill when users need to access stock quotes, financial reports, fundamental data, or macroeconomic indicators.

Features

  • 📈 Stock market data (daily/weekly/monthly quotes, PE/PB ratios, market cap)
  • 💰 Financial statements (income, balance sheet, cash flow)
  • 📊 Market data (capital flow, limit-up/down stocks, top traders)
  • 🏢 Company fundamentals and IPO calendar
  • 📅 Trading calendar and macroeconomic indicators

Supported Data Types

Category Data
Stocks A-shares, HK stocks, US stocks
Funds Mutual funds, ETFs, LOFs
Futures Commodity, index futures
Bonds Treasury, corporate, convertible
Macro Economic indicators, rates, FX

File Structure

tushare-api/
├── http://SKILL.md # Main skill file
├── http://README.md # Documentation
├── references/
│ └── http://api-reference.md # API reference
└── scripts/
├── analyze_bank_stocks.py # Bank stock analysis example
└── tushare_examples.py # Common usage examples

Dependencies

  • Python 3.x
  • tushare package (pip install tushare)
  • Tushare Pro Token (free registration required)

Author

@DayDreammy

Greptile Overview

Greptile Summary

This PR introduces a new tushare-api skill with documentation, an API reference, and two example Python scripts for querying Tushare Pro financial data (stocks/funds/futures/bonds/macro) and a bank-stocks analysis example.

In the current state, the added artifacts under skills/tushare-api/ are not usable because the .md and .py files are committed as base64-encoded single-line blobs rather than plaintext sources; the docs won’t render and the scripts won’t run until the decoded content is committed.

Confidence Score: 1/5

  • Not safe to merge as-is because the added skill files are unusable artifacts.
  • All added Markdown and Python files appear to be base64-encoded blobs committed as a single line, so documentation won’t render and scripts won’t execute. Fix requires committing decoded plaintext sources (and normal newlines).
  • skills/tushare-api/README.md; skills/tushare-api/SKILL.md; skills/tushare-api/references/api-reference.md; skills/tushare-api/scripts/analyze_bank_stocks.py; skills/tushare-api/scripts/tushare_examples.py

(2/5) Greptile learns from your feedback when you react with thumbs up/down!

Context used:

  • Context from dashboard - AGENTS.md (source)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/openclaw/clawhub/pull/172 **Author:** [@DayDreammy](https://github.com/DayDreammy) **Created:** 2/7/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `add-tushare-skill` --- ### 📝 Commits (10+) - [`9968c87`](https://github.com/openclaw/clawhub/commit/9968c87196a3dd7919b4e32bedb5399c56c66844) Add tushare-api skill - SKILL.md - [`26049c9`](https://github.com/openclaw/clawhub/commit/26049c930bab2e69aa38c83fb2aa674a165887c1) Add tushare-api skill - README.md - [`43dd9cd`](https://github.com/openclaw/clawhub/commit/43dd9cde525ba270e451a384f3479d00e9e4c085) Add tushare-api skill - API reference - [`c00fc8b`](https://github.com/openclaw/clawhub/commit/c00fc8ba3fd9b969382c575c6397f177ae7f81c7) Add tushare-api skill - examples script - [`4df5291`](https://github.com/openclaw/clawhub/commit/4df52917923e4827d9ec579aafe5944c99f06061) Add tushare-api skill - bank stocks analysis script - [`038b9fd`](https://github.com/openclaw/clawhub/commit/038b9fd6e16c738197280893129174c1a89eaf38) Delete encoded file - [`4e1adae`](https://github.com/openclaw/clawhub/commit/4e1adae98f36bed5a4a525d184765b19fd42c046) Add api-reference.md - [`fb2d1c2`](https://github.com/openclaw/clawhub/commit/fb2d1c2a353f5a56fecdfd53bdae6a16bd36fca0) Update SKILL.md - [`968ac30`](https://github.com/openclaw/clawhub/commit/968ac309cb2c80397b9b49f3ccc7e307dd54ec58) Update README.md - [`39616e2`](https://github.com/openclaw/clawhub/commit/39616e268ff950eafa81fd240dbe4f5ea696392d) Update api-reference.md ### 📊 Changes **5 files changed** (+927 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `skills/tushare-api/README.md` (+26 -0) ➕ `skills/tushare-api/SKILL.md` (+103 -0) ➕ `skills/tushare-api/references/api-reference.md` (+427 -0) ➕ `skills/tushare-api/scripts/analyze_bank_stocks.py` (+238 -0) ➕ `skills/tushare-api/scripts/tushare_examples.py` (+133 -0) </details> ### 📄 Description ## 📊 New Skill: Tushare API ### Description Tushare Pro financial data API assistant for querying Chinese stocks, funds, futures, bonds, and other financial data. Use this skill when users need to access stock quotes, financial reports, fundamental data, or macroeconomic indicators. ### Features - 📈 Stock market data (daily/weekly/monthly quotes, PE/PB ratios, market cap) - 💰 Financial statements (income, balance sheet, cash flow) - 📊 Market data (capital flow, limit-up/down stocks, top traders) - 🏢 Company fundamentals and IPO calendar - 📅 Trading calendar and macroeconomic indicators ### Supported Data Types | Category | Data | |----------|------| | Stocks | A-shares, HK stocks, US stocks | | Funds | Mutual funds, ETFs, LOFs | | Futures | Commodity, index futures | | Bonds | Treasury, corporate, convertible | | Macro | Economic indicators, rates, FX | ### File Structure tushare-api/ ├── http://SKILL.md # Main skill file ├── http://README.md # Documentation ├── references/ │ └── http://api-reference.md # API reference └── scripts/ ├── analyze_bank_stocks.py # Bank stock analysis example └── tushare_examples.py # Common usage examples ### Dependencies - Python 3.x - tushare package (`pip install tushare`) - Tushare Pro Token (free registration required) ### Author @DayDreammy <!-- greptile_comment --> <h2>Greptile Overview</h2> <h3>Greptile Summary</h3> This PR introduces a new `tushare-api` skill with documentation, an API reference, and two example Python scripts for querying Tushare Pro financial data (stocks/funds/futures/bonds/macro) and a bank-stocks analysis example. In the current state, the added artifacts under `skills/tushare-api/` are not usable because the `.md` and `.py` files are committed as base64-encoded single-line blobs rather than plaintext sources; the docs won’t render and the scripts won’t run until the decoded content is committed. <h3>Confidence Score: 1/5</h3> - Not safe to merge as-is because the added skill files are unusable artifacts. - All added Markdown and Python files appear to be base64-encoded blobs committed as a single line, so documentation won’t render and scripts won’t execute. Fix requires committing decoded plaintext sources (and normal newlines). - skills/tushare-api/README.md; skills/tushare-api/SKILL.md; skills/tushare-api/references/api-reference.md; skills/tushare-api/scripts/analyze_bank_stocks.py; skills/tushare-api/scripts/tushare_examples.py <!-- greptile_other_comments_section --> <sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub> **Context used:** - Context from `dashboard` - AGENTS.md ([source](https://app.greptile.com/review/custom-context?memory=a1d58d20-b4dd-4cbb-973a-9fd7824e1921)) <!-- /greptile_comment --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 17:16:38 -05:00
yindo closed this issue 2026-02-15 17:16:38 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: openclaw/clawhub#280