Bitcoin Forum
April 28, 2015, 06:17:01 PM *
News: Latest stable version of Bitcoin Core: 0.10.1 [Torrent] (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Dead simple Bitcoin converter with live rates  (Read 10294 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
Private Internet Access™ - No logs, Unlimited Bandwidth, PC Magazine's Editor's Choice
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1430245021
Hero Member
*
Offline Offline

Posts: 1430245021

View Profile Personal Message (Offline)

Ignore
1430245021
Reply with quote  #2

1430245021
Report to moderator
1430245021
Hero Member
*
Offline Offline

Posts: 1430245021

View Profile Personal Message (Offline)

Ignore
1430245021
Reply with quote  #2

1430245021
Report to moderator
1430245021
Hero Member
*
Offline Offline

Posts: 1430245021

View Profile Personal Message (Offline)

Ignore
1430245021
Reply with quote  #2

1430245021
Report to moderator
Stephen Gornick
Legendary
*
Offline Offline

Activity: 1582



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

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
Legendary
*
Offline Offline

Activity: 1218


Gerald Davis


View Profile

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.
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
Legendary
*
Offline Offline

Activity: 938


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 | GPG keyid 1DC91318EE785FDE | Gliph: lightning bicycle tree music | Mycelium, a swift & secure Bitcoin client for Android | LocalBitcoins
Bitcoin Oz
Hero Member
*****
Offline Offline

Activity: 686


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
Full Member
***
Offline Offline

Activity: 152

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!