Bitcoin Forum
April 16, 2014, 08:44:01 AM *
News: ♦♦ A bug in OpenSSL, used by Bitcoin-Qt/Bitcoin Core, could allow your bitcoins to be stolen. Immediately updating Bitcoin Core to 0.9.1 is required in some cases, especially if you're using 0.9.0. Download. More info.
The same bug also affected the forum. Changing your forum password is recommended.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Dead simple Bitcoin converter with live rates  (Read 8965 times)
fennec
Member
**
Offline Offline

Activity: 76



View Profile WWW

Ignore
June 14, 2011, 06:55:43 AM
 #1

Hey guys,

I built this over the weekend. You can use it to convert any amount to or from BTC, or just to see the current exchange rate.

Try putting in the number of Bitcoins you have and seeing the dollar value change (hopefully rise Smiley) over time. You can also convert to Bitcoin by entering a USD amount (more currencies coming).

Check it out at preev.com.

Let me know what you think! Comments, questions, and criticism welcome.

P.S. Internet Explorer support is pretty minimal (for now).

Preev – simple Bitcoin converter with live exchange rates
1397637841
Hero Member
*
Offline Offline

Posts: 1397637841

View Profile Personal Message (Offline)

Ignore
1397637841
Reply with quote  #2

1397637841
Report to moderator
1397637841
Hero Member
*
Offline Offline

Posts: 1397637841

View Profile Personal Message (Offline)

Ignore
1397637841
Reply with quote  #2

1397637841
Report to moderator
Pre-order Cloud Mining Power. Cheapest price.
2 Ph/s in stock.
INVEST NOW  >

Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1397637841
Hero Member
*
Offline Offline

Posts: 1397637841

View Profile Personal Message (Offline)

Ignore
1397637841
Reply with quote  #2

1397637841
Report to moderator
1397637841
Hero Member
*
Offline Offline

Posts: 1397637841

View Profile Personal Message (Offline)

Ignore
1397637841
Reply with quote  #2

1397637841
Report to moderator
1397637841
Hero Member
*
Offline Offline

Posts: 1397637841

View Profile Personal Message (Offline)

Ignore
1397637841
Reply with quote  #2

1397637841
Report to moderator
Stephen Gornick
Hero Member
*****
Offline Offline

Activity: 1232



View Profile WWW

Ignore
June 14, 2011, 09:08:21 AM
 #2

Check it out at preev.com.

Let me know what you think! Comments, questions, and criticism welcome.

Nice!

What is in demand is a widget that works on a third party site but allows me to enter values like what you have.

fennec
Member
**
Offline Offline

Activity: 76



View Profile WWW

Ignore
June 14, 2011, 09:22:49 AM
 #3

Thanks,

I hadn't considered a widget, but it's definitely an interesting idea. Do you know who wants it specifically?
I'll have a think about how I might build it and get back to you.

Preev – simple Bitcoin converter with live exchange rates
Marcus
Newbie
*
Offline Offline

Activity: 28


View Profile

Ignore
June 14, 2011, 09:23:27 AM
 #4

.
Fennec -

Making something simple is rarely easy.
Your converter is nicely done.

I want to encourage you to continue thinking and building as you have.
So I've just now sent one Bitcoin to the address on your web page.

-- Marcus
fennec
Member
**
Offline Offline

Activity: 76



View Profile WWW

Ignore
June 14, 2011, 09:33:17 AM
 #5

Marcus,

Thanks so much for your kind words and donation!

I want to help make Bitcoin more accessible to everyone (not just us techy folks), so I plan to continue building tools that are simple and easy to use.

Preev – simple Bitcoin converter with live exchange rates
Electrongolf
Full Member
***
Offline Offline

Activity: 138

What's Your Gig?


View Profile WWW

Ignore
June 14, 2011, 10:08:51 AM
 #6

This is very cool! I'm sure merchants could use this. One of the problems with BTC is the fluctuating price. I'd like to see USD automatically converted to BTC on merchant sites.

fennec
Member
**
Offline Offline

Activity: 76



View Profile WWW

Ignore
June 14, 2011, 10:23:47 AM
 #7

Thanks Electron!

I think you're right about price fluctuations; after I build a widget I'll contact some merchants.

Preev – simple Bitcoin converter with live exchange rates
stakhanov
Full Member
***
Offline Offline

Activity: 175


View Profile

Ignore
June 14, 2011, 10:26:02 AM
 #8

Nice project! How do you compute the current rate? If you want something a bit more robust than simply taking the last trades, I would suggest looking at what I did for the KDE widget: http://kde-apps.org/content/show.php?content=138572 (uncompress the archive, the code is inside and should be straightforward to understand).
fennec
Member
**
Offline Offline

Activity: 76



View Profile WWW

Ignore
June 14, 2011, 10:44:52 AM
 #9

Cheers stakhanov!

Currently, it's simply using the last price on Mt Gox. I'm planning to alter the calculation to include other (higher volume) exchanges.

I'm not at home right now, but I'll have a look at the code later. Thanks.

Preev – simple Bitcoin converter with live exchange rates
fennec
Member
**
Offline Offline

Activity: 76



View Profile WWW

Ignore
July 07, 2011, 07:29:56 AM
 #10

