# 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" %}

```csharp
public static VyTask<VyExchangeRateResultDto> GetExchangeRate(VyQuery_GetExchangeRate query = null)
```

{% endcode %}

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

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

**Returns**

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