Skip to content
Proyectos

Acerca de

A cyberpunk-style, real-time financial monitor that runs directly in the terminal. It visualizes cryptocurrency and stock market data using ASCII charts and dynamic coloring.

Negocios y finanzas

Cómo se miden estas cifras

What you can do

  • Watchlist: crypto, stocks, ETFs and mutual funds, grouped by type
  • Trend chart: 1D, 7D, 30D and 90D periods with an auto-scaled axis
  • Details panel: price, period and daily change, highs/lows, 52-week range, volume, exchange
  • Currencies: prices shown in the instrument's own currency (USD, EUR, GBP, pence for LSE quotes, ...)

Crecimiento de estrellas medido

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

Stonks Dashboard

GitHub stars npm version CI License: MIT

Minimal real-time market dashboard for your terminal

Dashboard


Features

  • Watchlist: crypto, stocks, ETFs and mutual funds, grouped by type
  • Trend chart: 1D, 7D, 30D and 90D periods with an auto-scaled axis
  • Details panel: price, period and daily change, highs/lows, 52-week range, volume, exchange
  • Currencies: prices shown in the instrument's own currency (USD, EUR, GBP, pence for LSE quotes, ...)
  • Caching and rate limiting: smooth refreshes with fewer API errors, works offline from cache
  • Long lists: the watchlist scrolls to keep the selection visible, however many tickers you add

Quick Start

npx stonks-dashboard

Or install globally:

npm install -g stonks-dashboard
stonks-dashboard

Controls

Key Action
↑ / ↓ or k / j Navigate the watchlist
Home / End or g / G Jump to the first / last asset
1 2 3 4 Switch period (1D / 7D / 30D / 90D)
r Refresh now
q, Esc or Ctrl+C Quit

Configuration

Create your own config once, then edit it:

stonks-dashboard --init      # writes ~/.stonks-dashboard/config.json
{
  "tickers": ["BTC", "ETH", "AAPL", "TSLA", "SPY", "FXAIX", "BARC.L"],
  "cryptoIds": { "BTC": "bitcoin", "ETH": "ethereum" },
  "updateInterval": 120000
}
  • tickers: any symbol Yahoo Finance knows (stocks, ETFs, mutual funds, .L suffix for the London Stock Exchange, .PA for Paris, ...). Assets are grouped automatically by the type Yahoo reports.
  • cryptoIds: maps a ticker to its CoinGecko id. A ticker listed here is fetched from CoinGecko instead of Yahoo.
  • updateInterval: refresh period in milliseconds (minimum 10000).

The config file is looked up in this order:

  1. --config <path> (or -c <path>) on the command line
  2. ./config.json in the current directory
  3. ~/.stonks-dashboard/config.json
  4. the config.json bundled with the package
stonks-dashboard --config ~/portfolios/tech.json
stonks-dashboard --help

Data Sources

  • Crypto: CoinGecko API (free tier, requests are spaced 5 s apart)
  • Stocks, ETFs, funds: Yahoo Finance chart API

Price series are cached for 1 minute and crypto details for 30 minutes in ~/.stonks-dashboard/cache.json. When an API is unreachable the last cached values are shown, tagged [CACHE] and CACHED in the status bar.

Set STONKS_DEBUG=1 to log API and cache errors to ~/.stonks-dashboard/debug.log (the terminal is owned by the UI, so nothing is printed to it). Set STONKS_HOME to move that directory elsewhere.

Local Development

git clone https://github.com/pierridotite/stonks-dashboard.git
cd stonks-dashboard
npm install
npm start
npm test

Requires Node.js 18 or newer. See CONTRIBUTING.md.

License

MIT - See LICENSE

Star History

Explorar proyectos relacionados

Cargando…