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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sway-technologies.gitbook.io/sway-charts-api-documentation/rest-api-specification/conversion-rates/post-get-conversion-rates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
