Overview
- Skill Key
- alphafactor/tushare
- Author
- alphafactor
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/alphafactor/tushare
- Latest Commit SHA
- 41eca08a06336cdef2b24a93ef4eafb2e578b8e8
Fetch Chinese stock and futures market data via Tushare API. Supports stock quotes, futures data, company fundamentals, and macroeconomic indicators. Use when the user needs financial data from Chinese markets. Requires TUSHARE_TOKEN environment variable.
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 tushare 技能。 若已安装,则直接安装 tushare 技能。
# Tushare 金融数据接口 获取中国 A 股市场和期货市场的实时及历史数据。 ## 前提条件 ### 1. 注册 Tushare 账号 访问 https://tushare.pro/register 注册账号并获取 API Token。 ### 2. 配置 Token ```bash # 添加到 ~/.zshrc export TUSHARE_TOKEN="your-api-token-here" ``` 然后执行: ```bash source ~/.zshrc ``` ### 3. 安装依赖 ```bash pip3 install tushare pandas --user ``` ## 快速开始 ### 获取股票列表 ```bash python3 scripts/market.py stock_basic ``` ### 获取日线行情 ```bash python3 scripts/market.py daily --ts_code 000001.SZ --start_date 20240101 --end_date 20240131 ``` ### 获取实时行情 ```bash python3 scripts/market.py realtime 000001 ``` ## 股票数据 ### 股票基础信息 ```bash python3 scripts/market.py stock_basic python3 scripts/market.py stock_basic --exchange SSE # 仅上交所 python3 scripts/market.py stock_basic --exchange SZSE # 仅深交所 ``` ### 日线行情 ```bash # 获取单只股票近期数据 python3 scripts/market.py daily --ts_code 000001.SZ # 指定日期范围 python3 scripts/market.py daily --ts_code 600519.SH --start_date 20240101 --end_date 20240131 # 获取指定交易日全市场数据 python3 scripts/market.py daily --trade_date 20240115 ``` ### 周线行情 ```bash # 获取周线数据 python3 scripts/market.py weekly --ts_code 000001.SZ # 指定日期范围 python3 scripts/market.py weekly --ts_code 600519.SH --start_date 20230101 --end_date 20240131 ``` ### 月线行情 ```bash # 获取月线数据 python3 scripts/market.py monthly --ts_code 000001.SZ # 指定日期范围 python3 scripts/market.py monthly --ts_code 600519.SH --start_date 20200101 --end_date 20240131 ``` **股票代码格式**: - 深交所:`000001.SZ`, `000002.SZ`, `300001.SZ` (创业板) - 上交所:`600000.SH`, `600519.SH`, `688001.SH` (科创板) ### 实时行情 ```bash python3 scripts/market.py realtime 000001 python3 scripts/market.py realtime 600519 ``` ### 资金流向 ```bash # 获取指定股票资金流向 python3 scripts/market.py moneyflow --ts_code 000001.SZ # 获取指定日期全市场资金流向 python3 scripts/market.py moneyflow --trade_date 2024...
capt-marbles
Task Router
capncoconut
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay, check marketplace stats, or manage agent credentials. Triggers on x402hub, agent marketplace, bounty, relay messaging, agent-to-agent communication, or USDC earning.
capevace
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
captchasco
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.
carol-gutianle
name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}
canbirlik
Controls Wiz smart bulbs (turn on/off, RGB colors, disco mode) via local WiFi.