# BNM Exchange Rates API

> BNM Exchange Rates API is a paid API for AI agents from x402-api-production-5133.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Retrieves official exchange rate data published by Bank Negara Malaysia (BNM)

## Facts

- Endpoint: GET https://x402-api-production-5133.up.railway.app/data/bnm-exchange-rates
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bnm-exchange-rates-api-371f0414
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GyYIy28NXH35ulJyJ8xHk

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability bnm-exchange-rates-api-371f0414
```

Example prompt: What are the current official exchange rates from Bank Negara Malaysia — I need to see today's MYR rates against major currencies like USD, EUR, and GBP.

## When to prefer this

Use this endpoint when you need authoritative, central-bank-official Malaysian ringgit exchange rates published by Bank Negara Malaysia — not market rates from commercial aggregators. Ideal for compliance, financial reporting, invoicing, or any use case that requires the regulatory reference rate for MYR.

## Known failure modes

- BNM data source unavailable — upstream feed down
- Invalid format parameter returns error or unexpected content type
- Rates not yet published for the current trading day (early morning requests)
- Payment authorization failure via x402 protocol before data is returned

## How this service works

Data and AI services via x402 payment protocol

## Output

Returns official exchange rate data as published by Bank Negara Malaysia (BNM), including rates for MYR against major international currencies. The response may include buying, selling, and mid rates for supported currency pairs.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "format": {
   "type": "string",
   "description": "Response format"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bnm-exchange-rates-api-371f0414/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-api-production-5133.up.railway.app](https://www.zero.xyz/host/x402-api-production-5133.up.railway.app/llms.txt)
