FX Spot Rate
GET
https://api.unusualwhales.com/api/forex/rate
Request
Security:
Bearer Auth
Authorization: Bearer <token>
Query Parameters
from
string
required
From currency code (ISO 4217).
Example:
USD
to
string
required
To currency code (ISO 4217).
Example:
EUR
Responses
200 422 500Response Body 200 OK
ask
number
bid
number
from
string
last_refreshed
string
rate
number
time_zone
string
to
string
Try It
GET
Query Parameters
Request Sample
curl -X GET "https://api.unusualwhales.com/api/forex/rate?from=USD&to=EUR" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json"
Response Example
200
{
"data": {
"ask": 0.0,
"bid": 0.0,
"from": "string",
"last_refreshed": "string",
"rate": 0.0
}
}