cURL
curl --request GET \ --url https://api.example.com/exchange/swap/rate
{ "data": { "rate": 1500, "symbol": "USD-NGN", "ttl": 10, "type": "buy" } }
Source currency for swap
NGN
USD
Target currency swap
If Rate should be cached
Swap Rate
Response schema for a swap rate
Response schema for swap rate
Show child attributes
Rate price
Currency pair
How long this rate will last, in seconds
Swap type
sell
buy
{ "rate": 1500, "symbol": "USD-NGN", "ttl": 10, "type": "buy"}