Pages:
Author

Topic: Bitcoin Price Image Generator - page 2. (Read 7057 times)

sr. member
Activity: 252
Merit: 250
April 25, 2013, 08:38:04 PM
#9
Any Chance you could make one similar but for the popular alt coins, I would definitely give you a nice tip for that Cheesy
hero member
Activity: 720
Merit: 525
March 11, 2013, 02:37:56 PM
#8
I wanted a little weekend project and it seemed like there was a need for this!

There sure is!

Nice work.

This one is decent too:
 - http://btcticker.appspot.com/mtgox/1btc2usd.png


 - http://btcticker.appspot.com/mtgox/100.00gbp.png


Oh, cool! I hadn't seen that. Some pretty cool features in that one. I think mine does a better job at blending in as text (although that still needs more work), but I'm glad to see there's another option for people wanting to do more sophisticated things!
legendary
Activity: 2506
Merit: 1010
March 11, 2013, 07:54:14 AM
#7
I wanted a little weekend project and it seemed like there was a need for this!

There sure is!

Nice work.

This one is decent too:
 - http://btcticker.appspot.com/mtgox/1btc2usd.png


 - http://btcticker.appspot.com/mtgox/100.00gbp.png
Vod
legendary
Activity: 3668
Merit: 3010
Licking my boob since 1970
March 10, 2013, 06:28:21 PM
#6
Some users may not want precision to 4 decimal places.

You could add a variable to let the price auto round up(down?) to the nearest precision wanted.

It would add a bit more stability when the price fluctuates so much.
hero member
Activity: 720
Merit: 525
March 10, 2013, 05:26:09 PM
#5
Middle link in your sig is broken - missing the .com

Thanks Smiley
edd
donator
Activity: 1414
Merit: 1002
March 10, 2013, 05:25:25 PM
#4
Middle link in your sig is broken - missing the .com
hero member
Activity: 720
Merit: 525
March 10, 2013, 04:32:41 PM
#3
Shows up great on my thread!  Thanks for this Smiley

On this note, the prices seem to come out a tad higher than what MT Gox is saying...hrmmm

Cool! One thing (to be safe) might be to put the USD price there in text too, just in case something goes wrong with my tool. Either if the image won't load or the price is wrong because of some error on my part. I wouldn't want you to feel obligated to sell something at a crazy low price if I screwed up!

The price could differ from Mt Gox slightly because it uses the 24 hour average, or because I'm caching the exchange rate for five minutes. Hopefully this never causes a significant discrepancy.
legendary
Activity: 1078
Merit: 1003
March 10, 2013, 04:25:13 PM
#2
Shows up great on my thread!  Thanks for this Smiley

On this note, the prices seem to come out a tad higher than what MT Gox is saying...hrmmm
hero member
Activity: 720
Merit: 525
March 10, 2013, 04:19:04 PM
#1
I wanted a little weekend project and it seemed like there was a need for this!

The bitcoin price image generator is a simple tool that creates a dynamic image of a price in BTC, based on a fixed USD price. The resulting image can be embedded in a forum post, for example, and it will always show an up-to-date BTC equivalent price. This is useful when you want to show a price for something in BTC, but you want the price to be pinned to a USD value (and not have to update your post every day as the BTC/USD exchange rate fluctuates). This tool relies on the ticker from BitcoinAverage.com.

Usage
Simply build a URL of the form:

Code:
http://btc-priceimg.herokuapp.com/img/

Where is the price you want in USD.

You can also add an optional color argument to change the color of the text:

Code:
http://btc-priceimg.herokuapp.com/img//

The color code should be an html-like hex code (for black: '000000' or '000' or simply '0'). The background of the image will be transparent.

Example
Say you want to sell an item for $10. You can generate an image using:
http://btc-priceimg.herokuapp.com/img/10.00

Which will yield the image:

If you want to change the color (to more closely match the text in your forum post, for example), use:
http://btc-priceimg.herokuapp.com/img/10.00/00f

Which yields:

You can then embed the image in your post using that URL. In BBCode, this would be:

Code:
[img]http://btc-priceimg.herokuapp.com/img/10.00[/img]

Please let me know what you think! Any suggestions?
Pages:
Jump to: