Skip to content
プロジェクト

概要

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.

ビジネス・金融

この数値の測り方

できること

  • 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, ...)

計測したスター増加

24時間
0
7日間
0
15日間
0
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

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

関連プロジェクトを探す

読み込み中…