Git Product home page Git Product logo

cryptocharts's Introduction

cryptocharts

Cryptocurrency stats and charts displayed in your terminal.

Table of Contents

Install

Make sure to have golang installed, then do:

go get -u github.com/miguelmota/cryptocharts

Dependencies

  • ncurses library

Debian/Ubuntu

sudo apt-get install libncursesw5-dev

RedHat/Fedora/CentOS

sudo yum install ncurses-devel

Usage

$ cryptocharts -help

  -chart-height uint
        Line chart height: .ie. 15 | 20 | 25 | 30 (default 20)
  -coin string
        Cryptocurrency name. ie. bitcoin | ethereum | litecoin | etc... (default "bitcoin")
  -color string
        Primary color. ie. green | cyan | magenta | red | yellow | white (default "green")
  -date string
        Chart date range. ie. 1h | 1d | 2d | 7d | 30d | 2w | 1m | 3m | 1y (default "7d")
  -global
        Show global market data.
  -refresh uint
        How often to refetch data in seconds: .ie. 30, 60 (default 60)
  -limit uint
        Limit number of cryptocurrencies to return for table. ie. 10 | 25 | 50 | 100 (default 50)
  -table
        Show the top 50 cryptocurrencies in a table.

Examples

Chart

Here's an example of getting latest Ethereum stats, and chart data for the last 30 days:

$ cryptocharts -coin ethereum -date 30d

Here's an example of how you can set the primary color for the dashboard:

$ cryptocharts -coin bitcoin -date 1d -color white

Here's an example of displaying global market data only:

$ cryptocharts -global

Table

Here's an example of displaying the top 100 cryptocurrencies stats in a table:

$ cryptocharts -table -limit 100 -color green

Table commands

List of shortcuts:

Key Action
<up> navigate up
<down> navigate down
<ctrl-u> page up
<ctrl-d> page down
<enter> visit highlighted coin on CoinMarketCap
<space> alias to <enter>
h toggle [h]elp
j alias to <down>
k alias to <up>
r sort by [r]ank
n sort by [n]ame
s sort by [s]ymbol
p sort by [p]rice
m sort by [m]arket cap
v sort by 24 hour [v]olume
1 sort by [1] hour change
2 sort by [2]4 hour change
7 sort by [7] day change
t sort by [t]otal supply
a sort by [a]vailable supply
l sort by [l]ast updated
q [q]uit
<esc> alias to quit
<ctrl-c> alias to quit
? alias to help

Help screen

FAQ

  • Q: Where is the data from?

  • Q: What coins does this support?

  • Q: How often is the data polled?

    • A: Data gets polled once every minute by default.
  • Q: How can I get multiple dashboards at once?

    • A: Use a window multiplexer, such as tmux or screen.
  • Q: I get install errors regarding ncurses.

    • A: Make sure to have installed the required libraries, discussed in the Install section.
  • Q: I installed cryptocharts without errors but the command is not found.

    • A: Make sure your GOPATH and PATH is set correctly.
      export GOPATH=$HOME/go
      export PATH=$PATH:$GOPATH/bin

License

MIT

cryptocharts's People

Contributors

miguelmota avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.