BTCrate.com - Easy Bitcoin currency conversion

BTCrate.com is a simple service which provides currency conversion between Bitcoin and other world currencies.

To use it, send a request in the form of:

GET http://btcrate.com/convert?from=<from_currency>&to=<to_currency>[&exch=<exchange>[&conv=<converter>[&amount=<amount>]]]

Currently supported exchanges are "mtgox" and "bitomat". Currently supported conversion services are "google" and "xe".

MtGox is the default exchange (thereby making the US dollar the default basis currency), and Google is the default conversion service.

MtGox and Bitomat are demand-polled every 10 minutes. Google and XE.com are demand-polled every 60 minutes.

Example:

We'll ask for the value of BTC 100 in ounces of gold, using MtGox's last trade rate and XE.com's gold price:

GET http://btcrate.com/convert?from=btc&to=xau&exch=mtgox&conv=xe&amount=1000

Result:

{"converted": "4.78023000"}

Thus, 1,000 Bitcoins were equivalent to about 4.78 oz of gold at the time.

Javascript interface - NEW!

By including a script from BTCrate.com into your web page and passing arguments as above, a Javascript variable btcrate_com_rate will be set with the conversion rate.

Here's a simple example:


<html><head><title>BTCrate.com Javascript interface test</title>
<script type="text/javascript" src="http://btcrate.com/convert.js?from=btc&to=eur"></script>

</head><body>
<span id="rate"></span>
<script type="text/javascript">
        window.onload = function() {
                document.getElementById("rate").innerHTML="BTC 1 is worth " + btcrate_com_rate + " euros.";
        }
</script>
</body></html>

Recent quotes

Coming soon!

 

 

Operated by Mike Gogulski.

Like this service? Your gifts to 1B2Tsi3dz2jm9GBHvAd1QoroAeA3BEBrUS are much appreciated!