Retirement Lab Exchange Rates API

The exchange-rates API from Retirement Lab — 2 operation(s) for exchange-rates.

GitHub OpenAPI

Operations 2

GET /api/exchange-rates Exchange Rates #
GET /api/exchange-rates/quote Exchange Rate Quote #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/retirementlab-app:retirementlab-app-exchange-rates-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

retirementlab-app-exchange-rates-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Income Simulator Exchange Rates API
  version: 0.1.0
tags:
- name: exchange-rates
paths:
  /api/exchange-rates:
    get:
      tags:
      - exchange-rates
      summary: Exchange Rates
      description: Return current exchange rates relative to USD.
      operationId: exchange_rates_api_exchange_rates_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Exchange Rates Api Exchange Rates Get
  /api/exchange-rates/quote:
    get:
      tags:
      - exchange-rates
      summary: Exchange Rate Quote
      description: 'Quote one pair from the provider snapshot the MCP layer converts with.


        This prefills the relocation editor''s exchange-rate field. It fails closed

        exactly like MCP conversions: no provider data means 503, never the

        approximate fallback table, so the editor asks the user to type a rate

        instead of showing a made-up one.'
      operationId: exchange_rate_quote_api_exchange_rates_quote_get
      parameters:
      - required: true
        schema:
          type: string
          maxLength: 3
          minLength: 3
          title: From Currency
        name: from_currency
        in: query
      - required: true
        schema:
          type: string
          maxLength: 3
          minLength: 3
          title: To Currency
        name: to_currency
        in: query
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExchangeRateQuoteResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    ExchangeRateQuoteResponse:
      properties:
        from_currency:
          type: string
          title: From Currency
        to_currency:
          type: string
          title: To Currency
        rate:
          type: number
          title: Rate
        provider:
          type: string
          title: Provider
        as_of:
          type: string
          title: As Of
        retrieved_at:
          type: string
          title: Retrieved At
        source_quality:
          type: string
          title: Source Quality
      type: object
      required:
      - from_currency
      - to_currency
      - rate
      - provider
      - retrieved_at
      - source_quality
      title: ExchangeRateQuoteResponse
      description: 'Today''s provider rate for one currency pair, offered as an editor prefill.


        ``rate`` uses the relocation contract''s direction: units of

        ``to_currency`` per one unit of ``from_currency``. The server never writes

        it into a scenario; the browser shows it in an editable field and the user

        saves it as their own ``caller_supplied_fixed_rate`` assumption.'
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer