https://api.coindesk.com/v1/bpi/currentprice .json
Код: Выделить всё
function CoinbaseBTCPrice(){
$.ajax({
url: "https://api.coindesk.com/v1/bpi/currentprice.json",
success: function(bitcoinPrice){
console.log(bitcoinPrice.bpi.USD.rate)
}
})
}
Подробнее здесь: https://stackoverflow.com/questions/572 ... inbase-api
Мобильная версия