Bitcoin Forum
May 06, 2024, 09:50:22 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: BitsPerDollar.com • Instant USD⇔Bits/BTC conv. • API • Dynamic images • Twitter  (Read 3352 times)
EcuaMobi (OP)
Legendary
*
Offline Offline

Activity: 1862
Merit: 1469


https://Ecua.Mobi


View Profile WWW
March 21, 2015, 09:33:50 PM
Last edit: December 17, 2015, 04:46:12 PM by EcuaMobi
 #1


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 images

Display the amount of bits based on a fixed value in US dollars. Just use this format:
Code:
[img]http://bitsperdollar.com/img/value_in_dollars[/img]

For example:

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

$99.99 =
Code:
[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 =
Code:
[img]http://bitsperdollar.com/img/99.99/btc[/img]

API

This API allows you to query the number of bits per dollar (or dollars per bitcoin) programmatically:
http://bitsperdollar.com/api.json

This 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 conversion

You 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.
Code:
http://bitsperdollar.com/api/value_in_dollars


If you prefer to get the price in bitcoin, add /btc at the end

Direct link

Simply 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.

Code:
[url=http://bitsperdollar.com/9.99][img]http://bitsperdollar.com/img/9.99/btc[/img][/url]



Twitter

Now 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.

1714989022
Hero Member
*
Offline Offline

Posts: 1714989022

View Profile Personal Message (Offline)

Ignore
1714989022
Reply with quote  #2

1714989022
Report to moderator
1714989022
Hero Member
*
Offline Offline

Posts: 1714989022

View Profile Personal Message (Offline)

Ignore
1714989022
Reply with quote  #2

1714989022
Report to moderator
Whoever mines the block which ends up containing your transaction will get its fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714989022
Hero Member
*
Offline Offline

Posts: 1714989022

View Profile Personal Message (Offline)

Ignore
1714989022
Reply with quote  #2

1714989022
Report to moderator
1714989022
Hero Member
*
Offline Offline

Posts: 1714989022

View Profile Personal Message (Offline)

Ignore
1714989022
Reply with quote  #2

1714989022
Report to moderator
1714989022
Hero Member
*
Offline Offline

Posts: 1714989022

View Profile Personal Message (Offline)

Ignore
1714989022
Reply with quote  #2

1714989022
Report to moderator
minifrij
Legendary
*
Offline Offline

Activity: 2324
Merit: 1267


In Memory of Zepher


View Profile WWW
March 21, 2015, 11:06:25 PM
 #2

The sheer amount of empty space on the site looks a bit strange, it would maybe look better if you enlarged the logo at the top and removed a line break or two.
Maybe removing one or two line breaks from the top of the main box and the prices written in text would be good, it also looks a little strange that there is more empty space above the prices than below them.
The input areas look a bit strange imo being so tall yet not having the text fill them properly, this may just be me though.

As for things that could be added, maybe conversions below the box which match the values in the text area could be useful. For example if the box said 100 bits it could have (=0.0001BTC) underneath or something. Granted the site is about bits per dollar, but maybe to give the user a bit more of an idea on how much that actually is.

All of the other things that you have planned sound pretty good, looking forward to seeing how this turns out!
EcuaMobi (OP)
Legendary
*
Offline Offline

Activity: 1862
Merit: 1469


https://Ecua.Mobi


View Profile WWW
March 21, 2015, 11:45:18 PM
 #3

The sheer amount of empty space on the site looks a bit strange, it would maybe look better if you enlarged the logo at the top and removed a line break or two.
Maybe removing one or two line breaks from the top of the main box and the prices written in text would be good, it also looks a little strange that there is more empty space above the prices than below them.
The input areas look a bit strange imo being so tall yet not having the text fill them properly, this may just be me though.

As for things that could be added, maybe conversions below the box which match the values in the text area could be useful. For example if the box said 100 bits it could have (=0.0001BTC) underneath or something. Granted the site is about bits per dollar, but maybe to give the user a bit more of an idea on how much that actually is.

All of the other things that you have planned sound pretty good, looking forward to seeing how this turns out!

Thank you for your suggestions. I've implemented the UI changes.
I also added the equivalent value in both bitcoins and satoshis below the text fields.

minifrij
Legendary
*
Offline Offline

Activity: 2324
Merit: 1267


In Memory of Zepher


View Profile WWW
March 21, 2015, 11:48:33 PM
 #4

Awesome, I think that looks a lot better! Thanks for taking my suggestions into account  Cheesy
Marcy
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250



View Profile
March 28, 2015, 01:23:03 AM
 #5

wow cool good idea nice concept and great feature Smiley

its very helpful for us to converts from bits to dollar and otherwise

simple and good looking and the price automatic update , thank you for this feature Smiley
EcuaMobi (OP)
Legendary
*
Offline Offline

Activity: 1862
Merit: 1469


https://Ecua.Mobi


View Profile WWW
April 01, 2015, 10:35:03 PM
Last edit: December 17, 2015, 02:20:20 PM by EcuaMobi
 #6

I've added some more features to the site:


Check OP or the site for more information.

EcuaMobi (OP)
Legendary
*
Offline Offline

Activity: 1862
Merit: 1469


https://Ecua.Mobi


View Profile WWW
April 21, 2015, 10:07:06 PM
 #7

Now 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.


EcuaMobi (OP)
Legendary
*
Offline Offline

Activity: 1862
Merit: 1469


https://Ecua.Mobi


View Profile WWW
May 08, 2015, 03:08:02 PM
 #8

BitsPerDollar.com is giving away 10 x 10,000-bit prizes:

Learn more and join here:
https://ecua.mobi/bitsperdollar-com/

miner_btc
Member
**
Offline Offline

Activity: 60
Merit: 10


View Profile
April 26, 2016, 03:37:32 AM
Last edit: April 26, 2016, 03:54:45 AM by miner_btc
 #9

How can one show the results of your API calls on a webpage? I want to show the extended value that I get from the API and not from the images (images seem to stop at 4 decimal places). Sorry to necro this thread but there is no documentation listed on the site. I currently have the api url in an iframe but I assume there is a more elegant way to do this.
EcuaMobi (OP)
Legendary
*
Offline Offline

Activity: 1862
Merit: 1469


https://Ecua.Mobi


View Profile WWW
April 26, 2016, 03:24:16 PM
 #10

How can one show the results of your API calls on a webpage? I want to show the extended value that I get from the API and not from the images (images seem to stop at 4 decimal places). Sorry to necro this thread but there is no documentation listed on the site. I currently have the api url in an iframe but I assume there is a more elegant way to do this.

Hi. This site is no longer mine, it was sold a few months ago.

Regarding your question, you can just query the API http://bitsperdollar.com/api.json
Then you'll need to parse it, read the field you need and do the math yourself.

Or you can use what's described under "Automatic conversion" in OP, only if that fits your needs.

miner_btc
Member
**
Offline Offline

Activity: 60
Merit: 10


View Profile
April 26, 2016, 07:09:20 PM
 #11

I was rather hoping to avoid parsing json as this is a simple project but I guess I'll have to look into it. If I do that I can just use any of the publicly available APIs from exchanges or preev etc. PS - the price on bitsperdollar is no longer updating or I would use it like it is. Any chance you can PM me an email address for the new owner(s)? I tweeted at them but there was no response and the whois appears to still be under your info.
Pages: [1]
  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!