Pages:
Author

Topic: Dead simple Bitcoin converter with live rates (Read 13940 times)

newbie
Activity: 1
Merit: 0
Emirates E visa Online provides Emirates visa, you can apply Emirates Visa Online at https://www.emiratesevisaonline.com
full member
Activity: 270
Merit: 130
DeLouvois.com Bitcoin Luxury Marketplace Est. 2016
Hey man, I've been using Preev on a daily basis for about 10 years, Daily
What happened to it ?  Seems to have gone away sometimes around 2020(*) 

Anyway, I'd happy to host it again & I sent you a PM. let me know.


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.
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).
newbie
Activity: 9
Merit: 0
its down? no idea how I found this, but I've been looking at this everyday for past few years. please bring it back! Smiley
newbie
Activity: 1
Merit: 0
This tool has really caught on and I know plenty of people who use it. However, the conversion rates are off, and that causes a lot undue stress. Could I suggest using https://www.x-rates.com/ to get proper conversion rates or really anything else that updates regularly and puts out similar rates to what google would tell you Smiley
full member
Activity: 191
Merit: 100
Have you created the widget for this yet? We're all waiting and willing to donate.
legendary
Activity: 3038
Merit: 1032
RIP Mommy
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.
sr. member
Activity: 294
Merit: 250
Would love this as a widget.
full member
Activity: 191
Merit: 100
You need to create a wordpress widget for this. I need it for http://www.bitcoinvalues.net/bitcoin-calculator-calculate-current-market-value.html
hero member
Activity: 686
Merit: 500
Wat
If you build a html widget I will stick it on http://bitcoin.me
legendary
Activity: 1358
Merit: 1001
https://gliph.me/hUF
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
newbie
Activity: 41
Merit: 0
Sorry, I confused your converter with this:

http://sanescreen.org/converter/
member
Activity: 76
Merit: 87
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!
donator
Activity: 1218
Merit: 1079
Gerald Davis
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.
hero member
Activity: 994
Merit: 501
PredX - AI-Powered Prediction Market
I wish it had BRL...

But nice anyway! Very elegant design!
newbie
Activity: 41
Merit: 0
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.
member
Activity: 76
Merit: 87
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
member
Activity: 76
Merit: 87
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.
full member
Activity: 175
Merit: 101
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).
member
Activity: 76
Merit: 87
Thanks Electron!

I think you're right about price fluctuations; after I build a widget I'll contact some merchants.
full member
Activity: 139
Merit: 100
What's Your Gig?
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.
Pages:
Jump to: