Bitcoin Forum
May 02, 2024, 06:18:52 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 [60]
1181  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][VTR] vTorrent - Share with freedom | 2FA | HD | @Bittrex on: March 14, 2017, 10:05:15 PM
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:

Code:
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);
}
Pages: « 1 ... 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 [60]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!