BestChange exchange rate parser in Exrule
Updated December 5, 2026
A BestChange parser retrieves rates that you use as the basis for your own calculations. Exrule is an independent rate management platform. It reads data through the official API, applies your rules and produces XML for your exchanger platform to fetch. BestChange is currently the principal rate source in Exrule.
BestChange requirements and API limits are documented here. Check the requirements for the format your listing uses. BestChange account · BestChange API documentation · BestChange EREF requirements
The official API and HTML scraping
Here, an exchange rate parser retrieves and processes API data. Exrule uses your own BestChange API key. The API returns rate data by currency pair and lets you select cash rates by city.
HTML scraping reads website pages instead. BestChange prohibits this method in its FAQ and provides the official API for rate data. Connecting the source in Exrule does not require reading HTML tables.
Source data and your rate rule
A rate retrieved from the source is not yet your customer rate. In by-position mode, Exrule uses the offer at position N as the base rate. It then applies an offset in percent or absolute units, rounding and minimum and maximum rate bounds.
You can exclude your own offer from the source list so that your published rate does not become the basis for its next calculation. Position protection limits the rate change per export run. This is a separate limit, not a promise of a place in the list.
Exrule XML and the exchanger EREF
Incoming data flows from the BestChange API to Exrule. Exrule publishes XML with calculated rates, and your exchanger platform fetches it and imports the rates. Before connecting it, check whether your platform can read XML by URL and accept the file structure.
Separately, the exchanger platform produces its own Exchange Rate Export File, or EREF, for BestChange monitoring. This file contains rates and exchange conditions, including reserves and order amount limits. BestChange reads this exchanger file. Exrule does not send calculated rates or its XML to BestChange.
Rate bounds in an Exrule rule constrain the rate value. Order amount limits in EREF define the permitted exchange amount. These are different settings that you check separately.
Checks before importing rates
The workflow starts with connecting your API key and choosing a direction. You then set a rule and compare the current rate in the file with the next run result. This check shows the effect of the offset and bounds before your site imports the rate.
After import, check the rate on the exchanger platform. If the exchanger uses BestChange, check its EREF separately. A correct value in Exrule XML does not yet confirm that the platform imported it and included it in its own file.
Why the target position is not guaranteed
Position N selects the offer for the base rate, not your future place in the monitor. Other exchangers change their conditions. Your bounds may prevent the rate needed for the desired position. Calculation, platform import and EREF retrieval are also separate stages.
If source data becomes stale, market-based rules may use it during the configured grace period. After that period expires, those pairs are omitted from XML. Fixed rates remain. If a pair is missing from the export, check the source freshness as well.
Questions before connecting your platform
Establish these requirements for your exchanger:
- Which directions and cities do you need in the source data?
- Which offset and rate bounds are acceptable for each direction?
- Does your platform support XML import by URL and the required file structure?
- Where will you check the imported rate and EREF if the exchanger supplies it to the monitor?