GreyWyvern.com

Current Bitcoin Cash Price Image

Mar 26

This post showcases a PHP script that dynamically requests the current price of Bitcoin Cash (BCH) in USD and displays it as a customisable image. This image URL is suitable for embedding in, for example, forum post signatures, and posting in Slack, Discord or Telegram channels. By default, it will appear with a green logo and grey text.


URL: http://www.greywyvern.com/img/bch-price

By adding query variables, you can change both the logo colour and the text colour.

The logo can appear in white, black, green and orange by using the "c" variable:


URL: http://www.greywyvern.com/img/bch-price?c=w


URL: http://www.greywyvern.com/img/bch-price?c=b


URL: http://www.greywyvern.com/img/bch-price?c=g


URL: http://www.greywyvern.com/img/bch-price?c=o

The text can appear in white, grey and black by using the "t" variable"


URL: http://www.greywyvern.com/img/bch-price?t=w


URL: http://www.greywyvern.com/img/bch-price?t=g


URL: http://www.greywyvern.com/img/bch-price?t=b

The variables can also be used together with &. The following image selects the black logo with black text.


URL: http://www.greywyvern.com/img/bch-price?c=b&t=b

The price is fetched every 15 minutes from the Coinmarketcap.com API.

Let me know how you'd like me to improve this image generator!

Iguana no Musume / Iguana Girl  

Post commentNo Comments

Recent posts

  1. Current Bitcoin Cash Price Image Mar 2018
  2. Iguana no Musume / Iguana Girl Aug 2016
  3. What I'd Like To See In The Elder Scrolls VI - Part 2 Aug 2015
  4. What I'd Like To See In The Elder Scrolls VI Jul 2015
  5. Cyprus, and what capitalists want Mar 2013
  6. Archive

Items of Interest

Webcomics Reading List

Good Eats

Twitter RSS 2.0 Valid XHTML 1.0! Copyright © 2018 Brian Huisman AKA GreyWyvern
ContactSite mapSearch