Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Bug in currency service #14

Open
kendallb opened this issue Jul 14, 2022 · 4 comments
Open

Bug in currency service #14

kendallb opened this issue Jul 14, 2022 · 4 comments

Comments

@kendallb
Copy link

I actually tried to open a support ticket about this right now, but I get an error saying the support ticket cannot be opened? So figured I would post it here:


Your currency service broke this morning and suddenly started returning a non 1.0 value for USD -> USD. Actually I think until now it never returned that in the response but today it started returning a non parity number of 1.000268. Now I know inflation is a bit nuts, but that is crazy :)

We had a bug on our end in that we were requesting rates against itself so it messed some stuff up on our end, so I will fix that. But you may wan to fix the service on your end.

{
success: true,
terms: "https://currencylayer.com/terms",
privacy: "https://currencylayer.com/privacy",
timestamp: 1657814824,
source: "USD",
quotes: {
USDUSD: 1.000268,
USDEUR: 0.996755,
USDGBP: 0.84608,
USDCAD: 1.31048,
USDPLN: 4.79665
}
}
@othenos
Copy link

othenos commented Jul 19, 2022

I had the same problem as well. (both, not being able to leave a ticket and the 1.000268). I sent a message to apilayers.com, which might be their parent company. No response from them yet. I'll comment back here if I get any information.

@kmed1717
Copy link

@Mike-Robinson @kendallb My company is having the same problem and I'm wondering if the optimal solution is to hard code the value of USD to 1, but that brings into question the conversion equation being based on USD at the rate being sent.

Was wondering, have you found a solution to the issue yet?

@kendallb
Copy link
Author

The solution we took was to simply never ask for USD->USD again, and just leave it set to 1:1 in our currency tables.

@othenos
Copy link

othenos commented Oct 11, 2022 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants