Python Trading Toolkit
A quantitative finance toolkit for real-time market data, technical analysis, and portfolio risk management.
Free
Works with the AI tools you already use
See it in action
You say
Analyze NVDA stock. Check the current price, technical signals including moving average crossovers and RSI, and provide the annual risk metrics.
Your agent does
Technical Signals for NVDA
- BULLISH: Golden Cross (SMA 20 crossed above SMA 50)
- ALERT: Volume spike detected (Z-score: 2.4)
- RSI: 64.2 | MACD: 1.15 Current Price: $128.55 (+3.2%) Risk Metrics: Sharpe Ratio 1.85, Annualized Volatility 24%
About this skill
Professional Equity Analysis and Portfolio Management
Transform your AI agent into a sophisticated quantitative analyst. The Python Trading Toolkit provides a robust framework for real-time market data retrieval, technical indicator calculation, and deep portfolio attribution across global markets, including the US (NYSE/NASDAQ), Hong Kong (HKEX), and Mainland China (SSE/SZSE).
What it does
- Live Market Data: Interfaces with Yahoo Finance and Sina Finance APIs to pull real-time pricing, historical OHLCV data, and company fundamentals.
- Quantitative Metrics: Calculates critical risk-adjusted performance data including Sharpe/Sortino ratios, Alpha, Beta, and Maximum Drawdown.
- Technical Engine: Automatically detects chart patterns like Golden Crosses, RSI divergences, and Bollinger Band breakouts.
- Options Intel: Analyzes option chains to calculate Put/Call ratios and flag unusual volume-to-OI spikes.
- Portfolio Attribution: Performs multi-factor analysis to identify whether returns are driven by market movement or manager skill.
Why use this skill?
Standard LLM prompting often results in hallucinated stock prices or outdated data. This skill forces the agent to use validated Python libraries (yfinance, pandas, numpy) to perform actual calculations on live data. It moves beyond simple text generation to provide institutional-grade financial analysis with reproducible logic and structured outputs.
How to install
Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.
Reviews
16 people have installed this skill.
Trust & safety
Security scanned
Verified clean 3 months ago
- Free to download with an account