Pages:
Author

Topic: [In-Development] BitPrice.link - Live Bitcoin/Crypto Calculator! [Open-Source] - page 2. (Read 2726 times)

legendary
Activity: 1232
Merit: 1030
give me your cryptos
Nice to see all this interest.

Yeah, I got a friend to write some example code for me that I tested out, but unfortunately is slightly broken. Soon I'm going to stop it from running on my VPS and make the git repo public. Will edit the OP.

I need help with the JavaScript. I have already set up backend price chaching. I just need help with innerhtml.

What parts of the JavaScript do you need help with? By innerhtml, do you mean doing the live interaction with the user? Here's a super basic barebones example I put together with just BTC/USD that might help.

https://github.com/coinables/Bitcoin-USD-Price-Conversion-Tool/blob/master/js/price.js

I know the js to get the price to auto-update into a div, however for me it refuses it auto-update in the input box.

For now, I've set up a weighted average of multiple different exchanges and their bitcoin valurs, you can find it at /api/btc/usd.php and /api/usd/eur.php.

What I want the JS to do is to read the dropdown of the left text box and the value of the right dropdoen, and then get the output value from 52.62.67.167/api/*leftdropdown*/*rightdropdown*.php, multiply it by the left text box and spit it out into the right text box.

For example, to get 1 BTC = *** USD:

Fetch output from 52.62.67.167/api/btc/usd.php, multiply it by 1, then print it out where *** is.


I do not really see why there must set up an open source project for this kind of project.
Yeah,what if someone just wants to experiment with stuff? Or maybe learn the basics ? If it all works out like it's suppose to be,I think the project does have the potential to become the most used or accurate price ticker for trades.

Op,like the UI,what framework are you using? Pretty sleek!I can help you with the UI/Javascript,please update the code on github and inbox me once it's done.I've too much time on my hands lately.


Semantic UI for the dropdowns, everything else is my own.

legendary
Activity: 1442
Merit: 1188
I need help with the JavaScript. I have already set up backend price chaching. I just need help with innerhtml.

What parts of the JavaScript do you need help with? By innerhtml, do you mean doing the live interaction with the user? Here's a super basic barebones example I put together with just BTC/USD that might help.

https://github.com/coinables/Bitcoin-USD-Price-Conversion-Tool/blob/master/js/price.js

legendary
Activity: 1750
Merit: 1115
Providing AI/ChatGpt Services - PM!
I do not really see why there must set up an open source project for this kind of project.
Yeah,what if someone just wants to experiment with stuff? Or maybe learn the basics ? If it all works out like it's suppose to be,I think the project does have the potential to become the most used or accurate price ticker for trades.

Op,like the UI,what framework are you using? Pretty sleek!I can help you with the UI/Javascript,please update the code on github and inbox me once it's done.I've too much time on my hands lately.
tyz
legendary
Activity: 3360
Merit: 1533
Fetching the prices of different exchanges is not really a big deal. This can be done by writing a few lines of code. Everyone major exchanges offers a public to use API for fetching the current price and / or order books. Then, you just need to get the fiat rates. You may use the free API of Yahoo finance for that. I do not really see why there must set up an open source project for this kind of project.
legendary
Activity: 1512
Merit: 1057
SpacePirate.io
It's not working for me at the moment, but maybe you're working it today.  The site loads but I don't think the javascript is firing correctly on your key event. Your bitcoinprices variable may need to be initialized before using it in a calculation.


Chrome Version 54.0.2840.59 beta-m (64-bit)
Code:
Uncaught ReferenceError: bitcoinprices is not defined
    at update (http://52.62.67.167/Assets/JS/update.js:4:24)
    at HTMLInputElement.onkeyup (http://52.62.67.167/:20:86)

legendary
Activity: 2424
Merit: 1148
I am actually building a similar site but for personal use only (family and friends) my end goal is to have a site much like Preev but auto converting the cryptos I trade and possibly having a portfolio section.

Not sure I will be any help but am happy to help where I can.
full member
Activity: 140
Merit: 100
I suggest releasing the source code now if your goal is to do that eventually anyways. That way anyone interested in helping can go right ahead and submit patches without any commitment.
legendary
Activity: 1232
Merit: 1030
give me your cryptos
I'm currently building a site based on the same idea as preev.com.

It would be awesome if you guys could come up with ideas and even help with the site!

https://www.github.com/Sir-Lagsalot/BitPrice

Planned Features:
 - Wide range of exchanges
 - Faster than preev
 - More exchange options than preev
 - Email updates
 - Bitcoin stats

Status

Right now it's very primitive, and only works on the default BTC to USD. Cannot choose exchanges, but is an average of 17 different exchanges.
Pages:
Jump to: