Alpha Vantage

부분 유료
Verified
분류별 Alpha Vantage | 업데이트됨 17 दिन पहले | Finance
인기

9.9 / 10

지연 시간

514ms

서비스 수준

100%

Health Check

N/A

모든 토론으로 돌아가기

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

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입