POST Get Conversion Rates

POST https://api.swaycharts.io/dxsca-web/conversionRates?fromCurrency={fromCurrency}&toCurrency={toCurrency}

Get the current conversion rate for a given pair of currencies

// Request

Empty request

Authorization header should be included in case of basic authentication

// Query Parameters

fromCurrency (optional) - source currency in the conversion rate. If omitted, the list of conversion rates from all currencies to the toCurrency will be returned
toCurrency (required) - target currency

// Response

A list of conversion rate objects.

// Errors

Common errors

API is not permitted for the user

Status code: 404 Not Found
Error code: 2
Description: Entity not found at server

// Example JSON

Response example:

[
    {
      "fromCurrency": "USD$",
      "toCurrency": "USD$",
      "convRate": "1.0"
    }
]

Last updated