fizzisist (OP)
|
|
March 10, 2013, 08:19:04 PM Last edit: February 24, 2014, 01:37:08 PM by fizzisist Merited by hugeblack (15), LoyceV (10) |
|
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. UsageSimply build a URL of the form: http://btc-priceimg.herokuapp.com/img/<price_in_usd> Where <price_in_usd> is the price you want in USD. You can also add an optional color argument to change the color of the text: http://btc-priceimg.herokuapp.com/img/<price_in_usd>/<color> 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. ExampleSay you want to sell an item for $10. You can generate an image using: http://btc-priceimg.herokuapp.com/img/10.00Which 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/00fWhich yields: You can then embed the image in your post using that URL. In BBCode, this would be: [img]http://btc-priceimg.herokuapp.com/img/10.00[/img] Please let me know what you think! Any suggestions?
|
|
|
|
Mike Christ
aka snapsunny
Legendary
Offline
Activity: 1078
Merit: 1003
|
|
March 10, 2013, 08:25:13 PM |
|
Shows up great on my thread! Thanks for this On this note, the prices seem to come out a tad higher than what MT Gox is saying...hrmmm
|
|
|
|
fizzisist (OP)
|
|
March 10, 2013, 08:32:41 PM |
|
Shows up great on my thread! Thanks for this 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.
|
|
|
|
edd
Donator
Legendary
Offline
Activity: 1414
Merit: 1002
|
|
March 10, 2013, 09:25:25 PM |
|
Middle link in your sig is broken - missing the .com
|
Still around.
|
|
|
fizzisist (OP)
|
|
March 10, 2013, 09:26:09 PM |
|
Middle link in your sig is broken - missing the .com
Thanks
|
|
|
|
Vod
Legendary
Offline
Activity: 3836
Merit: 3123
Licking my boob since 1970
|
|
March 10, 2013, 10:28:21 PM Last edit: March 10, 2013, 11:01:46 PM by mlawrence |
|
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.
|
https://vod.fan - fast/free image sharing - coming Oct! Will Theymos finish his $100,000,000 forum before this one shuts down?
|
|
|
|
fizzisist (OP)
|
|
March 11, 2013, 06:37:56 PM |
|
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!
|
|
|
|
BTC4Amazon
|
|
April 26, 2013, 12:38:04 AM |
|
Any Chance you could make one similar but for the popular alt coins, I would definitely give you a nice tip for that
|
|
|
|
fizzisist (OP)
|
|
April 26, 2013, 03:47:41 PM |
|
Any Chance you could make one similar but for the popular alt coins, I would definitely give you a nice tip for that I'll gladly do that. All I need is an API to get exchange rates. Got a link?
|
|
|
|
BTC4Amazon
|
|
April 26, 2013, 05:18:10 PM |
|
Any Chance you could make one similar but for the popular alt coins, I would definitely give you a nice tip for that I'll gladly do that. All I need is an API to get exchange rates. Got a link? https://btc-e.com/api/documentation
|
|
|
|
fizzisist (OP)
|
|
April 27, 2013, 09:11:39 PM |
|
Any Chance you could make one similar but for the popular alt coins, I would definitely give you a nice tip for that I'll gladly do that. All I need is an API to get exchange rates. Got a link? https://btc-e.com/api/documentationOk, done! I added it at a separate URL (advimg). It accepts arguments as a GET request. Please test! Example image: http://fizzisist.com/priceimg/advimg?price=10.00¤cy=LTC Explanation is on the main page: http://fizzisist.com/priceimg
|
|
|
|
BTC4Amazon
|
|
April 28, 2013, 05:51:08 AM |
|
Any Chance you could make one similar but for the popular alt coins, I would definitely give you a nice tip for that I'll gladly do that. All I need is an API to get exchange rates. Got a link? https://btc-e.com/api/documentationOk, done! I added it at a separate URL (advimg). It accepts arguments as a GET request. Please test! Example image: http://fizzisist.com/priceimg/advimg?price=10.00¤cy=LTC Explanation is on the main page: http://fizzisist.com/priceimgA tip is headed your way fine dir, I thank you
|
|
|
|
bernard75
Legendary
Offline
Activity: 1316
Merit: 1003
|
|
August 14, 2013, 05:58:36 AM |
|
Could you provide 24h average?
|
|
|
|
Mike Christ
aka snapsunny
Legendary
Offline
Activity: 1078
Merit: 1003
|
|
December 11, 2013, 11:58:09 PM |
|
Something's going wrong Now the images aren't showing up.
|
|
|
|
bernard75
Legendary
Offline
Activity: 1316
Merit: 1003
|
|
December 12, 2013, 10:22:08 AM |
|
Something's going wrong Now the images aren't showing up. I see the images just fine. Its just that the forum is caching images through a third party now, which yields wrong results for quotes already cached.
|
|
|
|
fizzisist (OP)
|
|
December 12, 2013, 12:53:53 PM |
|
Something's going wrong Now the images aren't showing up. Error: Mt Gox error Yeah, it looks like the Mt Gox API was down for a bit. I'm thinking about switching to a different exchange, or maybe even making it an average of a few. Any suggestions of which one(s) I should use? It would also be possible to let the user specify the exchange to use when generating the image. Thoughts?
|
|
|
|
bluemeanie1
|
|
December 12, 2013, 07:01:27 PM |
|
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. Please let me know what you think! Any suggestions? Security Alert!this device shares your web usage data with the owner of fizzisist.com for every page you embed the widget in.
|
|
|
|
TheButterZone
Legendary
Offline
Activity: 3038
Merit: 1032
RIP Mommy
|
|
August 13, 2014, 11:37:22 PM |
|
http://btc-priceimg.herokuapp.com/img/100Internal Server Error The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application. [img]http://btc-priceimg.herokuapp.com/img/100[/img]
|
Saying that you don't trust someone because of their behavior is completely valid.
|
|
|
TheButterZone
Legendary
Offline
Activity: 3038
Merit: 1032
RIP Mommy
|
|
August 15, 2014, 12:31:10 AM |
|
It's fixed. 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. Please let me know what you think! Any suggestions? Security Alert!this device shares your web usage data with the owner of fizzisist.com for every page you embed the widget in.I don't think it can do that on here through the new bitcointalk image proxy.
|
Saying that you don't trust someone because of their behavior is completely valid.
|
|
|
|