You are viewing a single comment's thread from:

RE: How to view KuCoin exchange prices in Google Sheets

in #crypto4 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.06
TRX 0.30
JST 0.058
BTC 70538.58
ETH 2178.56
USDT 1.00
SBD 0.53