You are viewing a single comment's thread from:

RE: How to view KuCoin exchange prices in Google Sheets

in #crypto3 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?

Coin Marketplace

STEEM 0.17
TRX 0.23
JST 0.035
BTC 98079.82
ETH 2722.07
SBD 3.23