Sponsored by Deepsite.site

ETF Analytics Dashboard

Created By
violettance6 months ago
Interactive dashboard for analyzing ETFs using both real time API data and historical data pulled through yfinance endpoints
Content

ETF Analytics Dashboard

A modern, interactive dashboard for analyzing Exchange-Traded Funds (ETFs) performance, market trends, and sentiment analysis. Built with Next.js, TypeScript, and Tailwind CSS, this dashboard provides comprehensive insights into the ETF market with a focus on professional UX, mobile responsiveness, and dark mode support.

ETF Dashboard Screenshot

Live Demo

Features

Overview

  • Total ETF Trading Volume tracking
  • Median 3-Year and 5-Year Returns analysis (with outlier filtering)
  • Dividend Yield Distribution visualization (responsive, readable bins)
  • Trailing P/E Ratio Distribution analysis

News Sentiment Analysis

  • Topic-based sentiment analysis with real-time news
  • Individual ETF sentiment tracking
  • Real-time sentiment scoring (-1 to +1)
  • Visual sentiment indicators and badges
  • Caching and rate limit handling for API usage

Real-Time Data

  • Live ETF price tracking (via Twelve Data API)
  • Daily price changes and percentage movements
  • 45-day historical price charts
  • Searchable ETF selection
  • Local storage caching for performance

Top Performers

  • Top 20 ETFs by 3-Year Returns, 5-Year Returns, and Dividend Yields
  • Interactive, category-filtered performance charts

Category Performance

  • Sector-wise performance analysis
  • Category-based asset distribution
  • 3-Year and 5-Year category returns
  • Combined performance metrics
  • Responsive chart layouts and dropdowns

User Experience & Design

  • Mobile Responsive: All layouts, charts, and controls adapt to mobile screens. Tab bar uses only icons on mobile, dropdowns are repositioned for clarity, and chart labels are optimized for readability.
  • Dark Mode: Seamless dark/light theme switching with persistent user preference.
  • Professional UI: Built with shadcn/ui and Tailwind CSS for a modern, accessible, and consistent look.
  • Performance: Local storage caching for API data, optimized rendering, and error handling.

Data Sources

  • ETF Data: Yahoo Finance (yfinance, local CSV)
  • Real-time Data: Twelve Data API
  • News Sentiment: Alpha Vantage API

Dataset Information

The dashboard analyzes data from 4,148 ETFs, including the following key metrics:

  • Symbol and Long Name
  • Category and Fund Family
  • Total Assets and Net Assets
  • Market Cap and Volume
  • Average Volume
  • Price Metrics (NAV, Previous Close, Open)
  • Performance Metrics (3-Year and 5-Year Average Returns)
  • Valuation Metrics (Trailing PE, Forward PE)
  • Dividend Information (Yield, Last Dividend Value)

Tech Stack

  • Frontend Framework: Next.js 14
  • Language: TypeScript
  • Styling: Tailwind CSS
  • Charts: Recharts
  • UI Components: shadcn/ui
  • State Management: React Hooks
  • Data Fetching: Native Fetch API
  • Data Collection: Python (yfinance, pandas)

Getting Started

  1. Clone the repository:
git clone https://github.com/yourusername/etf-dashboard.git
  1. Install dependencies:
pnpm install
  1. Set up environment variables:
cp .env.example .env.local

Add your API keys to .env.local:

NEXT_PUBLIC_ALPHA_VANTAGE_API_KEY=your_alpha_vantage_api_key_here
NEXT_PUBLIC_TWELVE_DATA_API_KEY=your_twelve_data_api_key_here
  1. Run the development server:
pnpm dev
  1. Open http://localhost:3000 in your browser.

API Keys Required

  • Alpha Vantage API key for news sentiment analysis
  • Twelve Data API key for real-time price data
  • Yahoo Finance API (no key required for local CSV)

Contributing

Contributions are welcome! Please feel free to submit a Pull Request for improvements, bug fixes, or new features.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Tavily Mcp
Serper MCP ServerA Serper MCP Server
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Playwright McpPlaywright MCP server
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Amap Maps高德地图官方 MCP Server
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
DeepChatYour AI Partner on Desktop
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
CursorThe AI Code Editor
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
ChatWiseThe second fastest AI chatbot™
WindsurfThe new purpose-built IDE to harness magic