      let price = json["data"]["amount"];
            return price;
        }

        async function getBitcoinPriceFromKraken() {
            let data = await getData("https://api.kraken.com/0/public/Ticker?pair=XBTUSD");
            let json = JSON.parse(data);
            let price = json["result"]["XXBTZUSD"]["a"][0];
            return price;
        }

        async function getBitcoinPriceFromCoindesk() {
            let data = await getData("https://api.coindesk.com/v1/bpi/currentprice.json");
    