printfn / fend

Arbitrary-precision unit-aware calculator
https://printfn.github.io/fend
MIT License
587 stars 50 forks source link

Currency exchange rate out of date #259

Closed probablykasper closed 3 months ago

probablykasper commented 5 months ago

https://printfn.github.io/fend uses the UN exchange rate from 2023-12-15:

> 1eur to nok
approx. 11.8144552319 NOK

The latest UN rate shown to me is from 2023-12-31 (11.23196 NOK). It could be getting cached by https://corsproxy.io.

In this case it should ideally be using the daily ECB rate instead, which is currently 11.2915 NOK

printfn commented 5 months ago

Yeah, it looks like corsproxy.io is caching it. I'm not sure if there's a good workaround since I'd rather not set up my own back-end for this.

printfn commented 3 months ago

I've replaced corsproxy.io with a custom Cloudflare worker. There should no longer be any extra caching, so I'll go and close this issue now.