Bitcoin Forum
May 10, 2024, 08:07:20 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2  All
  Print  
Author Topic: *Free* Realtime $ to BTC bbcode image service  (Read 5082 times)
Chemicalbro (OP)
Full Member
***
Offline Offline

Activity: 188
Merit: 100



View Profile
August 26, 2011, 05:49:15 PM
Last edit: August 29, 2011, 10:36:01 AM by Chemicalbro
 #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
1715371640
Hero Member
*
Offline Offline

Posts: 1715371640

View Profile Personal Message (Offline)

Ignore
1715371640
Reply with quote  #2

1715371640
Report to moderator
1715371640
Hero Member
*
Offline Offline

Posts: 1715371640

View Profile Personal Message (Offline)

Ignore
1715371640
Reply with quote  #2

1715371640
Report to moderator
1715371640
Hero Member
*
Offline Offline

Posts: 1715371640

View Profile Personal Message (Offline)

Ignore
1715371640
Reply with quote  #2

1715371640
Report to moderator
Unlike traditional banking where clients have only a few account numbers, with Bitcoin people can create an unlimited number of accounts (addresses). This can be used to easily track payments, and it improves anonymity.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715371640
Hero Member
*
Offline Offline

Posts: 1715371640

View Profile Personal Message (Offline)

Ignore
1715371640
Reply with quote  #2

1715371640
Report to moderator
1715371640
Hero Member
*
Offline Offline

Posts: 1715371640

View Profile Personal Message (Offline)

Ignore
1715371640
Reply with quote  #2

1715371640
Report to moderator
1715371640
Hero Member
*
Offline Offline

Posts: 1715371640

View Profile Personal Message (Offline)

Ignore
1715371640
Reply with quote  #2

1715371640
Report to moderator
Ssoele
Full Member
***
Offline Offline

Activity: 134
Merit: 100


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
Newbie
*
Offline Offline

Activity: 56
Merit: 0


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

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

Activity: 85
Merit: 10


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 (OP)
Full Member
***
Offline Offline

Activity: 188
Merit: 100



View Profile
August 28, 2011, 07:09:34 PM
Last edit: August 28, 2011, 07:40:16 PM by Chemicalbro
 #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
Newbie
*
Offline Offline

Activity: 56
Merit: 0


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: 134
Merit: 100


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 (OP)
Full Member
***
Offline Offline

Activity: 188
Merit: 100



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 (OP)
Full Member
***
Offline Offline

Activity: 188
Merit: 100



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
Newbie
*
Offline Offline

Activity: 56
Merit: 0


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

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

Activity: 188
Merit: 100



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
Merit: 10


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
Newbie
*
Offline Offline

Activity: 56
Merit: 0


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

what i mean was, i want it to look like this or better: http://pricecounter.hostzi.com/img.php?p=250

since it looks bold and large here: http://irage.ca/2btc.php?a=250


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

Activity: 188
Merit: 100



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
Newbie
*
Offline Offline

Activity: 56
Merit: 0


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 (OP)
Full Member
***
Offline Offline

Activity: 188
Merit: 100



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
Merit: 10


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 (OP)
Full Member
***
Offline Offline

Activity: 188
Merit: 100



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
Merit: 250

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: 462
Merit: 250


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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!