Does anybody know how I can grab the BTC or USD price of VTR for Google scripts or javacript?
For instance I can do it with my other altcoins listed on poloniex as follows for DECRED:
function getDCRtoBTCpoloniex()
//Works
{
var url = "https://poloniex.com/public?command=returnTicker";
var response = UrlFetchApp.fetch(url);
var test = response.getContentText();
var myjson = JSON.parse(test);
//var leng = myjson.data.length;
var BTC_DCR = myjson["BTC_DCR"];
var price = BTC_DCR.last;
return parseFloat(price);
}