TradeForge

Technical Analysis Platform

Real-time stock data, technical indicators, and interactive charting for informed trading decisions

Real-time Data Technical Indicators Interactive Charts Redis Caching

Quick Start

# Get latest technical indicators for a stock
GET /latest-features/TCS.BO

# Get historical data with pagination
GET /historical-data/TCS.BO?start_date=2025-01-01&end_date=2025-11-13

# Interactive chart with technical analysis
GET /plotting/TCS.BO/live?start_date=2025-10-01

API Endpoints

GET /latest-features/{symbol}
Real-time

Get the latest technical indicators and price data for a specific stock symbol.

Parameters:
  • {symbol} - Stock symbol (e.g., TCS.BO, RELIANCE.BO, AAPL)
Example Request:
GET /latest-features/TCS.BO
Example Response:
{
  "symbol": "TCS.BO",
  "latest_features": {
    "basic_info": {
      "price": 3105.70,
      "timestamp": "2025-11-13 12:49:46"
    },
    "technical_indicators": {
      "sma_20": 3033.66,
      "sma_50": 3031.65,
      "sma_200": 3326.27
    }
  }
}
GET /historical-data/{symbol}
Cached

Retrieve historical stock data with Redis caching and pagination support.

Parameters:
  • {symbol} - Stock symbol
  • start_date - Start date (YYYY-MM-DD)
  • end_date - End date (YYYY-MM-DD)
  • offset - Pagination offset (default: 0)
  • limit - Pagination limit (default: 50)
Example Request:
GET /historical-data/TCS.BO?start_date=2025-01-01&end_date=2025-11-13&offset=0&limit=100
Features:
  • ✅ Redis caching (60 seconds)
  • ✅ Pagination support
  • ✅ Automatic data freshness
GET /plotting/{symbol}/live
Interactive

Interactive Chart.js visualization with technical indicators and real-time data.

Parameters:
  • {symbol} - Stock symbol
  • start_date - Start date (YYYY-MM-DD)
  • use_cache - Use cached data (default: true)
Example Request:
GET /plotting/TCS.BO/live?start_date=2025-10-01
Features:
  • ✅ Interactive Chart.js visualization
  • ✅ Multiple technical indicators (SMA 20, 50, 100, 200)
  • ✅ Price lags (1, 2, 3 days)
  • ✅ Current values display
  • ✅ Redis caching (60 seconds)
  • ✅ Automatic end date (today)

Supported Symbols Example

Indian Stocks (BSE)
  • TCS.BO - Tata Consultancy Services
  • RELIANCE.BO - Reliance Industries
  • HDFCBANK.BO - HDFC Bank
  • INFY.BO - Infosys
International Stocks
  • AAPL - Apple Inc.
  • TSLA - Tesla Inc.
  • MSFT - Microsoft
  • GOOGL - Alphabet (Google)

Technical Indicators

Moving Averages

SMA 5, 10, 20, 50, 100, 200 days

Price Lags

1, 2, 3 day price history

Real-time Data

Live prices from yfinance


Built with FastAPI, Redis, Chart.js, and yfinance | GitHub Repository | A project by Raj Nair