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