I use a Google Sheet for this.
~snip~
sorry i'm noob about it!
but do i have to use this code for different coins?
and do i need to run this on private server?
You can edit the coin you want to watch here:
function getCryptowatchPrice(exchange, pair) {
var response = UrlFetchApp.fetch('https://api.cryptowat.ch/markets/' + exchange + '/' + pair + '/price');
var json = response.getContentText();
var data = JSON.parse(json);
return data.result.price;
}
When you call
getCryptowatchPrice(exchange, pair) you are the function 2 parameters (exchange and pair).
In your Sheet you simply just call the function with the pair you want to check.
E.g.
getCryptowatchPrice('binance', 'xmrbtc') to see the XMR/BTC pair on binance.
You can read more about the cryptowat.ch API here:
https://cryptowat.ch/docs/api.
And more about how to create own functions in a google sheet here:
https://www.makeuseof.com/tag/create-custom-functions-google-sheets/.