headers = {
'X-CoinAPI-Key': 'CB1D352F-23E7-4D64-97AC-FB5AEF4839FD'
}
fetch('https://rest.coinapi.io/v1/exchangerate/BTC', { headers })
.then(response => response.json())
.then(data => {
console.log('Success:', data);
})
response.headers.get('x-auth-token')