• Stars
    star
    300
  • Rank 138,870 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 7 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Bitcoin chart for the terminal as command line util

bitcoin-chart-cli

npm License: MIT License: MIT Issue Count Known Vulnerabilities

Bitcoin chart for the terminal as command line util.
For a list of supported cryptocurrencies see coins.
You might also be interested in a similar project of
mine wallstreet, which provides information about
stocks instead of cryptocurrencies.

Requirements

  • node 8.0 or higher
  • npm or yarn

Usage

# install
npm install bitcoin-chart-cli -g

# (alternative) install with yarn
yarn global add bitcoin-chart-cli

# (alternative) run without install
npx bitcoin-chart-cli

# run default
bitcoin-chart-cli

# run with options
bitcoin-chart-cli --coin ETH -d 360 -w 80 -h 20

# run with your own api key for higher requests limits
export CRYPTOCOMPARE_API_KEY=your_api_key
bitcoin-chart-cli --coin XRP -ti RSI SMA BB EMA MACD

Options

bitcoin-chart-cli --help


  Usage: index [options]


  Options:

  -V, --version                         output the version number
  -d, --days <n>                        number of days the chart will go back
  --hours <n>                           number of hours the chart will go back
  --mins <n>                            number of minutes the chart will go back
  -w, --width <n>                       max terminal chart width
  -h, --height <n>                      max terminal chart height
  --max <n>                             max y-axis value
  --min <n>                             min y-axis value
  --min-range <n>                       min range between min and max y-axis value
  -c, --coin <string>                   specify the coin e.g. ETH (default: "BTC")
  --currency <string>                   specify the trading pair currency (default: "USD")
  -l, --list                            list all available coins
  -t, --toplist <n>                     list of top n coins
  --disable-legend                      disable legend text
  -ti, --technical-indicator <type...>  add a technical indicator: RSI SMA BB EMA MACD
  -h, --help                            display help for command

Examples

bitcoin-chart-cli

Create terminal splits (tmux) with watch for live charts the unix way
watch -n 60 bitcoin-chart-cli --mins 30 --width 60

In combination with conky
conky.text = [[ ${execi 120 bitcoin-chart-cli --coin ETH -w 140 -h 15} ]];
bitcoin-chart-cli --toplist 15
Rank  Name                        Price     MktCap     Volume   Change/24h
--------------------------------------------------------------------------
1.    Bitcoin                 $57844.00    1081.8B      25.7B        4.05%
2.    Ethereum                 $3521.65     407.7B      15.0B        2.47%
3.    Binance Coin              $630.03      96.7B       2.2B        1.04%
4.    Dogecoin                    $0.65      84.2B      11.5B       14.61%
5.    XRP                         $1.60      72.6B       4.2B        0.90%
6.    Tether                      $1.00      54.8B      80.8B       -0.00%
7.    Cardano                     $1.66      53.0B       3.0B        8.59%
8.    Polkadot                   $40.99      40.6B       1.3B        1.20%
9.    Bitcoin Cash             $1341.36      25.1B       2.9B       -4.85%
10.   Litecoin                  $344.02      23.0B       4.0B        5.05%
11.   Uniswap                    $40.36      21.1B     390.2M        0.70%
12.   Chainlink                  $49.73      20.8B       1.2B        8.07%
13.   VeChain                     $0.23      15.0B       1.5B       14.39%
14.   Stellar                     $0.64      14.7B     932.3M        1.50%
15.   USD Coin                    $1.00      14.4B     736.5M       -0.05%

image

Charts with technical indicators
bitcoin-chart-cli --coin XRP -ti RSI SMA BB EMA MACD

More Repositories

1

githut

Github Language Statistics
JavaScript
778
star
2

wallstreet

Stock Quotes and Charts for the Terminal
HTML
89
star
3

nano

Mirror of git://git.sv.gnu.org/nano.git
C
74
star
4

awesome-category-theory

A curated list of awesome Category Theory resources.
61
star
5

asciichart

ASCII line charts in terminal β•­β”ˆβ•― Haskell port of kroitor/asciichart
Haskell
27
star
6

dotfiles

Personal set of vim, zsh, git configs and scripts.
Shell
27
star
7

imdb-series-chart

Visualize the IMDB rating of every episode for any TV series.
JavaScript
24
star
8

ndjson-to-json

Converts NDJSON to JSON
JavaScript
17
star
9

kalonline-mod-collection

Kal Online game reverse engineering / modding
C++
13
star
10

babel-preset-php

Mirror of https://gitlab.com/kornelski/babel-preset-php
JavaScript
9
star
11

monad-in-pictures-german

Funktoren, Applikative und Monaden in Bildern
8
star
12

cryptocurrency-calculator-cli

Cryptocurrency Converter Calculator as command line util
JavaScript
8
star
13

jdownloader

Mirror of svn://svn.jdownloader.org/jdownloader/trunk
Java
4
star
14

MetaGer

Mirror of https://gitlab.metager3.de/open-source/MetaGer
PHP
4
star
15

grendy

Github Trending Repositories
PureScript
4
star
16

haskell-logs

Haskell freenode IRC logs
3
star
17

cnbc-market

Stock market information from CNBC
JavaScript
3
star
18

scidvspc

Mirror of svn://svn.code.sf.net/p/scidvspc/code
Tcl
2
star
19

blog

JavaScript
2
star
20

grendel

Grendel is the GitHub Trends API for Grendy
Haskell
2
star
21

yaimdba

Yet another IMDB API
Dockerfile
2
star
22

nightcap

Cryptocurrency Multiple Time Frame RSI Alert
Python
2
star
23

filezilla

Mirror of https://svn.filezilla-project.org/svn/FileZilla3/trunk
C++
1
star
24

lfs

Mirror of svn://svn.linuxfromscratch.org/LFS/trunk/book
XSLT
1
star
25

chessx

Mirror of svn://svn.code.sf.net/p/chessx/code/trunks
C++
1
star
26

dotfiles-mobile

Dotfiles notebook
Shell
1
star
27

wss-recorder-haskell

Record all data from a websocket stream into a mongodb.
Haskell
1
star
28

spon-market

SPON market indicies
JavaScript
1
star
29

jdownloader-client

Mirror of svn://svn.jdownloader.org/jdownloader/MyJDownloaderClient
Java
1
star
30

vim-swap-lines

Move entire line up and down in Vim ( like Ctrl + Shift + Up / Down in other Editors )
Vim Script
1
star
31

gnuchess

Mirror of svn://svn.sv.gnu.org/chess/trunk
C++
1
star
32

cnn-market

Stock market information from CNN
JavaScript
1
star
33

valgrind

Mirror of svn://svn.valgrind.org/valgrind/trunk
C
1
star
34

codeblocks

Mirror of svn://svn.code.sf.net/p/codeblocks/code/trunk
C++
1
star
35

wss-recorder

Record all data from a websocket stream into a mongodb.
JavaScript
1
star