# Deutsche Bundesbank API

> Returns euro reference exchange rates for currencies, latest or over a date range, as published by the Bundesbank.

Category: Finance & Crypto. Region: DE. 4 endpoints at `https://api.hoshime.com/v1/bundesbank/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/bundesbank
## GET /v1/bundesbank/rate

The most recent euro reference rates of a currency, units of the currency for one euro, oldest first.

Scope: `social:read` · Units: 1 · Cached: 60 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `currency` | string | yes | Three-letter currency code, such as USD. (e.g. USD) |
| `last` | integer | no | Number of most recent days, from 1 to 500. (default 10; e.g. 5) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `base` (string), `currency` (string), `items` (Rate[]), `items[].date` (string), `items[].value` (number (double))

```bash
curl "https://api.hoshime.com/v1/bundesbank/rate?currency=USD&last=5" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/bundesbank/rateRange

The euro reference rates of a currency between two dates, oldest first.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `currency` | string | yes | Three-letter currency code, such as USD. (e.g. USD) |
| `start` | string | yes | First day in YYYY-MM-DD form. (e.g. 2024-01-02) |
| `end` | string | yes | Last day in YYYY-MM-DD form. (e.g. 2024-01-05) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `base` (string), `currency` (string), `items` (Rate[]), `items[].date` (string), `items[].value` (number (double))

```bash
curl "https://api.hoshime.com/v1/bundesbank/rateRange?currency=USD&start=2024-01-02&end=2024-01-05" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/bundesbank/latest

The most recent euro reference rate of every currency the Bundesbank publishes.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `last` | integer | no | Number of most recent days per currency, from 1 to 5. (default 1) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `base` (string), `currency` (string), `items` (Rate[]), `items[].date` (string), `items[].value` (number (double))

```bash
curl "https://api.hoshime.com/v1/bundesbank/latest" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/bundesbank/rates

The most recent euro reference rates of up to twenty currencies in one call, oldest first per currency.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `currencies` | string | yes | Comma-separated currency codes, such as USD,GBP,JPY. At most twenty. (e.g. USD,GBP) |
| `last` | integer | no | Number of most recent days per currency, from 1 to 500. (default 5; e.g. 5) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `base` (string), `currency` (string), `items` (Rate[]), `items[].date` (string), `items[].value` (number (double))

```bash
curl "https://api.hoshime.com/v1/bundesbank/rates?currencies=USD%2CGBP&last=5" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