Hey everyone,

Just a quick update, since I finally found some more time to work on this.

I've added 7 major currencies (AUD, CAD, CHF, EUR, GBP, RUB, SEK) for a total of 8 including USD. Also a few other small improvements e.g added the calculation result in the tab title, so you can see the live amount while browsing other tabs.

Again, all comments etc welcome.

Cheers

Preev – simple Bitcoin converter with live exchange rates
brandondayton
Jr. Member
*
Offline Offline

Activity: 41


View Profile WWW

Ignore
October 13, 2011, 07:11:57 PM
 #11

This is exactly the type of tool merchants need. BTW, I've been trying to get the script to work and haven't had any luck. Maybe I don't know enough about Java.
speeder
Hero Member
*****
Offline Offline

Activity: 546



View Profile

Ignore
October 13, 2011, 07:14:10 PM
 #12

I wish it had BRL...

But nice anyway! Very elegant design!

DeathAndTaxes
Donator
Hero Member
*
Offline Offline

Activity: 952



View Profile WWW

Ignore
October 13, 2011, 08:08:42 PM
 #13

Cheers stakhanov!

Currently, it's simply using the last price on Mt Gox. I'm planning to alter the calculation to include other (higher volume) exchanges.

The number of exchanges isn't that important.  Mt Gox has 90% of the volume.

A better algorithm would be one which is volume weighted over a period of time. 

Say in last hour there were 5 transactions.

1000 BTC @ $3.99
 200 BTC @ $4.06
 800 BTC @ $4.01
    1 BTC @ $4.80

obviously the $4.80 is an abberation but it is what users would see. 

Taking a weighted average (volume * price) / (total volume) = $4.01 (technically $4.005397).

The only thing to consider is how large of a weighting period.  The shorter the period the more reactive the average.  The longer the period the more it smooths out the spikes but the longer it takes to react to sustained price action.

For a more "immediate value" I think 1 hour would be good starting timeframe but you may need to adjust.

Gerald Davis  CEO, Tangible Cryptography Inc.
BitSimple. A simpler way to buy and sell bitcoins
fennec
Member
**
Offline Offline

Activity: 76



View Profile WWW

Ignore
October 15, 2011, 02:14:23 PM
 #14

This is exactly the type of tool merchants need. BTW, I've been trying to get the script to work and haven't had any luck. Maybe I don't know enough about Java.

I never got around to creating a merchant tool, unfortunately. Which script are you referring to?

I wish it had BRL...

But nice anyway! Very elegant design!

Thanks! Shouldn't be too hard. I might have some time in the next week, so I'll see what I can do.


The number of exchanges isn't that important.  Mt Gox has 90% of the volume.

A better algorithm would be one which is volume weighted over a period of time. 

Say in last hour there were 5 transactions.

1000 BTC @ $3.99
 200 BTC @ $4.06
 800 BTC @ $4.01
    1 BTC @ $4.80

obviously the $4.80 is an abberation but it is what users would see. 

Taking a weighted average (volume * price) / (total volume) = $4.01 (technically $4.005397).

The only thing to consider is how large of a weighting period.  The shorter the period the more reactive the average.  The longer the period the more it smooths out the spikes but the longer it takes to react to sustained price action.

For a more "immediate value" I think 1 hour would be good starting timeframe but you may need to adjust.

You're right, the last price can be deceptive. I agree with your volume weighted average idea, I'll implement when I get a chance.

Cheers guys!

Preev – simple Bitcoin converter with live exchange rates
brandondayton
Jr. Member
*
Offline Offline

Activity: 41


View Profile WWW

Ignore
October 17, 2011, 09:01:11 PM
 #15

Sorry, I confused your converter with this:

http://sanescreen.org/converter/
Newar
Hero Member
*****
Offline Offline

Activity: 588


https://gliph.me/hUF


View Profile

Ignore
June 15, 2012, 02:34:59 AM
 #16

This is great!

Are you still working on this? (pleasepleaseplease)

Could you include the data from http://bitcoincharts.com/markets/currencies/ ? It's available as JSON: http://bitcoincharts.com/t/weighted_prices.json

OTC rating | Happy trades: Jesehl +3, PTseller +4, MadSweeney +2, bitdragon +1, Dabs +2, jasinlee +1, Keninishna +1, glungnahund +1, SebastianJu +3
GPG keyid 1DC91318EE785FDE | Gliph: lightning bicycle tree music | Mycelium, a swift & secure Bitcoin client for Android | LocalBitcoins
Bitcoin Oz
Hero Member
*****
Offline Offline

Activity: 672


Wat


View Profile WWW

Ignore
June 15, 2012, 08:51:18 AM
 #17

If you build a html widget I will stick it on http://bitcoin.me

JessyMatt
Jr. Member
*
Offline Offline

Activity: 31

I'm alive, therefore, I live!


View Profile WWW

Ignore
February 23, 2014, 06:49:57 AM
 #18

You need to create a wordpress widget for this. I need it for http://www.bitcoinvalues.net/bitcoin-calculator-calculate-current-market-value.html

V4Vendettas
Sr. Member
****
Offline Offline

Activity: 294



View Profile

Ignore
February 23, 2014, 07:34:40 AM
 #19

Would love this as a widget.

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!