Python Trading Toolkit

    3

    A quantitative finance toolkit for real-time market data, technical analysis, and portfolio risk management.

    Free

    16 installs5.0 (1 review)

    Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIGitHub CopilotGitHub CopilotGemini CLIGemini CLI+17 more

    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

    5.0
    1 review
    5
    1
    4
    0
    3
    0
    2
    0
    1
    0

    16 people have installed this skill.

    Trust & safety

    Security scanned

    Verified clean 3 months ago

    • Free to download with an account

    Listed3 months ago

    Frequently Asked Questions

    Free