RE: How to view KuCoin exchange prices in Google Sheets

You are viewing a single comment's thread from:

How to view KuCoin exchange prices in Google Sheets

in crypto •  3 years ago 

Hi matbest! i try it right now but it seems doesn't work!

function Get_KuCoinPrice(market)
{
var url = "https://api.kucoin.com/api/v1/prices?currencies="+market; // market è la cella
// var response = UrlFetchApp.fetch(url);
var response = UrlFetchApp.fetch(url);
Logger.log(response.getContentText());

var text = response.getContentText();
var myjson = JSON.parse(text);
var price = myjson.data.lastDealPrice;
return price;
}

i change it in this way.... can you help me?

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!