I've created a simple website that converts bits to US dollars and dollars to bits.
At the moment it has only one functionality: it allows you to enter a value in either unit and it instantly shows the conversion (JS is required).
It also shows the equivalent in bitcoins and satoshis (as suggested by minifrij).
The exchange rate is updated every 10 minutes from BitcoinAverage.
Here are some features I'm adding soon:
- API support Done
- Dynamic images: enter a price in USD and get an image that shows the equivalent number of bits (updated every 10 minutes) Done
Let me know any comments or suggestions to change or implement.
Here are the current features:
Dynamic imagesDisplay the amount of bits based on a fixed value in US dollars. Just use this format:
[img]http://bitsperdollar.com/img/value_in_dollars[/img]
For example:
$1 =

[img]http://bitsperdollar.com/img/1[/img]
$99.99 =

[img]http://bitsperdollar.com/img/99.99[/img]
If you prefer to get the value in
bitcoins just add
/btc at the end:
$99.99 =

[img]http://bitsperdollar.com/img/99.99/btc[/img]
APIThis API allows you to query the number of bits per dollar (or dollars per bitcoin) programmatically:
http://bitsperdollar.com/api.jsonThis will provide the following information in JSON format:
- "bpd": Number of bits per dollar, as integer.
- "btc": Number of dollars per bitcoin, as integer.
- "bpd_format": Number of bits per dollar, as string, formatted.
- "btc_format": Number of dollars per bitcoin, as string, formatted.
Automatic conversionYou can automatically convert any amount of dollars to either bits or bitcoins with a simple call.
The API will return a formatted plain text result ready to be displayed.
http://bitsperdollar.com/api/value_in_dollars
If you prefer to get the price in bitcoin, add
/btc at the end
Direct linkSimply add
/value_in_dollars to directly link to a pre-defined conversion. For example:
Additionally when entering a conversion on the site you will get the corresponding HTML and BB (forum) code to insert a dynamic image along with a direct link. It's ready to be used on bitcointalk.org and other forums.
[url=http://bitsperdollar.com/9.99][img]http://bitsperdollar.com/img/9.99/btc[/img][/url]
TwitterNow you can follow
@BitsPerDollar to get the latest rate of bitcoin along with the number of bits (millionths of BTC) per dollar. It will be automatically posted every 12 hours.