# UniRateAPI

```json
{
  "name": "UniRateAPI",
  "slug": "unirateapi",
  "url": "https://composio.dev/toolkits/unirateapi",
  "markdown_url": "https://composio.dev/toolkits/unirateapi.md",
  "logo_url": "https://logos.composio.dev/api/unirateapi",
  "categories": [
    "finance & accounting"
  ],
  "is_composio_managed": false,
  "updated_at": "2026-12-01T05:48:06.463Z"
}
```

![UniRateAPI logo](https://logos.composio.dev/api/unirateapi)

## Description

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with UniRateAPI MCP or direct API to check exchange rates, convert currencies, retrieve VAT and IBAN data, and query market calendars and macroeconomic indicators through natural language.

## Summary

UniRateAPI is a read-only financial data API for exchange rates, currency conversion, VAT, IBAN, and market data.
It provides current, structured financial information through a single API.

## Categories

- finance & accounting

## Toolkit Details

- Tools: 26

## Images

- Logo: https://logos.composio.dev/api/unirateapi

## Authentication

- **Api Key**
  - Type: `api_key`
  - Description: Api Key authentication for UniRateAPI.
  - Setup:
    - Configure Api Key credentials for UniRateAPI.
    - Use the credentials when creating an auth config in Composio.

## Suggested Prompts

- Convert 10,000 USD to EUR today
- Check VAT rates for Germany
- Find upcoming US market holidays

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `UNIRATEAPI_CHECK_BUSINESS_DAY` | Check Business Day | Check whether a date is a business day in a country or currency settlement calendar and return the neighboring business days. Results are reference-only; confirm them for settlement or contractual deadlines. |
| `UNIRATEAPI_CONVERT_COMMODITY` | Convert Commodity | Convert an amount between commodities and currencies, or convert to all supported commodities when target_symbol is omitted. Requires a UniRateAPI Pro subscription. |
| `UNIRATEAPI_CONVERT_CURRENCY` | Convert Currency | Convert an amount from one currency to one required target currency using the current exchange rate. |
| `UNIRATEAPI_GET_COMMODITY_RATES` | Get Commodity Rates | Get live commodity rates and converted values for one target commodity, or for all supported commodities when target_symbol is omitted. Requires a UniRateAPI Pro subscription. |
| `UNIRATEAPI_GET_CURRENT_RATES` | Get Current Exchange Rates | Get the current exchange rate and converted value for one target currency, or rates and values for all supported targets when target_currency is omitted. |
| `UNIRATEAPI_GET_EXCHANGE_HOLIDAYS` | Get Exchange Holidays | Get an exchange's weekday closures, early closes, and late opens for one year. Years extending beyond published holiday coverage return the covered part and flag the remainder as best-effort. Requires a Pro subscription. |
| `UNIRATEAPI_GET_EXCHANGE_SCHEDULE` | Get Exchange Schedule | Get an exchange's schedule and trading-day status for a date, or its live open status when date is omitted. Dates after an exchange's published holiday coverage are returned as flagged best-effort estimates. Requires a Pro subscription. |
| `UNIRATEAPI_GET_FX_VALUE_DATE` | Get FX Value Date | Get a reference FX spot settlement date for a currency pair and trade date using the applicable currency calendars. It does not account for cut-offs, NDF conventions, every half-session or ad-hoc closure, or counterparty agreements; confirm dates before settlement. Requires a Pro subscription. |
| `UNIRATEAPI_GET_HISTORICAL_COMMODITY_RATES` | Get Historical Commodity Rates (Pro) | Pro subscription required. Get commodity prices for one historical date, for one target or all available commodities. Gold and silver history begins in 1968, platinum and palladium in 1990, and energy, base-metal, and agricultural history accrues daily from 2026-08. Precious metals use blended market feeds; base metals add LME settlement, energy uses ICE, Hyperliquid, and EIA, and crops use ICE or US grain futures. World Bank monthly averages are used only if every market source fails; fallback data is CC BY 4.0 and must be attributed to The World Bank. |
| `UNIRATEAPI_GET_HISTORICAL_COMMODITY_TIMESERIES` | Get Historical Commodity Timeseries (Pro) | Pro subscription required. Get up to five calendar years of historical prices for selected commodity symbols or all 19 commodities. Gold and silver history begins in 1968, platinum and palladium in 1990, and energy, base-metal, and agricultural history accrues daily from 2026-08. Precious metals use blended market feeds; base metals add LME settlement, energy uses ICE, Hyperliquid, and EIA, and crops use ICE or US grain futures. World Bank monthly averages are used only if every market source fails; fallback data is CC BY 4.0 and must be attributed to The World Bank. |
| `UNIRATEAPI_GET_HISTORICAL_LIMITS` | Get Historical Currency Limits | Get the earliest and latest available historical-data dates for each currency. Requires a UniRateAPI Pro subscription and is limited to 50 historical requests per hour. |
| `UNIRATEAPI_GET_HISTORICAL_RATES` | Get Historical Exchange Rates | Get exchange rates and optional amount conversions for one historical date. Requires a UniRateAPI Pro subscription. |
| `UNIRATEAPI_GET_HISTORICAL_TIMESERIES` | Get Historical Currency Timeseries | Get historical currency values over a date range of at most five years. Requires a UniRateAPI Pro subscription and is limited to 50 historical requests per hour. |
| `UNIRATEAPI_GET_INFLATION` | Get Current Inflation | Get the latest BIS year-on-year CPI inflation for up to 50 selected codes or every live series across roughly 65 economies. Period is the reference month, typically published 1-3 months later; AU and NZ quarterly values are repeated monthly. |
| `UNIRATEAPI_GET_INFLATION_HISTORY` | Get Inflation History | Get monthly BIS year-on-year CPI inflation history for one country or currency code over an optional month or date range. |
| `UNIRATEAPI_GET_POLICY_RATES` | Get Current Policy Rates | Get the latest BIS central-bank policy rates for up to 50 selected country or currency codes, or every live series across roughly 40 central banks. |
| `UNIRATEAPI_GET_POLICY_RATE_HISTORY` | Get Policy Rate History | Get BIS central-bank policy-rate changes for one country or currency code over an optional date range. |
| `UNIRATEAPI_GET_PUBLIC_HOLIDAYS` | Get Public Holidays | Get reference holiday dates for a country or currency settlement calendar for a year, optionally narrowed to a country subdivision. |
| `UNIRATEAPI_GET_VAT_RATES` | Get VAT Rates | Get current VAT rates for one country or all covered countries when country_code is omitted. |
| `UNIRATEAPI_GET_VAT_REGISTRY_STATUS` | Get VAT Registry Status | Get current availability and country coverage for the official registries used by UniRateAPI VAT validation. |
| `UNIRATEAPI_LIST_CALENDAR_COUNTRIES` | List Holiday Calendars | List supported public-holiday countries and subdivisions plus supported currency settlement calendars. |
| `UNIRATEAPI_LIST_COMMODITY_SYMBOLS` | List Commodity Symbols | List all 19 commodity symbols supported by UniRateAPI, including each commodity's name and unit. Requires a UniRateAPI Pro subscription. |
| `UNIRATEAPI_LIST_CURRENCIES` | List Supported Currencies | List every fiat and cryptocurrency code supported by UniRateAPI. |
| `UNIRATEAPI_LIST_EXCHANGES` | List Exchange Calendars | List stock and futures exchange calendars supported by UniRateAPI, including their MIC codes and holiday-data coverage. Requires a Pro subscription. |
| `UNIRATEAPI_VALIDATE_IBAN` | Validate IBAN | Check an IBAN's structure and checksum, normalize its format, and return parsed country and banking components. Invalid IBANs return valid=false; this does not verify that an account exists or is open. |
| `UNIRATEAPI_VALIDATE_VAT_NUMBER` | Validate VAT Number (Pro) | Pro subscription required. Validate a VAT number against its official registry after format and checksum checks. A null valid result means the registry was unavailable, not that the number is invalid; preserve any returned attribution when redistributing Norwegian registry data. |

## Supported Triggers

None listed.

## Installation and MCP Setup

### Path 1: SDK Installation

#### Path 1, Step 1: Install Composio

Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
```python
pip install composio composio_openai openai
```

```typescript
npm install @composio/core @composio/openai openai
```

#### Path 1, Step 2: Create a Composio session

Initialize Composio with the OpenAI Responses provider and create a session scoped to UniRateAPI
```python
import json
from openai import OpenAI
from composio import Composio
from composio_openai import OpenAIResponsesProvider

composio = Composio(provider=OpenAIResponsesProvider())
client = OpenAI()

session = composio.create(user_id="your-user-id", toolkits=["unirateapi"])
tools = session.tools()
```

```typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["unirateapi"] });
const tools = await session.tools();
```

#### Path 1, Step 3: Run UniRateAPI tools with your agent

Send a request, execute the UniRateAPI tool calls through the session, and print the final answer
```python
response = client.responses.create(
    model="gpt-5.6-sol",
    tools=tools,
    input=[{"role": "user", "content": "Get the current EUR to USD exchange rate and convert 1,000 EUR to USD"}],
)

while True:
    tool_calls = [o for o in response.output if o.type == "function_call"]
    if not tool_calls:
        break
    results = composio.provider.handle_tool_calls(response=response, session=session)
    response = client.responses.create(
        model="gpt-5.6-sol",
        tools=tools,
        previous_response_id=response.id,
        input=[
            {"type": "function_call_output", "call_id": call.call_id, "output": json.dumps(results[i])}
            for i, call in enumerate(tool_calls)
        ],
    )

print(response.output_text)
```

```typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Get the current EUR to USD exchange rate and convert 1,000 EUR to USD" }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
```

### Path 2: MCP Server Setup

#### Path 2, Step 1: Install Composio

Install the Composio SDK and your agent framework
```python
pip install composio claude-agent-sdk
```

```typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
```

#### Path 2, Step 2: Create a session with MCP enabled

Create a session scoped to UniRateAPI and read its MCP URL and headers
```python
from composio import Composio

composio = Composio()
session = composio.create(user_id="your-user-id", toolkits=["unirateapi"], mcp=True)
```

```typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["unirateapi"],
  mcp: true,
});
```

#### Path 2, Step 3: Connect your agent to the MCP server

Pass the session's MCP URL and headers to your agent and run a UniRateAPI request
```python
import asyncio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions, AssistantMessage, TextBlock

options = ClaudeAgentOptions(
    mcp_servers={
        "composio": {
            "type": "http",
            "url": session.mcp.url,
            "headers": session.mcp.headers,
        }
    },
    system_prompt="You are a helpful assistant with access to UniRateAPI tools.",
    tools=[],
    allowed_tools=["mcp__composio__*"],
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query("Get the current EUR to USD exchange rate and convert 1,000 EUR to USD")
        async for message in client.receive_response():
            if isinstance(message, AssistantMessage):
                for block in message.content:
                    if isinstance(block, TextBlock):
                        print(block.text)

asyncio.run(main())
```

```typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "Get the current EUR to USD exchange rate and convert 1,000 EUR to USD",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
```

## Why Use Composio?

### 1. AI Native UniRateAPI Integration

- Supports both UniRateAPI MCP and direct API integrations
- Structured, LLM-friendly schemas for reliable financial data queries
- Read current rates, perform conversions, and query VAT, IBAN, calendar, and macroeconomic data

### 2. Secure API Key Handling

- Connect UniRateAPI with secure API key storage instead of hard-coding credentials
- Keep credentials separate across users, environments, and deployments
- Composio handles secure credential storage and API request authentication

### 3. Agent Optimized Design

- Tools are tuned using real error and success rates to improve reliability over time
- Clear schemas help agents select the right UniRateAPI operation for each financial question
- Comprehensive execution logs show what ran, when, and on whose behalf

### 4. Enterprise Grade Security

- Fine-grained RBAC helps control which agents and users can access UniRateAPI
- Scoped access keeps read-only financial data queries within approved boundaries
- Full audit trails support review and compliance for agent activity

## Use UniRateAPI with any AI Agent Framework

Choose a framework you want to connect UniRateAPI with:

- [ChatGPT](https://composio.dev/toolkits/unirateapi/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/unirateapi/framework/claude-cowork)

## Related Toolkits

- [Stripe](https://composio.dev/toolkits/stripe) - Stripe is a global online payments platform offering APIs for managing payments, customers, and subscriptions. Trusted by businesses for secure, efficient, and scalable payment processing worldwide.
- [44API](https://composio.dev/toolkits/44api) - 44API is an API service for validating VAT and tax identifiers and returning company details. Use it to verify business tax data and manage account IP whitelists quickly.
- [8090](https://composio.dev/toolkits/_8090) - 8090 is an organization usage and spend management service. It helps teams monitor usage and control member and default spending limits.
- [Airwallex](https://composio.dev/toolkits/airwallex) - Airwallex is a global financial platform providing business accounts, payments, payouts, FX, and cards. Built to simplify cross-border payments and streamline financial operations for businesses.
- [Aiwyn Tax MCP](https://composio.dev/toolkits/aiwyn_tax_mcp) - Aiwyn Tax MCP is a tax estimation service powered by Aiwyn's federal and state tax engine. It helps teams estimate tax outcomes without building tax calculation logic from scratch.
- [Alpaca](https://composio.dev/toolkits/alpaca) - Alpaca is a stock and crypto trading platform for commission-free trading, real-time market data, and algorithmic strategies. Use it to build brokerage apps, trading bots, and portfolio workflows with market connectivity.
- [Alpha vantage](https://composio.dev/toolkits/alpha_vantage) - Alpha Vantage is a financial data platform offering real-time and historical stock market APIs. Get instant, reliable access to equities, forex, and technical analysis data for smarter trading decisions.
- [Altoviz](https://composio.dev/toolkits/altoviz) - Altoviz is a cloud-based billing and invoicing platform for businesses. It streamlines online payments, expense tracking, and customizable invoice management.
- [Anrok](https://composio.dev/toolkits/anrok) - Anrok is a sales tax platform for software businesses that automates calculations, compliance, filings, and exemption management. It helps finance teams stay accurate and reduce the manual work of tax operations.
- [BankConv](https://composio.dev/toolkits/bankconv) - BankConv is a bank statement conversion service that turns PDFs into normalized transactions and accounting files. It saves time by replacing manual data entry with consistent, structured financial records.
- [BankConv MCP](https://composio.dev/toolkits/bankconv_mcp) - BankConv MCP is a hosted service that converts PDF bank and credit card statements into structured transactions. It supports CSV, OFX, QFX, QBO, and Xero CSV exports for easier financial workflows.
- [Benzinga](https://composio.dev/toolkits/benzinga) - Benzinga provides real-time financial news and data APIs for market coverage. It helps you track breaking news and actionable market insights instantly.
- [bexio](https://composio.dev/toolkits/bexio) - bexio is a Swiss business management platform for accounting, invoicing, contacts, projects, banking, expenses, and payroll. It brings core business operations into one connected workspace.
- [Bigdata.com MCP](https://composio.dev/toolkits/bigdata_com_mcp) - Bigdata.com MCP provides grounded access to financial news, transcripts, filings, and entity intelligence. Ideal for building research workflows and generating timely market insights.
- [BillingMart MCP](https://composio.dev/toolkits/billingmart_mcp) - BillingMart MCP is a hosted server for managing clients, invoices, estimates, payments, and billing records. It gives AI agents a secure, natural-language way to work with BillingMart data.
- [Billsby](https://composio.dev/toolkits/billsby) - Billsby is a subscription billing platform for managing customers, subscriptions, invoices, products, plans, usage counters, add-ons, and allowances. It helps SaaS and subscription teams automate billing operations without building complex billing logic from scratch.
- [BlindPay](https://composio.dev/toolkits/blindpay) - BlindPay is a payments API for cross-border payins, payouts, wallets, bank accounts, and stablecoin settlement. It helps businesses move money globally through programmable, API-based financial infrastructure.
- [Brex](https://composio.dev/toolkits/brex) - Brex provides corporate credit cards and spend management tailored for startups and tech businesses. It helps optimize company cash flow, streamline accounting, and accelerate business growth.
- [Carta](https://composio.dev/toolkits/carta) - Carta is an equity management platform for cap tables, compensation, portfolios, and fund administration. It helps companies and investors manage ownership data and financial operations in one place.
- [Cashfree](https://composio.dev/toolkits/cashfree_payments_mcp) - Cashfree is a merchant payments platform that handles collection, payouts, subscriptions, settlements, refunds, and identity verification. Simplifies merchant money lifecycle management with unified, API-driven workflows.

## Frequently Asked Questions

### Do I need my own developer credentials to use UniRateAPI with Composio?

Yes, UniRateAPI requires you to configure your own API key. Once set up, Composio handles secure credential storage and API request handling for you.

### Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. [Learn more](https://docs.composio.dev/tool-router/overview).

### Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. [Learn more](https://trust.composio.dev).

### What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
