2

    python-trading-toolkit

    by Zicheng Liao

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

    Updated May 2026
    0 installs

    Free

    One-time purchase

    Included in download

    • Downloadable skill package
    • 1 permission declared
    • Instant install

    See it in action

    A real example of what this skill takes in and produces.

    Sample output

    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.

    Use Cases

    • Calculate Sharpe ratios and drawdowns for any custom portfolio.
    • Scan US and Asian markets for technical signals like Golden Crosses.
    • Monitor option chains for unusual volume and high implied volatility.
    • Generate multi-factor attribution reports to identify sources of Alpha.

    Reviews

    No reviews yet - be the first to share your experience.

    Only users who have downloaded or purchased this skill can leave a review.

    Security Scanned

    Passed automated security review

    Permissions

    Network Access

    Allowed Hosts

    hq.sinajs.cn
    finance.sina.com.cn

    File Scopes

    python-trading-toolkit/**

    Frequently Asked Questions

    More Premium Skills

    Free