# 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](/sdk-reference/c-sdk-v3/object-references/wallet/queries/vyquery_getexchangerate.md) | Query to filter the operation results |
| ---------------- | --------------------------------------------------------------------------------------------------------------- | ------------------------------------- |

**Returns**

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


---

# 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://sdk.venly.io/sdk-reference/c-sdk-v3/function-references/wallet/token-swapping/getexchangerate.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.
