Minimum and maximum exchange rates: setting bounds

Updated November 8, 2026

Set bounds from the rates your direction can accept, then test the rule inside and outside that range. In Exrule, the minimum and maximum constrain the calculated result. When they conflict with rate change protection, these bounds take priority.

Write down units before values

State how many destination units correspond to one source unit. Without that record, minimum and maximum are easy to confuse with what benefits the exchanger. A larger number does not mean a better outcome for the owner in every direction. First define exactly what the number in your rule represents.

For this illustrative example, use units of B per unit of A. Suppose the team permits values between 3.20 and 3.60. This is a fictional operating range, not a market or income recommendation. The owner determines acceptable bounds from the business's conditions; the operator enters them for the specific direction.

Test three cases against the same range

These examples isolate the bounds after rounding. The deviation and rounding guide linked below explains the full calculation order.

If the result stays at the minimum or maximum, check the reference and deviation first. The market offer may have moved outside your acceptable range. Do not widen the range merely to match the market. The responsible employee should separately approve a new acceptable value.

  • The result after deviation and rounding is 3.45. It falls within 3.20–3.60, so the bounds themselves do not change it.
  • The result is 3.12. The minimum raises it to 3.20.
  • The result is 3.74. The maximum caps it at 3.60.

Distinguish bounds from change protection

Bounds define an acceptable rate value. Change protection through max_change_percent limits each run’s change relative to the last published rate. These are separate checks. The current Exrule contract gives bounds priority when both constraints cannot be met together. In that conflict, the corresponding bound is exported; the pair is not skipped solely because of this conflict.

Illustrative example: the previous rate is 100 and the change limit is 1%. The lower edge of that change range is 99. If a new maximum is 98 and calculation produces 97, there is no overlap. Giving the maximum priority produces 98. Do not expect 99, which would violate the new maximum.

Where the ranges overlap, change protection still applies. After editing bounds, compare Now in file with Next run. Check the final value rather than only the rule-save confirmation. Preview does not publish the file.

Check inverse presentation separately

For a direct rate between 2 and 4 units of B per A, the inverse range is 0.25 to 0.5 units of A per B. The inverse lower bound is 1 / 4; the upper bound is 1 / 2. Simply changing the currency labels while keeping the numbers produces a different rule.

This example explains inverse-rate arithmetic. It does not claim that an interface display-inversion switch automatically rewrites your bounds. After changing presentation, check the units in the rule editor. Document agreed conditions separately for direct and inverse directions.

Check deviation and rounding before the bounds

Common mistakes with bounds

After publication, check both the XML rate and the value imported by the platform. If the website rounds the number again, check the exchange page result too. Keep the agreed range and its review date in the team's operating record.

  • Entering a minimum above the maximum without checking the validation message.
  • Copying a range to a pair with a different rate scale.
  • Treating a bound as a profit guarantee without checking the exchanger's own conditions.
  • Expecting the maximum to disable a direction rather than cap its value.

Check the precision of the bound itself

Check that the agreed boundary value can be transferred at the precision your platform accepts. If the maximum has more decimal places than the importer accepts, a panel check is incomplete. Record the expected imported result and ask the platform owner to show the stored number. Locate the precision change before adjusting a bound to compensate for website rounding.

Related rules

Choose the calculation reference for a direction

Let's talk about setup

Write to us by email or on Telegram and we'll answer your questions and help you choose a plan.

Telegram @exrule_support
Email support@exrule.com