Chinese financial data access using AkShare library for OpenClaw
npx skills add https://github.com/succ985/openclaw-akshare-skill --skill akshareInstala esta habilidad con la CLI y comienza a usar el flujo de trabajo SKILL.md en tu espacio de trabajo.
Chinese financial data access using AkShare library for OpenClaw.
This skill provides easy access to Chinese financial market data through the AkShare library. It supports real-time and historical data for:
pip install akshare
Or use the provided installation script:
bash scripts/install_akshare.sh
Copy this skill to your OpenClaw workspace:
cp -r openclaw-akshare-skill /path/to/openclaw/workspace/skills/akshare
import akshare as ak
# Get all A-shares real-time data
df = ak.stock_zh_a_spot_em()
print(df.head())
# Get historical daily data for a specific stock
df = ak.stock_zh_a_hist(
symbol="000001",
period="daily",
start_date="20240101",
end_date="20241231",
adjust="qfq" # Forward adjustment
)
print(df.tail())
daily - Daily (日线)weekly - Weekly (周线)monthly - Monthly (月线)qfq - Forward adjustment (前复权)hfq - Backward adjustment (后复权)"" - No adjustment (不复权)See the scripts/ directory for more examples:
example_usage.py - Common usage examplestest_basic.py - Basic functionality teststest_quick.py - Quick start examplesMIT License - see LICENSE file for details
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
See CHANGELOG.md for version history.
For issues and questions:
scripts/ directory