# Technical Analysis API - Indicators, Charts & PDF/Web Reports

Open, no-auth HTTP API and MCP server that generates a technical-analysis report for any Yahoo Finance symbol - EMAs, MACD, RSI and Bollinger Bands on daily and weekly timeframes, charted and interpreted by Google Gemini Vision, delivered as professional PDF and HTML reports. Built for AI agents first, humans second: every page here has a Copy-as-Markdown button so you can hand it straight to your agent.

Kind: REST / HTTP API, MCP Server (AI agents), Analytics API, Open - no auth
Base URL: https://ta.tigzig.com
Docs: https://ta.tigzig.com/docs  ·  OpenAPI: https://ta.tigzig.com/openapi.json
Full page: https://www.tigzig.com/apis/technical-analysis

## Overview

A technical-analysis report generator over Yahoo Finance price data. Give it a symbol and it fetches daily + weekly history, computes EMAs, MACD, RSI and Bollinger Bands, charts them, has Google Gemini Vision interpret the charts in plain English, and returns a professional PDF + HTML report. Three ways in:
- REST - POST /api/technical-analysis for any HTTP client.
- MCP - the same report as an agent tool call (see below).
- Hosted UIs - a chat agent (https://rex.tigzig.com/n8n-tech-analysis), a web form, and an Excel (xlwings Lite) front-end.

AI agents: open (no auth), listed in the RFC 9727 catalog at https://api.tigzig.com/.well-known/api-catalog ; OpenAPI at https://ta.tigzig.com/openapi.json .

Price data comes from the companion Yahoo Finance API (/apis/yahoo-finance). PDF rendering by the Markdown to PDF service (/markdown-to-pdf).

## MCP Server (for AI agents)

Connect an AI agent and let it generate a technical-analysis report. No auth. Three transports:
- https://ta.tigzig.com/v1/mcp/http - Streamable HTTP (recommended; MCP 2025-03-26).
- https://ta.tigzig.com/v1/mcp/sse - SSE (legacy fallback).
- https://ta.tigzig.com/mcp - original SSE endpoint (back-compat).

Example prompt: "Analyze MSFT with RSI, MACD and Bollinger Bands for the past 6 months and give me a PDF report."
Add to Claude.ai: Settings -> Connectors -> Add custom connector -> paste the Streamable HTTP URL (fall back to SSE) -> approve. Same URLs work for Cursor, n8n, any MCP client.

## How it works

- Data - daily + weekly price history from the Yahoo Finance FastAPI service (yfin-h.tigzig.com).
- Indicators - EMAs, MACD, RSI, Bollinger Bands; custom charts per timeframe.
- Interpretation - charts processed by Google Gemini Vision for plain-English commentary.
- Output - Markdown converted to PDF + HTML via the ReportLab service.
- FastAPI + fastapi-mcp, Flask web UI, deployed on Coolify (Hetzner) behind Cloudflare.

## Build your own (open source)

Clone and run your own:
1. Clone https://github.com/amararun/shared-fastapi-mcp-technical-analysis
2. pip install -r requirements.txt
3. Set GEMINI_API_KEY and GEMINI_MODEL_NAME=gemini-2.5-flash
4. uvicorn main:app --host 0.0.0.0 --port 8000 --timeout-keep-alive 900

Companion services: the Yahoo Finance API (/apis/yahoo-finance, price data) and the ReportLab Markdown to PDF server (/markdown-to-pdf, report rendering).

Self-hosting a public MCP server is your responsibility for security - a public endpoint needs edge rate limiting, abuse detection, secret hygiene. Full checklist: https://www.tigzig.com/security

## API Endpoints (REST / HTTP)

Base URL: `https://ta.tigzig.com`

### POST /api/technical-analysis
Create Technical Analysis
Example: curl -X POST "https://ta.tigzig.com/api/technical-analysis"
