get_historical_rate

Pack: exchange · Endpoint: https://gateway.pipeworx.io/exchange/mcp

Get the exchange rate between two currencies on a specific date (format: YYYY-MM-DD). Returns the historical rate and date.

Parameters

NameTypeRequiredDescription
fromstringyesSource currency code (e.g., USD)
tostringyesTarget currency code (e.g., EUR)
datestringyesDate in YYYY-MM-DD format (earliest available: 1999-01-04)

Example call

Arguments

{
  "from": "USD",
  "to": "EUR",
  "date": "2023-01-15"
}

curl

curl -X POST https://gateway.pipeworx.io/exchange/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_historical_rate","arguments":{"from":"USD","to":"EUR","date":"2023-01-15"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_historical_rate', {
  "from": "USD",
  "to": "EUR",
  "date": "2023-01-15"
});

More examples

{
  "from": "GBP",
  "to": "JPY",
  "date": "2020-06-30"
}

Response shape

Always returns: from, to, rate, date

FieldTypeDescription
fromstringSource currency code (uppercase)
tostringTarget currency code (uppercase)
ratenumberHistorical exchange rate
datestringDate of the historical rate (YYYY-MM-DD)
Full JSON Schema
{
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "description": "Source currency code (uppercase)"
    },
    "to": {
      "type": "string",
      "description": "Target currency code (uppercase)"
    },
    "rate": {
      "type": "number",
      "description": "Historical exchange rate"
    },
    "date": {
      "type": "string",
      "description": "Date of the historical rate (YYYY-MM-DD)"
    }
  },
  "required": [
    "from",
    "to",
    "rate",
    "date"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "exchange": {
      "url": "https://gateway.pipeworx.io/exchange/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026