Skip to content

Repository files navigation

ChartLedger

Fast, SEO-friendly financial charts for crypto and stocks — built with Next.js, Tailwind CSS, and TradingView Lightweight Charts.

Features

  • Candlestick charts with volume and multiple timeframes
  • Live crypto market data via the Binance public API
  • Stock/index placeholders ready for Twelve Data or Polygon.io
  • Programmatic SEO routes (/chart/btc, /chart/aapl) with auto-generated metadata
  • Dynamic sitemap.xml and robots.txt
  • Monetization layout: AdSense slots, affiliate CTAs, CPA buttons with fallback URLs
  • Environment-based config for Vercel or any Node host

Tech stack

  • Next.js (App Router)
  • Tailwind CSS
  • TradingView Lightweight Charts
  • TypeScript

Getting started

npm install
npm run dev

Open http://localhost:3000, then try /chart/btc or /chart/aapl.

Environment variables

Copy .env.example to .env.local and fill in values as needed:

Variable Description
NEXT_PUBLIC_SITE_URL Canonical site URL (sitemap + metadata)
TWELVE_DATA_API_KEY / POLYGON_API_KEY Optional stock/index APIs
NEXT_PUBLIC_AFFILIATE_* / NEXT_PUBLIC_CPA_* Affiliate and CPA links
NEXT_PUBLIC_ADSENSE_CLIENT AdSense publisher id

Scripts

npm run dev      # local development
npm run build    # production build
npm run start    # serve production build
npm run lint     # ESLint

License

MIT

About

ChartLedger — Next.js financial charts with TradingView Lightweight Charts, Binance data, and programmatic SEO

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages