Bitcoin Forum
April 19, 2024, 05:50:26 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Dead simple Bitcoin converter with live rates  (Read 13885 times)
fennec (OP)
Member
**
Offline Offline

Activity: 76
Merit: 87



View Profile WWW
June 14, 2011, 06:55:43 AM
Merited by hugeblack (50), ABCbits (15), LoyceMobile (6), Welsh (4), DdmrDdmr (1), tranthidung (1)
 #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
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713549026
Hero Member
*
Offline Offline

Posts: 1713549026

View Profile Personal Message (Offline)

Ignore
1713549026
Reply with quote  #2

1713549026
Report to moderator
1713549026
Hero Member
*
Offline Offline

Posts: 1713549026

View Profile Personal Message (Offline)

Ignore
1713549026
Reply with quote  #2

1713549026
Report to moderator
1713549026
Hero Member
*
Offline Offline

Posts: 1713549026

View Profile Personal Message (Offline)

Ignore
1713549026
Reply with quote  #2

1713549026
Report to moderator
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
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.

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


fennec (OP)
Member
**
Offline Offline

Activity: 76
Merit: 87



View Profile WWW
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
Merit: 0


View Profile
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.
fennec (OP)
Member
**
Offline Offline

Activity: 76
Merit: 87



View Profile WWW
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
Merit: 100

What's Your Gig?


View Profile WWW
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 (OP)
Member
**
Offline Offline

Activity: 76
Merit: 87



View Profile WWW
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
Merit: 101


View Profile
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 (OP)
Member
**
Offline Offline

Activity: 76
Merit: 87



View Profile WWW
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 (OP)
Member
**
Offline Offline

Activity: 76
Merit: 87



View Profile WWW
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
Newbie
*
Offline Offline

Activity: 41
Merit: 0


View Profile WWW
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: 966
Merit: 501


Leading Crypto Sports Betting & Casino Platform


View Profile
October 13, 2011, 07:14:10 PM
 #12

I wish it had BRL...

But nice anyway! Very elegant design!

..Stake.com..   ▄████████████████████████████████████▄
   ██ ▄▄▄▄▄▄▄▄▄▄            ▄▄▄▄▄▄▄▄▄▄ ██  ▄████▄
   ██ ▀▀▀▀▀▀▀▀▀▀ ██████████ ▀▀▀▀▀▀▀▀▀▀ ██  ██████
   ██ ██████████ ██      ██ ██████████ ██   ▀██▀
   ██ ██      ██ ██████  ██ ██      ██ ██    ██
   ██ ██████  ██ █████  ███ ██████  ██ ████▄ ██
   ██ █████  ███ ████  ████ █████  ███ ████████
   ██ ████  ████ ██████████ ████  ████ ████▀
   ██ ██████████ ▄▄▄▄▄▄▄▄▄▄ ██████████ ██
   ██            ▀▀▀▀▀▀▀▀▀▀            ██ 
   ▀█████████▀ ▄████████████▄ ▀█████████▀
  ▄▄▄▄▄▄▄▄▄▄▄▄███  ██  ██  ███▄▄▄▄▄▄▄▄▄▄▄▄
 ██████████████████████████████████████████
▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄
█  ▄▀▄             █▀▀█▀▄▄
█  █▀█             █  ▐  ▐▌
█       ▄██▄       █  ▌  █
█     ▄██████▄     █  ▌ ▐▌
█    ██████████    █ ▐  █
█   ▐██████████▌   █ ▐ ▐▌
█    ▀▀██████▀▀    █ ▌ █
█     ▄▄▄██▄▄▄     █ ▌▐▌
█                  █▐ █
█                  █▐▐▌
█                  █▐█
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀█
▄▄█████████▄▄
▄██▀▀▀▀█████▀▀▀▀██▄
▄█▀       ▐█▌       ▀█▄
██         ▐█▌         ██
████▄     ▄█████▄     ▄████
████████▄███████████▄████████
███▀    █████████████    ▀███
██       ███████████       ██
▀█▄       █████████       ▄█▀
▀█▄    ▄██▀▀▀▀▀▀▀██▄  ▄▄▄█▀
▀███████         ███████▀
▀█████▄       ▄█████▀
▀▀▀███▄▄▄███▀▀▀
..PLAY NOW..
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
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 (OP)
Member
**
Offline Offline

Activity: 76
Merit: 87



View Profile WWW
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
Newbie
*
Offline Offline

Activity: 41
Merit: 0


View Profile WWW
October 17, 2011, 09:01:11 PM
 #15

Sorry, I confused your converter with this:

http://sanescreen.org/converter/
Newar
Legendary
*
Offline Offline

Activity: 1358
Merit: 1000


https://gliph.me/hUF


View Profile
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
Merit: 500


Wat


View Profile WWW
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: 191
Merit: 100



View Profile
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

DISCIPLINA — The First Blockchain For HR & Education
From core developers of Cardano, PoS minting, unique Web Of Trust & Privacy algorithms. Be the first, join us!
  WEBSITE  TELEGRAM  ANN  BOUNTY  LINKEDIN  WHITEPAPER  Referral Program 5%
V4Vendettas
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250



View Profile
February 23, 2014, 07:34:40 AM
 #19

Would love this as a widget.

TheButterZone
Legendary
*
Offline Offline

Activity: 3052
Merit: 1031


RIP Mommy


View Profile WWW
June 06, 2015, 09:01:09 AM
 #20

Having Localbitcoins in the mix is skewing the average high (349.9 makes average go to 243.2 with the rest ~224-227). I would have an average of the arbitraged exchanges (Bitstamp, Bitfinex, BTC-E, etc...) separate from the average of the in-person ones (Localbitcoins, Mycelium Local Trader if you can pull their data).

It seems like every time I turn around, someone in Marketplace is saying they use preev, but the price skewing high means they get less BTC.

Saying that you don't trust someone because of their behavior is completely valid.
Pages: [1] 2 »  All
  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!