Current Bitcoin Cash Price Image

Mar 26, 2018

Update: The Coinmarketcap API where the data driving these images came from now requires a key, so the images below no longer work (all display $0.00). Ah well, it was fun while it lasted.

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.

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:

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

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

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!


Comments closed

Recent posts

  1. Customize Clipboard Content on Copy: Caveats Dec 2023
  2. Orcinus Site Search now available on Github Apr 2023
  3. Looking for Orca Search 3.0 Beta Testers! Apr 2023
  4. Simple Wheel / Tire Size Calculator Feb 2023
  5. Dr. Presto - Now with MUSIC! Jan 2023
  6. Archive