# Investember API and MCP server

Read-only financial data from official sources. No key needed. Limits: 2000 requests per day and 120 per minute per address.
Please show "Data: Investember (https://investember.com)" with a link where you display the data. Each answer also names the original source.

- REST: `GET https://investember.com/api/v1/<endpoint>?<parameters>`, JSON answer `{ "data": ..., "attribution": ... }`; errors `{ "error": { "code", "message" } }`.
- OpenAPI 3.1: https://investember.com/api/v1/openapi.json
- MCP (Streamable HTTP, stateless): https://investember.com/api/mcp
- Human-readable page: https://investember.com/developers

Reference exchange rates are published once per business day by the central banks; they are not live market quotes. Live quotes and metal prices are shown on the site only.

## Exchange rate

Official reference exchange rate of a currency pair (European Central Bank, Federal Reserve or Bank of England, published once per business day), for the latest date or a past date, with an optional amount to convert. Not a live market quote.

- REST: `GET /api/v1/exchange-rate`
- MCP tool: `get_exchange_rate`
- Example: https://investember.com/api/v1/exchange-rate?base=EUR&quote=USD

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `base` | string | yes | Currency to convert from, ISO 4217 code. |
| `quote` | string | yes | Currency to convert to, ISO 4217 code. |
| `date` | string | no | Business day (YYYY-MM-DD). Without it, the latest published rate. On a day without a fixing, the last rate before it. |
| `amount` | number | no | Amount of the base currency to convert. |

## All exchange rates for a currency

Latest official reference rates of one base currency against every quote currency the site lists, with the daily change.

- REST: `GET /api/v1/exchange-rates`
- MCP tool: `get_exchange_rates`
- Example: https://investember.com/api/v1/exchange-rates

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `base` | string | no | Base currency, ISO 4217 code. Default: EUR. |

## Exchange rate history

Daily official reference rates of a currency pair between two dates (at most 366 days per request), oldest first.

- REST: `GET /api/v1/exchange-rate-history`
- MCP tool: `get_exchange_rate_history`
- Example: https://investember.com/api/v1/exchange-rate-history?base=GBP&quote=USD

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `base` | string | yes | Currency to convert from, ISO 4217 code. |
| `quote` | string | yes | Currency to convert to, ISO 4217 code. |
| `from` | string | no | First day (YYYY-MM-DD). Default: 30 days before `to`. |
| `to` | string | no | Last day (YYYY-MM-DD). Default: today. |

## Economic calendar

Scheduled economic data releases and central bank rate decisions between two dates (at most 31 days, from 90 days back), with times in UTC. Dates come from the statistics offices' and central banks' own calendars.

- REST: `GET /api/v1/economic-calendar`
- MCP tool: `get_economic_calendar`
- Example: https://investember.com/api/v1/economic-calendar

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `from` | string | no | First day (YYYY-MM-DD, UTC). Default: today. |
| `to` | string | no | Last day (YYYY-MM-DD, UTC). Default: 7 days after `from`. |
| `country` | string | no | ISO 3166 country code, or EA for the euro area. Default: all. |
| `min_importance` | integer | no | Lowest importance to include: 1 (all), 2 (medium and high) or 3 (high only). Default: 1. |

## Central bank policy rates

Current policy interest rate of each central bank the site covers, the date it took effect, the previous rate and the next scheduled decision.

- REST: `GET /api/v1/policy-rates`
- MCP tool: `get_policy_rates`
- Example: https://investember.com/api/v1/policy-rates

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `bank` | string | no | Central bank code (fed, ecb, boe, boj, snb, ...). Default: all banks. |

## Economic indicator

Recent values of one official economic indicator (inflation, unemployment, GDP growth, policy rate, 10-year bond yield and more) for one country, newest first, with source, unit and frequency.

- REST: `GET /api/v1/economic-indicator`
- MCP tool: `get_economic_indicator`
- Example: https://investember.com/api/v1/economic-indicator?country=DE&indicator=inflation

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `country` | string | yes | ISO 3166 country code, or EA for the euro area. |
| `indicator` | string | yes | Indicator code. One of: inflation, core_inflation, cpi_index, policy_rate, bond_10y, gdp_yoy, gdp_qoq, unemployment, payrolls, wage_growth, retail_sales, industrial_production, current_account, government_debt. |
| `limit` | integer | no | Number of most recent periods. Default: 12. |

## Market sentiment index

Latest value (0 to 100) of the Investember Crypto Fear & Greed Index or Market Risk Appetite Index, its zone, its components and its daily history. Both are our own published formulas, recomputed once a day.

- REST: `GET /api/v1/market-sentiment`
- MCP tool: `get_market_sentiment`
- Example: https://investember.com/api/v1/market-sentiment?index=crypto

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `index` | string | yes | crypto: Crypto Fear & Greed; risk: Market Risk Appetite. One of: crypto, risk. |
| `days` | integer | no | Days of history to include. Default: 30. |

## Forex position size

Position size in lots for a trade that risks a set share of the account at a given stop loss distance in pips. Converts the pip value into the account currency with the latest ECB reference rates.

- REST: `GET /api/v1/position-size`
- MCP tool: `calculate_position_size`
- Example: https://investember.com/api/v1/position-size?account_balance=10000&risk_percent=1&stop_loss_pips=25&instrument=EURUSD

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `account_balance` | number | yes | Account balance in the account currency. |
| `risk_percent` | number | yes | Share of the balance to risk, in percent. |
| `stop_loss_pips` | number | yes | Stop loss distance in pips. |
| `instrument` | string | yes | Currency pair as six letters, base then quote. |
| `account_currency` | string | no | Currency of the account, ISO 4217 code. Default: USD. |
| `contract_size` | number | no | Units per standard lot. Default: 100000. |
| `pip_size` | number | no | Size of one pip in the quote currency. Default: 0.01 for JPY quotes, 0.0001 otherwise. |

