fsyms is a required param
fetch запрос выдает ошибку
const API_URL_SEARCH = 'https://min-api.cryptocompare.com/data/pricemultifull'
const fetchData = () => {
fetch(API_URL_SEARCH, {
params: {
fsym: 'BTC',
tsym: 'USD',
}
})
.then(res => res.json())
.then(data => {
console.log(data);
return data;
})
.catch(error => {
console.error(error.message)
})
}
useEffect(() => {
fetchData();
}, [])
Источник: Stack Overflow на русском