> For the complete documentation index, see [llms.txt](https://th-trader.gitbook.io/th-trader-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://th-trader.gitbook.io/th-trader-docs/rest-api-specification/conversion-rates/post-get-conversion-rates.md). Agents can also search and read this documentation through its [MCP server](https://th-trader.gitbook.io/th-trader-docs/~gitbook/mcp).

# POST Get Conversion Rates

```http
POST https://main.thtrader.app/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"
    }
]
```
