Python Trading Toolkit

    by Timoranjes

    1

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

    Free

    Works with the AI tools you already use

    CCCGGVW

    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.

    Details

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    Security Scanned

    Passed automated security review

    Permissions

    Network Access

    Allowed Hosts

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

    File Scopes

    python-trading-toolkit/**

    Creator

    Frequently Asked Questions

    More Premium Skills

    Free