Skip to content

Bitbar plugin to show Bitcoin BTC, Ripple XRP, Ethereum ETH, and Litecoin LTC prices from Bitstamp

License

Notifications You must be signed in to change notification settings

elwarren/bitbar-bitstamp-btc-xrp

Repository files navigation

Bitbar plugin bitbar-bitstamp-btc-xrp

Show Bitcoin BTC, Ripple XRP, Ethereum ETH, and Litecoin LTC prices from public Bitstamp API

bitbar-bitstamp-btc-xrp

Do not make more than 600 requests per 10 minutes or Bitstamp will ban your IP address.

Setup

Trade data from last hour or last day, coin, and fiat configurable by filename:

bitstamp-btc-usd-h.1m.sh show btc to usd rate over last hour fetched every 1 minute

bitstamp-xrp-eur-d.5m.sh show xrp to eur rate over last 24 hours fetched every 5 minutes

bitstamp-ltc-usd-d.5m.sh show ltc to usd rate over last 24 hours fetched every 5 minutes

bitstamp-eth-usd-d.5m.sh show eth to usd rate over last 24 hours fetched every 5 minutes

Supported currency pairs:

  • btc usd
  • btc eur
  • eur usd
  • xrp usd
  • xrp eur
  • xrp btc
  • ltc usd
  • ltc eur
  • ltc btc
  • eth usd
  • eth eur
  • eth btc

Quick setup:

$ brew install jq
$ brew cask install bitbar
$ mkdir -p ~/bin/bitbar
$ cp bitstamp-btc-usd-h.1m.sh ~/bin/bitbar/bitstamp-btc-usd-h.1m.sh
$ cp bitstamp-btc-usd-h.1m.sh ~/bin/bitbar/bitstamp-xrp-usd-h.1m.sh
$ cp bitstamp-btc-usd-h.1m.sh ~/bin/bitbar/bitstamp-ltc-usd-h.1m.sh
$ cp bitstamp-btc-usd-h.1m.sh ~/bin/bitbar/bitstamp-eth-usd-h.1m.sh

License

MIT License, see LICENSE

"Bitcoin, btc, cryptocurrency icon" by AllienWorks licensed under Creative Commons (Attribution 3.0 Unported) from https://www.iconfinder.com/icons/1175251/bitcoin_btc_cryptocurrency_icon#size=16

"Ripple, xrp icon" by AllienWorks licensed under Creative Commons (Attribution 3.0 Unported) from https://www.iconfinder.com/icons/1175359/ripple_xrp_icon#size=16

"Litecoin, ltc icon" by AllienWorks licensed under Creative Commons (Attribution 3.0 Unported) from https://www.iconfinder.com/icons/1175272/litecoin_ltc_icon#size=16

"Eth, ether, ethereum icon" by AllienWorks licensed under Creative Commons (Attribution 3.0 Unported) from https://www.iconfinder.com/icons/1175230/eth_ether_ethereum_icon#size=16