# FX Spot Rate `GET` `https://api.unusualwhales.com/api/forex/rate` **Requires Advanced+ tier (Advanced, Enterprise, or Enterprise + Kafka).** Realtime spot exchange rate between two currencies. ## Authentication ``` Authorization: Bearer YOUR_API_KEY ``` ## Query Parameters | Name | Type | Required | Description | |------|------|----------|-------------| | `from` | string | Yes | From currency code (ISO 4217). | | `to` | string | Yes | To currency code (ISO 4217). | ## Response (200) | Field | Type | Description | |-------|------|-------------| | `ask` | number | | | `bid` | number | | | `from` | string | | | `last_refreshed` | string | | | `rate` | number | | | `time_zone` | string | | | `to` | string | | ## Example ### curl ```bash curl -X GET "https://api.unusualwhales.com/api/forex/rate?from=USD&to=EUR" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Accept: application/json" ``` ### Python ```python import http.client conn = http.client.HTTPSConnection("api.unusualwhales.com") headers = {"Authorization": "Bearer YOUR_API_KEY", "Accept": "application/json"} conn.request("GET", "/api/forex/rate?from=USD&to=EUR", headers=headers) response = conn.getresponse() print(response.read().decode("utf-8")) ``` ## Response Example ```json { "data": { "ask": 0.0, "bid": 0.0, "from": "string", "last_refreshed": "string", "rate": 0.0 } } ```