AI automation skill: Tushare-Finance-Skill-for-Claude-Code
git clone https://github.com/StanleyChanH/Tushare-Finance-Skill-for-Claude-Code.gitAI automation skill: Tushare-Finance-Skill-for-Claude-Code
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/StanleyChanH/Tushare-Finance-Skill-for-Claude-CodeCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
I need to automate financial data analysis using Tushare in Python. Generate a script that fetches stock data for [COMPANY] in the [INDUSTRY] sector from [START_DATE] to [END_DATE], calculates key financial metrics like P/E ratio, and exports the results to a CSV file. Include error handling and logging.
```python
import tushare as ts
import pandas as pd
# Initialize Tushare with your token
pro = ts.pro_api('[YOUR_TUSHARE_TOKEN]')
# Fetch stock data for Apple Inc. in the Technology sector
try:
df = pro.daily(ts_code='000001.SZ', start_date='2023-01-01', end_date='2023-12-31')
df['P/E Ratio'] = df['close'] / df['pe'] # Calculate P/E Ratio
df.to_csv('apple_stock_data.csv', index=False)
print("Data fetched and saved successfully.")
except Exception as e:
print(f"An error occurred: {e}")
```Your one-stop shop for church and ministry supplies.
AI assistant built for thoughtful, nuanced conversation
Automate your browser workflows effortlessly
IronCalc is a spreadsheet engine and ecosystem
Business communication and collaboration hub
Customer feedback management made simple