GET /exchange/swap/rate
Parameters:
  • source_currency (string, required): Source currency (e.g., USD).
  • target_currency (string, required): Target currency (e.g., NGN).
  • cache (boolean, optional): Whether to cache the rate.
Sample Request
curl -X GET "https://exchange.spendjuice.com/v1/exchange/swap/rate?source_currency=USD&target_currency=NGN" \
-H "Authorization:  YOUR_API_KEY"
Sample Response
{
  "data": {
    "rate": 1500,
    "symbol": "USD-NGN",
    "ttl": 10,
    "type": "buy"
  }
}