# Get Exchange Rate

> The interface and request parameters for querying token exchange rates are actually the same as those for adding liquidity to the pool.

Through the following interface, you can obtain the current exchange rate of the selected token and the total number of pools in the liquidity pool. The main purpose of this interface in the exchange process is to:

* Display the exchange rate to users
* Calculate the estimated amount that can be exchanged

{% openapi src="/files/uwBOhCZUE51HCr9ecFg4" path="/brc20swap/swap\_info" method="post" %}
[global.json](https://2330303583-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXEWf0ylbbPQ6t8CoOLdL%2Fuploads%2Fgit-blob-a3069d4dd3ee104fd54371bb6ae0d122d7d67108%2Fglobal.json?alt=media)
{% endopenapi %}

{% hint style="info" %}

1. If "LiquidPair no found" is prompted, it means that there is no liquidity pool for this token pair.
2. For RUNES, BRC20, and ARC20, the query interfaces are the same, but `send_coin_type` / `receive_coin_type` differ.

**\[2024.04.23 Update]** New: `address` is a required parameter. If the user is not logged in, default to '0'.
{% endhint %}


---

# 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://docs.on.nexus/dotswap/developers/market-data-and-feeds/global/get-exchange-rate.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.
