Reference
//
Get historic FX rate
Returns the exchange rate between two currencies for a specific historical date.
Security
oauth2ClientCredentials(Required scopes: fx:write)
- Mock serverhttps://developer.boyahq.com/_mock/v2/openapi/fx/historic-rate
- Productionhttps://api.boyahq.com/v2/fx/historic-rate
- Sandboxhttps://sandbox.api.boyahq.com/v2/fx/historic-rate
curl -i -X POST \
https://developer.boyahq.com/_mock/v2/openapi/fx/historic-rate \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'business_id: string' \
-d '{
"from": "USD",
"to": "KES",
"date": "2024-12-02"
}'Response
{ "from": "USD", "to": "KES", "rate": 129.122, "timestamp": "2026-04-23T00:00:00Z", "markup": { "buy": 2, "sell": 2 } }