Compare commits

..

No commits in common. "51b57d570f6f220f88e8bc27c01b5200899c64fa" and "bfa457adc7283221557ccd52a773577493fb6020" have entirely different histories.

3 changed files with 5 additions and 6 deletions

View File

@ -24,10 +24,9 @@ class XMRData extends EventEmitter {
axios.get("https://bitpay.com/api/rates/eur").catch(err => log.error(err.config.url, err.message)),
// axios.get("https://shapeshift.io/marketinfo/btc_xmr").catch(err => log.error(err.config.url, err.message)),
axios.get("https://api.morphtoken.com/rates").catch(err => log.error(err.config.url, err.message)),
// axios.get("https://xmr.to/api/v2/xmr2btc/order_parameter_query/").catch(err => log.error(err.config.url, err.message)),
axios.get("https://api.binance.com/api/v3/ticker/price?symbol=XMRBTC").catch(err => log.error(err.config.url, err.message)),
axios.get("https://xmr.to/api/v3/xmr2btc/order_parameter_query/").catch(err => log.error(err.config.url, err.message)),
]).then(resp => {
let bitpay = null, morphtoken = null, binance = null, morphtoken_xmr = null;
let bitpay = null, morphtoken = null, xmrto = null, morphtoken_xmr = null;
if (resp[0] != undefined) {
bitpay = resp[0].data.rate;
@ -39,11 +38,11 @@ class XMRData extends EventEmitter {
}
if (resp[2] != undefined) {
binance = (Math.round((bitpay * resp[2].data.price) * 100) / 100) + "€";
xmrto = (Math.round((bitpay * resp[2].data.price) * 100) / 100) + "€";
}
}
this.emit("data", { morphtoken, binance, morphtoken_xmr });
this.emit("data", { morphtoken, xmrto, morphtoken_xmr });
});
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

View File

@ -107,7 +107,7 @@
</div>
<div class="databox">
<img class="icon" src="img/binance.png"><div class="data d-monero-binance">---</div>
<img class="icon" src="img/xmrto.png"><div class="data d-monero-xmrto">---</div>
</div>
</div>