Bitcoin Forum
December 03, 2016, 01:41:19 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1] 2  All
  Print  
Author Topic: *Free* Realtime $ to BTC bbcode image service  (Read 4550 times)
Chemicalbro
Full Member
***
Offline Offline

Activity: 188



View Profile
August 26, 2011, 05:49:15 PM
 #1

#Updated 29/08/2011



Usage:

Code:
[img]http://irage.ca/2btc.php?a=<amount>&c=<currency>&d=<decimals>[/img]

Where a = The price you are asking for
          c = The currency your price is in (default USD)*
          d = Number of decimal points (default 2)*
          s = Font size to use (default 10)*
          b = Set bold flag (default off)* ie. b=1 will turn bold on
          r = Reverse calculation, determine value of specified amount of bitcoins (default off)* ie. r=1 will turn reverse on

*Note: These arguments are optional.
   
eg.
Code:
[img]http://irage.ca/2btc.php?a=<amount>&d=<decimals>[/img]

Current supported currencies: USD, EUR, CAD, GBP, AUD, RUB, BGN, CNY, SLL, BRL, INR, PLN, CLP via bitcoincharts.com 24h (or 7d if not available) weighted averages


Examples:

Code:
[img]http://irage.ca/2btc.php?a=250&c=USD[/img]
Produces -->

Code:
[img]http://irage.ca/2btc.php?a=12&d=5[/img]
Produces -->

Code:
[img]http://irage.ca/2btc.php?a=15&c=CAD&d=2&r=1&s=16&b=1[/img]
Produces -->

If there is a trailing 0, it is left off.
This is a work in progress. Please message me with any comments/bugs.

Donations: 15G8VXfzyteVKtTE1mDWZ6EHVA9BMRvNjR

Vircurex Exchange BTC/LTC/NMC
1480772479
Hero Member
*
Offline Offline

Posts: 1480772479

View Profile Personal Message (Offline)

Ignore
1480772479
Reply with quote  #2

1480772479
Report to moderator
1480772479
Hero Member
*
Offline Offline

Posts: 1480772479

View Profile Personal Message (Offline)

Ignore
1480772479
Reply with quote  #2

1480772479
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
Ssoele
Full Member
***
Offline Offline

Activity: 135


There's no place like 127.0.0.1


View Profile
August 26, 2011, 10:11:05 PM
 #2

Looks very nice, finally some EUR support Tongue

Did my words move you? Or did they bring you to enlightenment? Feel free to give some ฿ to me: 1DKMAfeDswYf9MFjWxjPCfjEVkgmXvnizo
Want to play some Minefield?
Stefanie Andrea
Jr. Member
*
Offline Offline

Activity: 56



View Profile
August 28, 2011, 04:18:49 PM
 #3

Make the image include "btc" like the other one.
ysoliman
Member
**
Offline Offline

Activity: 86


View Profile
August 28, 2011, 05:49:35 PM
 #4

Thanks for making this useful tool.
Agreed, you should add BTC to the image as well.

Chemicalbro
Full Member
***
Offline Offline

Activity: 188



View Profile
August 28, 2011, 07:09:34 PM
 #5

Done. If you've used this in a post, you'll need to edit out your own BTC that you added. Feel free to request anything else too.

Also added CAD currency.

Vircurex Exchange BTC/LTC/NMC
Stefanie Andrea
Jr. Member
*
Offline Offline

Activity: 56



View Profile
August 28, 2011, 08:06:51 PM
 #6

Does this use 24hr Weighted Average Price from Mtgox?

Option to use CampBX Average price also?
Ssoele
Full Member
***
Offline Offline

Activity: 135


There's no place like 127.0.0.1


View Profile
August 28, 2011, 09:48:47 PM
 #7

Could you use the weighted prices from http://bitcoincharts.com/t/weighted_prices.json ? Cheesy

Did my words move you? Or did they bring you to enlightenment? Feel free to give some ฿ to me: 1DKMAfeDswYf9MFjWxjPCfjEVkgmXvnizo
Want to play some Minefield?
Chemicalbro
Full Member
***
Offline Offline

