# getExchangeRate

### Description

This endpoint returns information about the expected result of the swap. It provides the expected output amount, as well gives information about the slippage, and fee involved for that specific swap.

{% code overflow="wrap" %}

```javascript
public getExchangeRate(query?: VyQuery_GetExchangeRate) : VyPromise<VyExchangeRateResultDto>
```

{% endcode %}

{% tabs %}
{% tab title="Details" %}
**Parameters**

| query (optional) | [VyQuery\_GetExchangeRate](https://sdk.venly.io/sdk-reference/ts-js-v3/object-references/wallet/queries/vyquery_getexchangerate) | Query to filter the operation results |
| ---------------- | -------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------- |

**Returns**

VyPromise<[VyExchangeRateResultDto](https://sdk.venly.io/sdk-reference/ts-js-v3/object-references/wallet/vyexchangerateresultdto)>\
Exchange rate and swap information retrieved successfully.
{% endtab %}
{% endtabs %}
