> For the complete documentation index, see [llms.txt](https://sway-technologies.gitbook.io/sway-charts-api-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sway-technologies.gitbook.io/sway-charts-api-documentation/rest-api-specification/conversion-rates/post-get-conversion-rates.md).

# 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"
    }
]
```
