Closed leto closed 6 years ago
@leto Not sure, or it will help you. https://github.com/MyHush/hush-ng/pull/44
function priceHUSH() {
jQuery.getJSON('https://api.coinmarketcap.com/v1/ticker/hush/?convert=EUR')
.done(function(data){
$('.hush_usd').text(data[0]['price_usd']);
$('.hush_eur').text(data[0]['price_eur']);
$('.hush_btc').text(data[0]['price_btc']);
});
}
priceHUSH();
setInterval(priceHUSH, 20000);
USD: <span class="hush_usd"></span>
EUR: <span class="hush_eur"></span>
BTC: <span class="hush_btc"></span>
Working on it in dev_fee
branch
was my first hack at it and now it looks like:
@OleksandrBlack thanks for your help, we are using the same API 😄
Also planning on adding the daily/weekly/monthly percent changes, that takes some more work.
@leto take a look at my pr https://github.com/MyHush/hush-ng/pull/44
https://api.coinmarketcap.com/v1/ticker/hush/?convert=EUR
?convert=EUR - Provides an opportunity to withdraw information in Euro
https://api.coinmarketcap.com/v1/ticker/hush/