Skip to main content

A Python package for technical analysis of financial markets

Project description

Technical Indicator Analysis Tool

This tool provides mcp server for analyzing technical indicators of ETFs and stocks. It utilizes the akshare library to fetch historical data and calculates technical indicators such as RSI, Bollinger Bands, and moving averages. The tool supports both ETF and stock historical data analysis.

API Documentation

Interfaces provided with mcp server:

analyze_etf_technical

@mcp.tool()
def analyze_etf_technical(etf_code='510300'):
    """
    ETF technical indicator analysis tool
    :param etf_code: ETF code (e.g. '510300')
    :return: Markdown table containing technical indicators (last 5 records)
    """

Parameters:

  • etf_code: ETF code, defaults to '510300'(CSI 300 ETF)

Returns:

  • Markdown table containing following technical indicators:
    • Price data
    • RSI indicator
    • Bollinger Bands
    • Moving averages

Example:

result = analyze_etf_technical('510300')
print(result)

analyze_stock_hist_technical

@mcp.tool()
def analyze_stock_hist_technical(stock_code='000001'):
    """
    Stock historical data technical indicator analysis tool
    :param stock_code: Stock code (e.g. '000001')
    :return: Markdown table containing technical indicators (last 5 records)
    """

Parameters:

  • stock_code: Stock code, defaults to '000001'(Ping An Bank)

Returns:

  • Markdown table containing following technical indicators:
    • Price data
    • RSI indicator
    • Bollinger Bands
    • Moving averages

Example:

result = analyze_stock_hist_technical('000001')
print(result)

Installation

pip install technical-analysis-mcp

MCP Configuration Example

{
  "mcpServers": {
    "technical-analysis-mcp": {
      "command": "technical-analysis-mcp",
      "args": []
    }
  }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

technical_analysis_mcp-0.1.2.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

technical_analysis_mcp-0.1.2-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file technical_analysis_mcp-0.1.2.tar.gz.

File metadata

File hashes

Hashes for technical_analysis_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b19d62574f15b2c45bdbab64124a06c31f61dee5a2d73228bd7d8b86cd6f0e49
MD5 0b2e53e5a329536ce9fa41d38887c9bc
BLAKE2b-256 d7b49be592199a672b5982700cfa8ebb4ba74117961843ee78635eacb6947cef

See more details on using hashes here.

File details

Details for the file technical_analysis_mcp-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for technical_analysis_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 66a008bb27efd7f5f51b9e19a1817c3b930d8c9ac58ca76de70066e71ff146b3
MD5 cc7ac1a75280e3d21dab56e03a14b5d8
BLAKE2b-256 dee0725ea15687c60d16a7a978b38448079997a0b291508710e98739095a703e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page