Activity: 188



View Profile
August 28, 2011, 10:29:40 PM
 #8

Could you use the weighted prices from http://bitcoincharts.com/t/weighted_prices.json ? Cheesy

Yea I'd be ok with doing the 24hr one. I'll do that tonight.

Vircurex Exchange BTC/LTC/NMC
Chemicalbro
Full Member
***
Offline Offline

Activity: 188



View Profile
August 28, 2011, 11:55:01 PM
 #9

Switched to 24hr weighted prices from bitcoincharts, now supports a load of currencies.

Vircurex Exchange BTC/LTC/NMC
Stefanie Andrea
Jr. Member
*
Offline Offline

Activity: 56



View Profile
August 29, 2011, 12:08:06 AM
 #10

Different kind of text used in the image?
Chemicalbro
Full Member
***
Offline Offline

Activity: 188



View Profile
August 29, 2011, 12:44:33 AM
 #11

You mean a different font? If theres really any need for it, I could add it...

Vircurex Exchange BTC/LTC/NMC
ffuentes
Member
**
Offline Offline

Activity: 70


Only a curious passer-by / FirstBits: 13zsc1


View Profile WWW
August 29, 2011, 01:11:36 AM
 #12

That's nice but i would like to do the opposite process. For example: Showing how many CLPs are 1 BTC.

Thanks.

Listen Radio Libre (Electronica) Donate. (click for details).

Chilean peso VS BTC ahora: http://irage.ca/2btc.php?a=1&c=CLP&r=1

My bitcoin address
Stefanie Andrea
Jr. Member
*
Offline Offline

Activity: 56



View Profile
August 29, 2011, 01:12:49 AM
 #13

what i mean was, i want it to look like this or better:

since it looks bold and large here:


And also can you do USD ~> BTC script?
Chemicalbro
Full Member
***
Offline Offline

Activity: 188



View Profile
August 29, 2011, 01:19:30 AM
 #14

I'll get to both those things later tonight.

Vircurex Exchange BTC/LTC/NMC
Stefanie Andrea
Jr. Member
*
Offline Offline

Activity: 56



View Profile
August 29, 2011, 01:32:37 AM
 #15

I'll get to both those things later tonight.

i'll donate when it's done  Smiley
Chemicalbro
Full Member
***
Offline Offline

Activity: 188



View Profile
August 29, 2011, 03:06:10 AM
 #16

Both changes have been made, feedback/bugs/donations are welcome. Next thing coming will be toggling from 24hr weighted average to last traded price.

Vircurex Exchange BTC/LTC/NMC
ffuentes
Member
**
Offline Offline

Activity: 70


Only a curious passer-by / FirstBits: 13zsc1


View Profile WWW
August 29, 2011, 04:38:24 AM
 #17

Both changes have been made, feedback/bugs/donations are welcome. Next thing coming will be toggling from 24hr weighted average to last traded price.

That was fast! Thanks, it's ok and at the moment I have not seen bugs.


Listen Radio Libre (Electronica) Donate. (click for details).

Chilean peso VS BTC ahora: http://irage.ca/2btc.php?a=1&c=CLP&r=1

My bitcoin address
Chemicalbro
Full Member
***
Offline Offline

Activity: 188



View Profile
September 02, 2011, 03:12:02 PM
 #18

Bump for your pleasure.

Vircurex Exchange BTC/LTC/NMC
BTCrow
Sr. Member
****
Offline Offline

Activity: 243


BTCrow.com


View Profile WWW
September 02, 2011, 04:37:28 PM
 #19

Bump for your pleasure.

That's a very nice tool for merchant, Thanks for this.

deslok
Sr. Member
****
Offline Offline

Activity: 448


It's all about the game, and how you play it


View Profile
September 03, 2011, 06:50:42 PM
 #20

Is there a way to get this to support rounding? ex 29.889 rounded to 29.9

"If we don't hang together, by Heavens we shall hang separately." - Benjamin Franklin

If you found that funny or something i said useful i always appreciate spare change
1PczDQHfEj3dJgp6wN3CXPft1bGB23TzTM
Pages: [1] 2  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!