Bitcoin Forum

Bitcoin => Project Development => Topic started by: Anonymous on November 06, 2010, 01:17:26 PM



Title: Bounty for web based currency converter.
Post by: Anonymous on 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/ (http://au.finance.yahoo.com/currencies/converter/)

Bitcoins > Any Currency
Any Currency>Bitcoins








Title: Re: Bounty for web based currency converter.
Post by: wumpus on November 18, 2010, 09:23:59 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/ (http://au.finance.yahoo.com/currencies/converter/)

Bitcoins > Any Currency
Any Currency>Bitcoins
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?



Title: Re: Bounty for web based currency converter.
Post by: Anonymous on November 19, 2010, 05:01:17 AM
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/ (http://au.finance.yahoo.com/currencies/converter/)

Bitcoins > Any Currency
Any Currency>Bitcoins
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?


Title: Re: Bounty for web based currency converter.
Post by: wumpus on 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...


Title: Re: Bounty for web based currency converter.
Post by: Anonymous on 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 (http://www.google.com/support/blogger/bin/answer.py?hl=en&answer=53219)


Title: Re: Bounty for web based currency converter.
Post by: fabianhjr on 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.


Title: Re: Bounty for web based currency converter.
Post by: Anonymous on January 05, 2011, 01:02:30 PM
http://www.xe.com/ (http://www.xe.com/)

Basically the universal currency converter on the front page of xe.com




Title: Re: Bounty for web based currency converter.
Post by: Anonymous on January 05, 2011, 01:03:44 PM
http://www.xe.com/ (http://www.xe.com/)

Basically the universal currency converter on the front page of xe.com

That could also be done with yahoo.



Title: Re: Bounty for web based currency converter.
Post by: Sawzall on January 05, 2011, 02:37:43 PM
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 (http://www.google.com/support/blogger/bin/answer.py?hl=en&answer=53219)

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.


Title: Re: Bounty for web based currency converter.
Post by: Anonymous on January 06, 2011, 02:00:55 AM
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 (http://www.google.com/support/blogger/bin/answer.py?hl=en&answer=53219)

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 :)





Title: Re: Bounty for web based currency converter.
Post by: Anonymous on 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/ (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 (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?


Title: Re: Bounty for web based currency converter.
Post by: BTCbh on 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.


Title: Re: Bounty for web based currency converter.
Post by: ColdHardMetal on 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 :(


Title: Re: Bounty for web based currency converter.
Post by: BTCbh on 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.


Title: Re: Bounty for web based currency converter.
Post by: Stephen Gornick on 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!


Title: Re: Bounty for web based currency converter.
Post by: Anonymous on January 07, 2011, 02:43:17 AM
50btc sent.

Thanks for your work.

I created an iframe and added it to http://bitcointo.com (http://bitcointo.com)


Code:
<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  :)





Title: Re: Bounty for web based currency converter.
Post by: Stephen Gornick on 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=CAD

2.) 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


Title: Re: Bounty for web based currency converter.
Post by: ThomasV on January 22, 2011, 08:38:10 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.



Title: Re: Bounty for web based currency converter.
Post by: Stephen Gornick on 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


Title: Re: Bounty for web based currency converter.
Post by: HostFat on 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:
Code:
[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 :)


Title: Re: Bounty for web based currency converter.
Post by: trumpetx on April 06, 2011, 06:37:47 PM
Yep, one could use:

gd or imagemagick

http://php.net/manual/en/book.image.php

http://php.net/manual/en/book.imagick.php


Title: Re: Bounty for web based currency converter.
Post by: gsnetwork on April 16, 2011, 02:55:31 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=CAD

2.) 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

I like it very much. I'm wondering if it is available? I've been looking for a currency converter that convert any currency to BTC for my websites. I hate that I have to manually update prices in BTC currency few times a week.

I am using http://sanescreen.org/converter/ to display the price in BTC currency on the page but I'm unable to use the js/span code in the payment form.


Title: Re: Bounty for web based currency converter.
Post by: bitwidget on June 07, 2011, 12:09:43 AM
This has been the idea for bitwidget (and associated .com)

We're looking at delivering both a script, and if you want an image. The idea being you can get close to real-time (updated every 5 minutes) conversion for your site. We're starting with US dollars and taking the average from a few exchanges (you'll be able to see the spread if you want). Put your dollar amount in eg $50 USD, and the bitwidget will show the current BTC required to fulfil. We'll be adding other currencies as we go. You can sign up to get notified as soon as we get out of alpha and have a public beta. I'll try to make sure that's sooner rather than later.

Best,
Ben


Title: Re: Bounty for web based currency converter.
Post by: SHlFT on August 02, 2011, 10:05:31 PM
i have a Android app that this


Title: Re: Bounty for web based currency converter.
Post by: Ronin on August 03, 2011, 01:50:09 AM
Check my website:

http://bitcoinprices.com

The currency rates and quotes from bitcoin exchange markets are updated every 5 minutes. Right now the page shows only few currencies for countries where bitcoin is very popular. But I can easly expose API for almost any currency in the wolrd if there is such a need?