pierridotite/stonks-dashboard
À propos
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.
Gestion et financeWhat 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, ...)
Progression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalFeatures
- 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,.Lsuffix for the London Stock Exchange,.PAfor 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:
--config <path>(or-c <path>) on the command line./config.jsonin the current directory~/.stonks-dashboard/config.json- the
config.jsonbundled 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
Explorer des projets similaires
Chargement…
