Skip to main content
GET
/
exchange
/
swap
/
rate
Get swap rate
curl --request GET \
  --url https://api.example.com/exchange/swap/rate
{
  "data": {
    "rate": 1500,
    "symbol": "USD-NGN",
    "ttl": 10,
    "type": "buy"
  }
}

Query Parameters

source_currency
enum<string>
required

Source currency for swap

Available options:
NGN,
USD
target_currency
enum<string>
required

Target currency swap

Available options:
NGN,
USD
cache
boolean

If Rate should be cached

Response

Swap Rate

Response schema for a swap rate

data
SwapRate · object

Response schema for swap rate

Example:
{
"rate": 1500,
"symbol": "USD-NGN",
"ttl": 10,
"type": "buy"
}