About Services Tools Blog Contact us

Live Currency Converter

Converts an amount between two currencies using a live rate, with a swap button. The rate is kept in the browser for a short time.

  • Market Data & Share Prices
  • Cross-sector
  • Tool
  • Product
  • Hybrid
  • 2025

The problem

Someone who needs a quick rate has to open a finance site and copy numbers into a calculator. Every new amount means doing it again.

What it does

You type an amount and pick two currencies. The page asks Yahoo Finance for the rate and asks ExchangeRate-API instead if that fails. It multiplies the amount by the rate and shows the total with the rate and a last-updated line. The swap button reverses the pair. Nothing is stored on the server, and the demo uses a fixed example rate.

Outcomes

  • The converted total appears without leaving the page.
  • The rate and a last-updated line are shown beside the total.
  • The swap button reverses the pair and recalculates.
  • A repeat lookup within a short time reuses the stored rate and does not fetch again.

Simplified mockup

Interactive preview with sample data. Nothing is sent to a server.

Live Currency Converter

Fixed demo rate

Pebble Court trading desk · sample amount, not a live quote

Pair

The total updates as the amount is typed. Swap exchanges the codes and uses the inverse rate.

Converted Cache warm
117.00 EUR
1 GBP = 1.1700 EUR
Last updated 09:41, 10 Oct 2026 Host requests 0

Browser cache

5 min
Host requests
0
This demo never fetches
Held since
09:41
Expires 09:46
Server cache
None
Browser only
Warm pairs
PairRateSourceExpires
GBP to EUR1.1700cached09:46
EUR to GBP0.8547inverse09:46
GBP to USD1.3100cached09:46
USD to GBP0.7634inverse09:46
EUR to CHF0.9200cached09:44
Pence above £116 on a £100 conversion

The 09:41 bar is 100 pence, so £117.00. That is the rate held in the browser. Repeat lookups inside five minutes do not leave the page.

Quote path

Cache hit
Ready. The pair is already held.
If the first quote fails
Simulated. Nothing is requested from a host.

How it works

  1. Take an amount and two currency codes.
  2. Read a live rate from Yahoo Finance, or from ExchangeRate-API if that fails.
  3. Keep the rate in the browser for a short time.
  4. Multiply the amount by the rate and show the total.
  5. Swap the two currencies and recalculate.

Pipeline

flowchart LR
  Amt[Amount] --> Pair[Currency pair]
  Pair --> Rate[Live rate]
  Rate --> Cache[Browser cache]
  Cache --> Result[Converted total]
  Swap[Swap] --> Pair