GnistAI GnistAI
Log in

ECB FX Rates

Simple currency conversion — quick FX lookups with auto-detected latest ECB reference rates.

Overview   |   MCP   |   REST API   |   OpenAPI   |   CLI   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 4 tools tools 4 4 type: api wrapper type type api wrapper api wrapper lifecycle: maintained lifecycle lifecycle maintained maintained Finance

Data source: European Central Bank

REST Bridge Endpoint https://context.gnist.ai/rest/ecb-fx/
Authentication

All requests require a Gnist-API-Key header (or api_key query parameter).

Free tier: 100 calls/day. Get your API key.

Tools (4)

get_rate

Get the current exchange rate between two currencies.

Uses ECB daily reference rates (updated ~16:00 CET). EUR is used as pivot
for cross-currency conversions.

Args:
base: ISO 4217 currency code for the base currency (e.g. "USD", "EUR", "NOK").
target: ISO 4217 currency code for the target currency (e.g. "GBP", "JPY").

Returns:
Exchange rate: 1 unit of base = rate units of target, plus the ECB publication date.

ParameterTypeRequiredDescription
basestringrequiredISO 4217 currency code for the base currency (e.g. "USD", "EUR", "NOK").
targetstringrequiredISO 4217 currency code for the target currency (e.g. "GBP", "JPY").
Request Body
{
  "base": "example",
  "target": "example"
}
get_rates

Get current exchange rates for all ECB-covered currencies against a base currency.

Uses ECB daily reference rates (updated ~16:00 CET). Covers ~30 major currencies.

Args:
base: ISO 4217 currency code (e.g. "USD", "EUR", "NOK").

Returns:
Dictionary of all available currencies and their rates against the base,
plus the ECB publication date.

ParameterTypeRequiredDescription
basestringrequiredISO 4217 currency code (e.g. "USD", "EUR", "NOK").
Request Body
{
  "base": "example"
}
get_history

Get daily exchange rates for a currency pair over the past N days (up to 90).

Uses ECB 90-day historical reference rates.

Args:
base: ISO 4217 currency code for the base currency (e.g. "USD", "EUR").
target: ISO 4217 currency code for the target currency (e.g. "NOK", "GBP").
days: Number of days of history to return (1–90, default 30).

Returns:
Time series of daily exchange rates, newest first.

ParameterTypeRequiredDescription
basestringrequiredISO 4217 currency code for the base currency (e.g. "USD", "EUR").
targetstringrequiredISO 4217 currency code for the target currency (e.g. "NOK", "GBP").
daysintegeroptionalNumber of days of history to return (1–90, default 30). (default: 30)
Request Body
{
  "base": "example",
  "target": "example"
}
report_feedback

Report a bug, feature request, or general feedback for this data source.

Use this when something doesn't work as expected, when you'd like
a new feature, or when you have suggestions for improvement.

Args:
feedback: Describe the issue or suggestion.
feedback_type: One of 'bug', 'feature_request', or 'general'.

ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")
Request Body
{
  "feedback": "example"
}

Quick Start

Shell
curl -X POST "https://context.gnist.ai/rest/ecb-fx/get_rate" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"base": "example", "target": "example"}'
Python
import httpx

resp = httpx.post(
    "https://context.gnist.ai/rest/ecb-fx/get_rate",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={
  "base": "example",
  "target": "example"
},
)
print(resp.json())

Related Toolkits (Finance)

Resources