How to use Bank of Israel FX Rates — a practical guide
If you're here, you probably want working code in five minutes. That's exactly what this guide does.
Five steps to get started
- 1Hit the OData endpoint: https://edge.boi.gov.il/FusionEdgeServer/sdmx/v2/data/…
- 2Pick currencies (USD, EUR…) and a date range.
- 3Receive structured JSON with date, currency, value and change.
- 4Cache locally; poll daily at 07:00 Israel time.
Shortest snippet that will actually run
curl "https://boi.org.il/PublicApi/GetExchangeRates?asJson=true"Common mistakes (the honest list)
Use OData instead of scraping a web page — saves hours.
Round to 2 decimals on display but keep full precision in your DB.