Foreign Exchange Rates API: how to get ask rates

Highlighted
Regular Visitor

Foreign Exchange Rates API: how to get ask rates

I am using Foreign Exchange Rates API. When I submit the request with source currency: USD and destination currency: THB, I receive bid rate as a result. How could I get an ask rate as from visa exchange rate calculator. 

 

For today, the calculator displays 1 United States Dollar = 30.2999700000 Thai Baht. I need 30.29997 as a result from the API.

 

I try sending source currency: THB and destination currency: USD and I get 1 THB = 0.033003 USD. Then I do inversion by 1/0.033003, it yields 30.30027573250917 which is not equal to my expectation.

 

Thank you.

2 REPLIES 2
Highlighted
Visa Dev Moderator

Re: Foreign Exchange Rates API: how to get ask rates

Hey @Choopong,

 

Foreign Exchange Rates API in Sandbox provides simulated data and not real-time data. Once you move to production you will be able to work with real data. The rate you will get in production will be correct and you can also markup on it before publishing to your customers.

 

 



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

Thanks,
Diana

Highlighted
Regular Visitor

Re: Foreign Exchange Rates API: how to get ask rates

Sorry, I am not in a sandbox. I am currently using production API. My question is about how to invoke an API to achieve the same value as the Visa exchange rate calculator. Did I tag the question in an incorrect group?