Mid-Market Rate vs Bank Rate: Why Conversions Differ and What to Use

6 min read

Mid-Market Rate vs Bank Rate: Why Conversions Differ and What to Use

If you have ever compared a live exchange rate with the rate on a bank statement or a card payment, you have seen the gap. The mid-market rate vs bank rate difference is real, it is usually between a fraction of a percent and several percent, and it is not a bug. It is the price of the service, and it is often hidden inside the rate instead of shown as a fee.

This article explains where the gap comes from, how to measure it from a quote, and which rate your own product should display. If you build checkouts, invoicing or dashboards, getting this wrong means numbers that never reconcile with what customers actually paid.

What the mid-market rate is

Currency markets quote two prices for a pair at any moment: a bid (what a dealer will pay for the base currency) and an ask (what a dealer will sell it for). The ask is always a little higher than the bid. The difference is the spread.

The mid-market rate is the midpoint between the two. It is a reference point: the "fair" price in the middle, before anyone adds a fee for doing the trade. Nobody is obliged to trade at exactly that price, but it is the neutral number that comparison tools and data feeds are built around.

A simple example, with made-up numbers:

QuoteEUR/USD
Bid1.0840
Ask1.0844
Mid-market1.0842

For large wholesale trades the spread can be tiny. For retail customers it is wider, because the provider adds its own margin on top.

What a bank rate is

A bank rate (or card rate, or payment-provider rate) is the rate a retailer-facing provider offers you. It typically takes the mid-market rate and applies a margin that covers:

  • Spread and risk. The provider holds the currency between your trade and its own hedge, and prices in the chance that the market moves.
  • Cost of service. Compliance, settlement, support and card-network costs.
  • Profit. Often the largest part, and the part that varies the most between providers.
  • Timing. Many providers refresh rates once or a few times a day, so the rate you get can be hours old.

Some providers advertise "no fees" and recover everything through the rate. Others show a low rate margin plus a visible fixed fee. Neither is wrong, but you cannot compare them without converting everything to one number.

How big is the hidden margin?

Take an example. You send EUR 1,000. The reference rate at that moment is 1.0842 USD per EUR, so the reference outcome is USD 1,084.20. Your provider quotes 1.0620.

  • Reference result: 1,000 × 1.0842 = USD 1,084.20
  • Provider result: 1,000 × 1.0620 = USD 1,062.00
  • Difference: USD 22.20
  • Margin: (1.0842 − 1.0620) / 1.0842 ≈ 2.05%

That 2.05% never appears as a line item. It is baked into the rate. Add a fixed transfer fee and the real cost is higher still. These numbers are examples, not typical or current values.

The formula for the hidden margin on a quote is:

margin % = (reference_rate - offered_rate) / reference_rate * 100

This works when you are converting from the base into the quote currency and receiving less than the reference. If you are buying the base currency and the offered rate is higher, flip the sign.

Measuring the margin in code

You can check any quote against a live reference rate. The sketch below uses Python's Decimal so no float error creeps in. It reads the key from an environment variable and refuses to compute a margin from a stale rate.

import os
import json
import urllib.request
from decimal import Decimal

API = "https://api.getratesapi.com"

def get_rate(base: str, quote: str) -> dict:
    req = urllib.request.Request(
        f"{API}/v1/rates/{base}/{quote}",
        headers={"Authorization": f"ApiKey {os.environ['GETRATESAPI_KEY']}"},
    )
    with urllib.request.urlopen(req, timeout=10) as resp:
        return json.load(resp)

def hidden_margin_percent(base: str, quote: str, offered: str) -> Decimal:
    data = get_rate(base, quote)
    if data["status"] != "fresh":
        raise RuntimeError(f"reference rate is stale (as_of {data['as_of']})")
    reference = Decimal(data["rate"])
    offered_rate = Decimal(offered)
    return (reference - offered_rate) / reference * Decimal(100)

margin = hidden_margin_percent("EUR", "USD", "1.0620")
print(f"Hidden margin: {margin.quantize(Decimal('0.01'))}%")

Each rate returns as_of and status, so you know how old the reference is before you draw conclusions. Rates are JSON strings, so Decimal(data["rate"]) is exact. Only round at the end, for display. For background on that, see currency conversion rounding without floating-point errors.

Why rates from different sources never match exactly

Even two honest sources of the same "market rate" will differ a little. Common reasons:

  1. Different observation times. FX moves continuously. A rate that is 60 seconds old is not the same as one that is 5 seconds old.
  2. Different inputs. Aggregating many venues gives a slightly different midpoint than reading one.
  3. Derived pairs. When no market quotes a pair directly, it is computed through a common currency such as USD or EUR, which combines two rates with two timestamps. See cross rates explained.
  4. Rounding and precision. One source shows 4 decimals, another 6.
  5. Fixing vs live. An official daily fixing is a single published value for a given time, while a live rate keeps moving.

When you reconcile, compare timestamps first, then the rate, and expect small differences rather than exact matches.

Which rate should your app show?

It depends on what the number is for.

Displaying an indicative price

For "about how much is this in my currency" displays, dashboards and totals, a live reference rate is the right choice. It is neutral and easy to explain. A multi-currency balance view is a good example; see how to show a total balance in one currency.

Charging a customer

When a customer actually pays in a different currency, show the rate you will really charge, not the reference rate. If you add a margin, apply it explicitly and store it so support can explain the final amount. We cover this step by step in exchange rate markup: how to add a margin to live rates correctly. Then freeze the quote for a short window, as described in how to lock an exchange rate at checkout.

Accounting and refunds

Your books should record the rate that was actually applied to the transaction, plus the source and timestamp. A reference rate is a good independent check, but it is not a replacement for what was really charged. The articles on foreign currency invoicing and refunds list the fields worth storing.

Being transparent

If your product converts money for users, a short note such as "Rate includes a 1.5% margin" builds more trust than a rate that quietly differs from what they see online. Customers will compare.

Where GetRatesAPI fits

GetRatesAPI returns one live rate per pair, with its observation time and status. It is a data feed for building your own conversion logic, not a payments or trading service and not a bank fixing. Crypto prices refresh every 10 seconds, fiat currencies and metals every 60 seconds. Any pair works, even if no market quotes it directly, and each response says whether the rate is direct or derived.

For a quick conversion with the amount handled exactly, use the convert endpoint:

curl "https://api.getratesapi.com/v1/convert?from=EUR&to=USD&amount=1000" \
  -H "Authorization: ApiKey $GETRATESAPI_KEY"

The response contains a converted_amount that is not rounded; you round it for display or invoicing. The convert endpoint documentation lists all fields, and the current rate reference covers single-pair lookups.

Quick checklist

  • Use a live reference rate for comparisons, estimates and dashboards.
  • Store the rate, its as_of and your margin with every charged conversion.
  • Never silently mix a reference rate and a charged rate in the same screen.
  • Reject or flag stale reference rates before computing margins.
  • Keep amounts as exact decimals until the last step, then round to the currency's minor units.

Try it with your own quotes

The easiest way to see the gap is to take a real bank or card quote and compare it with a live reference rate. You can do that in the dashboard playground on the free plan, no credit card needed. Sign up for a free API key, or see the plans and pricing if you expect higher volume.

All articles →
Mid-Market Rate vs Bank Rate: Why They Differ — GetRatesAPI