Get Currency Pairs

Currency pairs are the available currencies that one currency can be exchanged for. To get a list of available currency pairs, this endpoint provides essential information about each currency pair.

This is a GET request to the endpoint:

{{baseurl}}/currencies/{currency}/currency-pairs

This requires one path parameter.

FieldData TypeDescription
currencyStringTarget currency.

A successful response will look like this:

{
  "success": true,
  "statusCode": 200,
  "message": "Currency pairs fetched",
  "data": {
    "success": true,
    "statusCode": 200,
    "message": "Currency pairs fetched successfully",
    "data": [
      {
        "id": 3,
        "icon": "https://res.cloudinary.com/stefanpgr/image/upload/v1681066857/country-logo/GBP.svg",
        "currency": "GBP",
        "countryCode": "GB",
        "name": "British Pound",
        "country": "United Kingdom",
        "symbol": "£"
      },
      {
        "id": 1,
        "icon": "https://res.cloudinary.com/stefanpgr/image/upload/v1681066857/country-logo/USD.svg",
        "currency": "USD",
        "countryCode": "US",
        "name": "US Dollars",
        "country": "United States of America",
        "symbol": "$"
      }
    ]
  }
}