# Inky pHAT Bitcoin (and other cryptocurrencies) price charts

**URL:** <https://forums.pimoroni.com/t/inky-phat-bitcoin-and-other-cryptocurrencies-price-charts/5822>\
**Category:** Projects\
**Created:** [August 31, 2017, 11:46am UTC](https://forums.pimoroni.com/t/inky-phat-bitcoin-and-other-cryptocurrencies-price-charts/5822 "2017-08-31T11:46:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DurandA](https://avatars.discourse-cdn.com/v4/letter/d/74df32/32.png) [@DurandA](https://forums.pimoroni.com/u/DurandA)\
**Post date:** [August 31, 2017, 11:46am UTC](https://forums.pimoroni.com/t/inky-phat-bitcoin-and-other-cryptocurrencies-price-charts/5822/1 "2017-08-31T11:46:06Z")

</div>

I created a CLI tool to draw candlestick charts on the Inky pHAT.

Basically, you pass as parameter a currency pair (e.g. ‘XXBTZUSD’ for Bitcoin/USD) and it display the price evolution during the last 12 hours. Currently it only fetch data from Kraken API, but any pull request in welcome.

This project is distributed as a Python 3 command line utility. You can test it without the `inkyphat` module installed using the `--output` argument which will generate an image file.

```auto
usage: cryptochart.py [-h] [--pair PAIR] [--flip] [--output OUTPUT]

optional arguments:
  -h, --help show this help message and exit
  --pair PAIR currency pair (default: XETHZUSD)
  --flip rotate the display (default: False)
  --output OUTPUT save plot as png (default: None)

```

![](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/4/4eee1f6128195cd07d3194518cb135d734384077.jpg)

> Final result on the Inky-pHAT

The code is [available on GitHub](https://github.com/DurandA/inky-cryptochart).

---

<div class="post-metadata">

**Author:** ![DurandA](https://avatars.discourse-cdn.com/v4/letter/d/74df32/32.png) [@DurandA](https://forums.pimoroni.com/u/DurandA)\
**Post date:** [August 31, 2017, 11:46am UTC](https://forums.pimoroni.com/t/inky-phat-bitcoin-and-other-cryptocurrencies-price-charts/5822/2 "2017-08-31T11:46:58Z")

</div>

Please check my [blog post](http://redcorner.io/blog/draw-bitcoin-and-ethereum-price-chart-on-e-paper-display/) for more informations.

---

<div class="post-metadata">

**Author:** ![sandyjmacdonald](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/sandyjmacdonald/32/393_2.png) [@sandyjmacdonald](https://forums.pimoroni.com/u/sandyjmacdonald)\
**Post date:** [August 31, 2017, 11:57am UTC](https://forums.pimoroni.com/t/inky-phat-bitcoin-and-other-cryptocurrencies-price-charts/5822/3 "2017-08-31T11:57:09Z")

</div>

WOW! Very nice work!!

---

<div class="post-metadata">

**Author:** ![sandyjmacdonald](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/sandyjmacdonald/32/393_2.png) [@sandyjmacdonald](https://forums.pimoroni.com/u/sandyjmacdonald)\
**Post date:** [August 31, 2017, 12:09pm UTC](https://forums.pimoroni.com/t/inky-phat-bitcoin-and-other-cryptocurrencies-price-charts/5822/4 "2017-08-31T12:09:04Z")

</div>

> <https://twitter.com/pimoroni/status/903227555750301696>

:-)

---

<div class="post-metadata">

**Author:** ![DurandA](https://avatars.discourse-cdn.com/v4/letter/d/74df32/32.png) [@DurandA](https://forums.pimoroni.com/u/DurandA)\
**Post date:** [September 11, 2017, 7:27am UTC](https://forums.pimoroni.com/t/inky-phat-bitcoin-and-other-cryptocurrencies-price-charts/5822/5 "2017-09-11T07:27:12Z")

</div>

Thank you for the featuring of my project.

I updated the instructions to use a cronjob to refresh the display.
