Super simple Bitcoin converter with real-time rates

19 replies 140 views
the_gangMember
Posts: 13 · Reputation: 130
#1Aug 17, 2025, 11:49 PM
Hey everyone, I whipped this up over the weekend. It's a tool where you can convert any amount to or from BTC, or just check the current exchange rate. Give it a shot by entering how many Bitcoins you have and see how the dollar value changes (hopefully goes up) over time. You can also put in a USD amount to convert to Bitcoin (more currencies are on the way). Check it out at preev.com. Would love to hear your thoughts! Feel free to drop comments, questions, or any feedback. P.S. Support for Internet Explorer is kinda limited right now.
4 Reply Quote Share
LuckyL3dgerFull Member
Posts: 52 · Reputation: 384
#2Aug 17, 2025, 11:56 PM
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.
3 Reply Quote Share
the_gangMember
Posts: 13 · Reputation: 130
#3Aug 18, 2025, 03:40 AM
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.
2 Reply Quote Share
jake_farmMember
Posts: 1 · Reputation: 102
#4Aug 19, 2025, 12:13 PM
. 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.
2 Reply Quote Share
the_gangMember
Posts: 13 · Reputation: 130
#5Aug 19, 2025, 01:32 PM
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.
5 Reply Quote Share
Posts: 11 · Reputation: 166
#6Aug 20, 2025, 01:21 PM
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.
2 Reply Quote Share
the_gangMember
Posts: 13 · Reputation: 130
#7Aug 20, 2025, 03:07 PM
Thanks Electron! I think you're right about price fluctuations; after I build a widget I'll contact some merchants.
1 Reply Quote Share
gas_moonMember
Posts: 1 · Reputation: 113
#8Aug 22, 2025, 07:15 AM
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).
0 Reply Quote Share
the_gangMember
Posts: 13 · Reputation: 130
#9Aug 23, 2025, 01:24 AM
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.
3 Reply Quote Share
the_gangMember
Posts: 13 · Reputation: 130
#10Aug 23, 2025, 01:54 AM
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
4 Reply Quote Share
davealphaSenior Member
Posts: 257 · Reputation: 975
#11Aug 25, 2025, 12:48 PM
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.
2 Reply Quote Share
BasedGangFull Member
Posts: 46 · Reputation: 340
#12Aug 25, 2025, 04:26 PM
I wish it had BRL... But nice anyway! Very elegant design!
2 Reply Quote Share
gwei_farmMember
Posts: 9 · Reputation: 97
#13Aug 25, 2025, 10:25 PM
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.
1 Reply Quote Share
the_gangMember
Posts: 13 · Reputation: 130
#14Aug 25, 2025, 10:31 PM
I never got around to creating a merchant tool, unfortunately. Which script are you referring to? Thanks! Shouldn't be too hard. I might have some time in the next week, so I'll see what I can do. 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!
3 Reply Quote Share
davealphaSenior Member
Posts: 257 · Reputation: 975
#15Aug 26, 2025, 12:17 AM
Sorry, I confused your converter with this: http://sanescreen.org/converter/
4 Reply Quote Share
Posts: 4 · Reputation: 149
#16Aug 26, 2025, 02:02 AM
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
3 Reply Quote Share
kevin404Member
Posts: 12 · Reputation: 129
#17Aug 26, 2025, 03:45 AM
If you build a html widget I will stick it on http://bitcoin.me
2 Reply Quote Share
Posts: 2 · Reputation: 113
#18Aug 26, 2025, 03:59 AM
You need to create a wordpress widget for this. I need it for http://www.bitcoinvalues.net/bitcoin-calculator-calculate-current-market-value.html
4 Reply Quote Share
atlas2009Member
Posts: 3 · Reputation: 125
#19Aug 26, 2025, 06:41 AM
Would love this as a widget.
1 Reply Quote Share
GrimTokenMember
Posts: 11 · Reputation: 99
#20Aug 26, 2025, 07:26 AM
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.
3 Reply Quote Share

Related topics