> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corsair.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Fixer API reference

> API reference for the Fixer plugin in Corsair: every `fixer.api.*` operation with its input and output types, taken from the plugin's Zod schemas.

> [!NOTE]
>
> **New to Corsair?** See [API access](https://docs.corsair.dev/concepts/api.md), [authentication](https://docs.corsair.dev/concepts/auth.md), and [error handling](https://docs.corsair.dev/concepts/error-handling).

## Currencies

### getAll

`currencies.getAll`

Retrieve list of supported currency symbols and names

**Risk:** `read`

```ts theme={null}
await corsair.fixer.api.currencies.getAll({});
```

**Input:** *empty object*

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `boolean` | Yes | — |
| `symbols` | `Record<string, string>` | Yes | — |

***

## Rates

### convert

`rates.convert`

Convert amounts between two currencies using real-time or historical rates

**Risk:** `read`

```ts theme={null}
await corsair.fixer.api.rates.convert({ from: 'USD', to: 'EUR', amount: 100 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `from` | `string` | Yes | — |
| `to` | `string` | Yes | — |
| `amount` | `number` | Yes | — |
| `date` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `boolean` | Yes | — |
| `query` | `object` | No | — |
| `info` | `object` | No | — |
| `date` | `string` | No | — |
| `result` | `number` | Yes | — |

> [accordion] query full type
>
> ```ts theme={null}
> {
>   from: string,
>   to: string,
>   amount: number
> }
> ```

> [accordion] info full type
>
> ```ts theme={null}
> {
>   timestamp?: number,
>   rate: number
> }
> ```

***

### historical

`rates.historical`

Retrieve historical exchange rates for a specific date (YYYY-MM-DD)

**Risk:** `read`

```ts theme={null}
await corsair.fixer.api.rates.historical({
	date: '2026-01-01',
	symbols: ['USD'],
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `date` | `string` | Yes | — |
| `base` | `string` | No | — |
| `symbols` | `string[]` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `boolean` | Yes | — |
| `historical` | `boolean` | No | — |
| `date` | `string` | No | — |
| `base` | `string` | No | — |
| `rates` | `Record<string, number>` | Yes | — |

***

### latest

`rates.latest`

Retrieve real-time exchange rates for all or specified currencies

**Risk:** `read`

```ts theme={null}
await corsair.fixer.api.rates.latest({
	base: 'EUR',
	symbols: ['USD', 'GBP'],
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `base` | `string` | No | — |
| `symbols` | `string[]` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `boolean` | Yes | — |
| `timestamp` | `number` | No | — |
| `base` | `string` | No | — |
| `date` | `string` | No | — |
| `rates` | `Record<string, number>` | Yes | — |

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.