Install
openclaw skills install tecent-finance-1-0-0Get stock prices, quotes, and compare stocks using Tencent Finance API. No API key required. Supports US stocks, China A-Shares, Hong Kong stocks. Optimized for use in mainland China.
openclaw skills install tecent-finance-1-0-0A Python CLI for fetching stock data from Tencent Finance API.
chmod +x /path/to/skills/tencent-finance/tfin
ln -sf /path/to/skills/tencent-finance/tfin /usr/local/bin/tfin # Optional: global access
tfin AAPL # Quick price
tfin price AAPL # Same as above
tfin quote MSFT
tfin compare AAPL,MSFT,GOOGL
tfin compare TSLA,NVDA
tfin search "tesla"
tfin search "bitcoin"
tfin help
tfin --help
# Quick price check
tfin AAPL
tfin TSLA
# Detailed quote
tfin quote NVDA
# Compare tech giants
tfin compare AAPL,MSFT,GOOGL,META,AMZN
# Search
tfin search "apple"
tfin search "bitcoin"
# China stocks
tfin sh000001 # 上证指数
tfin quote hk00700 # 腾讯控股
This tool uses Tencent Finance API (腾讯财经 API).
Why Tencent API?
Data includes:
| Market | Example | Status |
|---|---|---|
| US Stocks | AAPL, TSLA, NVDA | ✅ Supported |
| China A-Shares | sh000001, sz399001 | ✅ Supported |
| Hong Kong | hk00700, hk09988 | ✅ Supported |
| Crypto | BTC-USD, ETH-USD | ✅ Supported |
| India NSE/BSE | RELIANCE.NS, TCS.BO | ❌ Not supported |
| Feature | Yahoo Finance (yfinance) | Tencent Finance (tfin) |
|---|---|---|
| Mainland China Access | Often blocked/restricted | ✅ Direct access |
| Rate Limiting | Frequent | ✅ Stable |
| US Stocks | ✅ Supported | ✅ Supported |
| China A-Shares | Limited | ✅ Full support |
| Hong Kong Stocks | Supported | ✅ Supported |
| Indian Stocks | ✅ Supported | ❌ Not supported |
| Options/Dividends | Supported | ❌ Not supported |
pip3 install requests rich
usAAPL instead of AAPLMIT License
Created by Menrfa