Alpha Vantage

ÜCRETSİZ PREMIUM
Taraf Alpha Vantage | Güncelleyen 16 दिन पहले | Finance
Popülerlik

9.9 / 10

Gecikme

514ms

Hizmet Düzeyi

100%

Health Check

N/A

Tüm Tartışmalara Dön

Getting invalid API call

Rapid account: Olayiwolaagboolaakanji
olayiwolaagboolaakanji
2 वर्ष पहले

const options = {
method: ‘GET’,
url: ‘https://alpha-vantage.p.rapidapi.com/query’,

  params: {
    from_currency: 'primaryCurrency',
    function: `CURRENCY_EXCHANGE_RATE`,
    to_currency: 'secondaryCurrency'
  },
  headers: {
    'X-RapidAPI-Host': 'alpha-vantage.p.rapidapi.com',
    'X-RapidAPI-Key': '****************************'
  }
};

axios.request(options)
.then(res => console.log(res.data))
.catch(err => console.log(err.data))
	
	i tred to get currency rate exchange using this api with this format but i keep getting invalid api call for CURRENCY_EXCHANGE_RATE.
	The primaryCurrency is the value that will be select eg USD BTC, secondary currency is the value you wanna convert it to eg Eth

Aşağıya yorum ekleyerek tartışmaya katılın:

Yeni yorumlar göndermek için giriş yapın / kaydolun