Anonymous
Guest
|
|
November 06, 2010, 01:17:26 PM |
|
I am pledging 50btc for someone to build a universal bitcoin currency converter that can be added to a website. ie http://au.finance.yahoo.com/currencies/converter/Bitcoins > Any Currency Any Currency>Bitcoins
|
|
|
|
wumpus
|
|
November 18, 2010, 09:23:59 PM |
|
How would this work? As far as I know, bitcoin only has an exchange rate available with Rubles and USD. You'd want the other currencies simply computed from that?
|
Bitcoin Core developer [PGP] Warning: For most, coin loss is a larger risk than coin theft. A disk can die any time. Regularly back up your wallet through File → Backup Wallet to an external storage or the (encrypted!) cloud. Use a separate offline wallet for storing larger amounts.
|
|
|
Anonymous
Guest
|
|
November 19, 2010, 05:01:17 AM |
|
How would this work? As far as I know, bitcoin only has an exchange rate available with Rubles and USD. You'd want the other currencies simply computed from that? Wouldnt it just be a matter of computing the other currencies against the US dollar and converting that to bitcoin value?
|
|
|
|
wumpus
|
|
November 19, 2010, 07:30:42 AM |
|
From what I know of currency trading, if you have currency A,B and C, the rate "A to C" doesn't necessarily have to be equal to "A to B" times "B to C". Of course, if it is not, this presents arbitration opportunities so generally, in a liquid market, they will converge to very close to each other. But the bitcoin market is not as liquid as your average currency. So if you just want a nice applet for on your site, computing it that way is fine. If you want to use the numbers for doing (automatic) business, I would be more careful Just put a disclaimer...
|
Bitcoin Core developer [PGP] Warning: For most, coin loss is a larger risk than coin theft. A disk can die any time. Regularly back up your wallet through File → Backup Wallet to an external storage or the (encrypted!) cloud. Use a separate offline wallet for storing larger amounts.
|
|
|
Anonymous
Guest
|
|
November 19, 2010, 10:59:23 AM |
|
From what I know of currency trading, if you have currency A,B and C, the rate "A to C" doesn't necessarily have to be equal to "A to B" times "B to C". Of course, if it is not, this presents arbitration opportunities so generally, in a liquid market, they will converge to very close to each other. But the bitcoin market is not as liquid as your average currency. So if you just want a nice applet for on your site, computing it that way is fine. If you want to use the numbers for doing (automatic) business, I would be more careful Just put a disclaimer... I was looking for something anyone could use. For instance a google blogger widget . It would also be listed in the widget gallery for more bitcoin exposure. http://www.google.com/support/blogger/bin/answer.py?hl=en&answer=53219
|
|
|
|
fabianhjr
Sr. Member
Offline
Activity: 322
Merit: 250
Do The Evolution
|
|
January 04, 2011, 04:39:21 PM |
|
This is for a site to know the exchange rate or to only display it? I mean, you could use MtGox's ticker and use the google magic to get the exchange of USDs to whatever.
|
|
|
|
Anonymous
Guest
|
|
January 05, 2011, 01:02:30 PM |
|
http://www.xe.com/Basically the universal currency converter on the front page of xe.com
|
|
|
|
Anonymous
Guest
|
|
January 05, 2011, 01:03:44 PM |
|
http://www.xe.com/Basically the universal currency converter on the front page of xe.com That could also be done with yahoo.
|
|
|
|
Sawzall
|
|
January 05, 2011, 02:37:43 PM |
|
Please indicate if you'd be happy relying on a root BTC-USD reference exchange rate (p.ex. the bitcioin 4 cash) + a calculated approximately exchange rate to other currency based on another service (yahoo, google, whatever site with an api) witchspace's comment is right that a simple calculation might not be the real exchange rate, but an usefull indicator it might be. i haven't done any programming in a few years but this looks feasible. Because Bitcoins would have to be exchanged for dollars, and then those dollars for some other currency, using a BTC-USD rate and then calculating from there makes sense.
|
|
|
|
Anonymous
Guest
|
|
January 06, 2011, 02:00:55 AM |
|
Please indicate if you'd be happy relying on a root BTC-USD reference exchange rate (p.ex. the bitcioin 4 cash) + a calculated approximately exchange rate to other currency based on another service (yahoo, google, whatever site with an api) witchspace's comment is right that a simple calculation might not be the real exchange rate, but an usefull indicator it might be. i haven't done any programming in a few years but this looks feasible. That is how I currently do things
|
|
|
|
Anonymous
Guest
|
|
January 07, 2011, 12:17:34 AM |
|
Hi, I've set up something I think would fit what you're looking for: http://bitcoin.1t2l.net/widget/Data is cached every five minutes and the BTC price used is the buy price at MtGox (great API). Feel free to Iframe/hotlink it wherever you want, I can spare the bandwidth! Or if you want just copy it from source, I store the data in JSON format at http://bitcoin.1t2l.net/widget/data.txt. Let me know what you think and if you'd like any tweaks or improvements. My Bitcoin address is: 1GVGcHEMNbUQocYShKKUmUC2yeT5e9fM5A -BTCbh This is very nice. Where do you get the currency data from?
|
|
|
|
BTCbh
Newbie
Offline
Activity: 2
Merit: 0
|
|
January 07, 2011, 01:22:13 AM |
|
This is very nice. Where do you get the currency data from?
Thanks. The currency data is obtained from a non-public API of a broker I have an account with. The figures should be within 0.5% of actual market prices.
|
|
|
|
ColdHardMetal
|
|
January 07, 2011, 01:44:24 AM |
|
Can you add KRW - South Korean Won? Maybe not if it's a broker feed since you can't trade KRW anywhere
|
|
|
|
BTCbh
Newbie
Offline
Activity: 2
Merit: 0
|
|
January 07, 2011, 01:55:49 AM |
|
Can you add KRW - South Korean Won? Maybe not if it's a broker feed since you can't trade KRW anywhere I've included every currency my broker's API offers. If you know of a public API with KRW let me know and I'll see if I can integrate it for you.
|
|
|
|
Stephen Gornick
Legendary
Offline
Activity: 2506
Merit: 1010
|
|
January 07, 2011, 02:28:47 AM |
|
The swap to convert FROM BTC to another currency only occurs after page load. Would it be possible for this to be the default, based on a URL parameter e.g., ?from=BTC or something to that effect?
BTW, awesome job!
|
|
|
|
Anonymous
Guest
|
|
January 07, 2011, 02:43:17 AM |
|
50btc sent. Thanks for your work. I created an iframe and added it to http://bitcointo.com<iframe src="http://bitcoin.1t2l.net/widget/#" name="cc" scrolling="no" frameborder="no" align="center" height = "280px" width = "290px">If you can see this, your browser doesn't understand IFRAME. However, we'll still <a href="http://bitcoin.1t2l.net/widget/#">link</a> you to the file. </iframe> Add that to the page if you like so people can copy and paste the code
|
|
|
|
Stephen Gornick
Legendary
Offline
Activity: 2506
Merit: 1010
|
|
January 11, 2011, 05:46:56 AM |
|
I've implemented your idea, thanks!
You rock! Two additional requests, if I may: 1.) Allow pre-selection of the currency that counters the BTC: e.g., if I wish to add the widget to my site whose primary readership is in Canada, I might wish to do: http://bitcoin.1t2l.net/widget/?from=CAD (for CAD to BTC) and the reverse: http://bitcoin.1t2l.net/widget/?from=BTC&to=CAD2.) Display the currency symbol: e.g, The British Pound's is GBP There appears to be room to also display the currency symbol after the amount. e.g,. 50 (bitcoins) = 10.45 GBP
|
|
|
|
ThomasV
Legendary
Offline
Activity: 1896
Merit: 1353
|
|
January 22, 2011, 08:38:10 PM Last edit: January 22, 2011, 10:09:53 PM by ThomasV |
|
I've come up with a very different solution : A fully automated script that converts USD prices into BTC, based on the exchange rate at mtgox : http://sanescreen.org/converter/This is for sellers who do not want to / cannot use php Note : My server is needed in order to fetch the JSON object returned by mtgox (getTrades.php). It would be possible to bypass my server if mtgox was kind enough to provide a short javascript with a callback function.
|
Electrum: the convenience of a web wallet, without the risks
|
|
|
Stephen Gornick
Legendary
Offline
Activity: 2506
Merit: 1010
|
|
February 25, 2011, 07:50:16 PM |
|
Two additional requests, if I may: 1.) Allow pre-selection of the currency that counters the BTC: 2.) Display the currency symbol: e.g,. 50 (bitcoins) = 10.45 GBP
A third request, ... to accept in the URL the actual amount to convert. e.g., To convert 1.23 BTC into the equivalent CAD: http://bitcoin.1t2l.net/widget/?from=BTC&to=CAD&amount=1.23
|
|
|
|
HostFat
Staff
Legendary
Offline
Activity: 4270
Merit: 1209
I support freedom of choice
|
|
April 06, 2011, 03:30:47 PM |
|
I've come up with a very different solution : A fully automated script that converts USD prices into BTC, based on the exchange rate at mtgox : http://sanescreen.org/converter/This is for sellers who do not want to / cannot use php Note : My server is needed in order to fetch the JSON object returned by mtgox (getTrades.php). It would be possible to bypass my server if mtgox was kind enough to provide a short javascript with a callback function. Is there a way so you can make dynamic pictures? I mean, it will be cool to put dynamic prices also on forums like this one. So people will use something like this: [IMG="http://sanescreen.org/converter/img.php?50.usd.jpg"][/IMG] [IMG="http://sanescreen.org/converter/img.php?57.3.usd.jpg"][/IMG] The little picture will show the price in BTC
|
|
|
|
|