> For the complete documentation index, see [llms.txt](https://docs.muesliswap.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.muesliswap.com/muesli-api.md).

# API

MuesliSwap provides a number of API endpoints for querying the state of the DEX. The following is an incomplete list of endpoints, subject to change. Token decimals have to be accounted for by the client, unless explicitely stated.

## General

{% openapi src="/files/LS6s5rjksznBVRHhrF5f" path="/token-list" method="get" expanded="true" %}
[trimvis-api.muesliswap.com-1.0-resolved.yaml](https://2598377122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjoGoMS0wqMF7Accm3h%2Fuploads%2FbAY7m1zmb0e1sBHlUNBy%2Ftrimvis-api.muesliswap.com-1.0-resolved.yaml?alt=media\&token=aa6018b4-e4dd-4382-a7cd-e6f931db7908)
{% endopenapi %}

{% openapi src="/files/LS6s5rjksznBVRHhrF5f" path="/list" method="get" %}
[trimvis-api.muesliswap.com-1.0-resolved.yaml](https://2598377122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjoGoMS0wqMF7Accm3h%2Fuploads%2FbAY7m1zmb0e1sBHlUNBy%2Ftrimvis-api.muesliswap.com-1.0-resolved.yaml?alt=media\&token=aa6018b4-e4dd-4382-a7cd-e6f931db7908)
{% endopenapi %}

## Price

{% openapi src="/files/LS6s5rjksznBVRHhrF5f" path="/price" method="get" expanded="true" %}
[trimvis-api.muesliswap.com-1.0-resolved.yaml](https://2598377122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjoGoMS0wqMF7Accm3h%2Fuploads%2FbAY7m1zmb0e1sBHlUNBy%2Ftrimvis-api.muesliswap.com-1.0-resolved.yaml?alt=media\&token=aa6018b4-e4dd-4382-a7cd-e6f931db7908)
{% endopenapi %}

{% openapi src="/files/LS6s5rjksznBVRHhrF5f" path="/trades" method="get" %}
[trimvis-api.muesliswap.com-1.0-resolved.yaml](https://2598377122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjoGoMS0wqMF7Accm3h%2Fuploads%2FbAY7m1zmb0e1sBHlUNBy%2Ftrimvis-api.muesliswap.com-1.0-resolved.yaml?alt=media\&token=aa6018b4-e4dd-4382-a7cd-e6f931db7908)
{% endopenapi %}

{% openapi src="/files/LS6s5rjksznBVRHhrF5f" path="/orderbook" method="get" %}
[trimvis-api.muesliswap.com-1.0-resolved.yaml](https://2598377122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjoGoMS0wqMF7Accm3h%2Fuploads%2FbAY7m1zmb0e1sBHlUNBy%2Ftrimvis-api.muesliswap.com-1.0-resolved.yaml?alt=media\&token=aa6018b4-e4dd-4382-a7cd-e6f931db7908)
{% endopenapi %}

{% openapi src="/files/LS6s5rjksznBVRHhrF5f" path="/charts/price" method="get" %}
[trimvis-api.muesliswap.com-1.0-resolved.yaml](https://2598377122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjoGoMS0wqMF7Accm3h%2Fuploads%2FbAY7m1zmb0e1sBHlUNBy%2Ftrimvis-api.muesliswap.com-1.0-resolved.yaml?alt=media\&token=aa6018b4-e4dd-4382-a7cd-e6f931db7908)
{% endopenapi %}

## Pools, etc

{% openapi src="/files/LS6s5rjksznBVRHhrF5f" path="/liquidity/pools" method="get" expanded="true" %}
[trimvis-api.muesliswap.com-1.0-resolved.yaml](https://2598377122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjoGoMS0wqMF7Accm3h%2Fuploads%2FbAY7m1zmb0e1sBHlUNBy%2Ftrimvis-api.muesliswap.com-1.0-resolved.yaml?alt=media\&token=aa6018b4-e4dd-4382-a7cd-e6f931db7908)
{% endopenapi %}

{% openapi src="/files/LS6s5rjksznBVRHhrF5f" path="/staking/myield-pools" method="get" %}
[trimvis-api.muesliswap.com-1.0-resolved.yaml](https://2598377122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjoGoMS0wqMF7Accm3h%2Fuploads%2FbAY7m1zmb0e1sBHlUNBy%2Ftrimvis-api.muesliswap.com-1.0-resolved.yaml?alt=media\&token=aa6018b4-e4dd-4382-a7cd-e6f931db7908)
{% endopenapi %}

{% openapi src="/files/LS6s5rjksznBVRHhrF5f" path="/staking/token-pools" method="get" %}
[trimvis-api.muesliswap.com-1.0-resolved.yaml](https://2598377122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjoGoMS0wqMF7Accm3h%2Fuploads%2FbAY7m1zmb0e1sBHlUNBy%2Ftrimvis-api.muesliswap.com-1.0-resolved.yaml?alt=media\&token=aa6018b4-e4dd-4382-a7cd-e6f931db7908)
{% endopenapi %}

{% openapi src="/files/LS6s5rjksznBVRHhrF5f" path="/staking/farming-pools" method="get" %}
[trimvis-api.muesliswap.com-1.0-resolved.yaml](https://2598377122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjoGoMS0wqMF7Accm3h%2Fuploads%2FbAY7m1zmb0e1sBHlUNBy%2Ftrimvis-api.muesliswap.com-1.0-resolved.yaml?alt=media\&token=aa6018b4-e4dd-4382-a7cd-e6f931db7908)
{% endopenapi %}

## Wallet Specific

{% openapi src="/files/LS6s5rjksznBVRHhrF5f" path="/orders/v2" method="get" expanded="true" %}
[trimvis-api.muesliswap.com-1.0-resolved.yaml](https://2598377122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjoGoMS0wqMF7Accm3h%2Fuploads%2FbAY7m1zmb0e1sBHlUNBy%2Ftrimvis-api.muesliswap.com-1.0-resolved.yaml?alt=media\&token=aa6018b4-e4dd-4382-a7cd-e6f931db7908)
{% endopenapi %}

{% openapi src="/files/LS6s5rjksznBVRHhrF5f" path="/staking/farming-open" method="get" %}
[trimvis-api.muesliswap.com-1.0-resolved.yaml](https://2598377122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjoGoMS0wqMF7Accm3h%2Fuploads%2FbAY7m1zmb0e1sBHlUNBy%2Ftrimvis-api.muesliswap.com-1.0-resolved.yaml?alt=media\&token=aa6018b4-e4dd-4382-a7cd-e6f931db7908)
{% endopenapi %}

{% openapi src="/files/LS6s5rjksznBVRHhrF5f" path="/open-positions" method="get" %}
[trimvis-api.muesliswap.com-1.0-resolved.yaml](https://2598377122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjoGoMS0wqMF7Accm3h%2Fuploads%2FbAY7m1zmb0e1sBHlUNBy%2Ftrimvis-api.muesliswap.com-1.0-resolved.yaml?alt=media\&token=aa6018b4-e4dd-4382-a7cd-e6f931db7908)
{% endopenapi %}

### Terms of Use

For private use only. If you are interested in using this API commercially please contact us at <contact@muesliswap.com>. Moreover, we are applying a fair use policy to our API where we expect a reasonable number of requests.

## Community Tools

In this section, we simply highlight certain tools that have been built on top of our API and contract. We take no liability for the quality of these services and do encourage some caution before employing these tools.

### Google Sheets

Twitter user @cardanostra wrote a small thread on importing live price feed data into Google Sheets: <https://twitter.com/cardanostra/status/1488522351985799173>

### Coin Overview

Cardanians built a pretty overview on all currently available tokens on the network, including data on the prices and volume powered by the MuesliSwap API: <https://cardanoassets.com/>

### Last Trades

This website shows the most recent trades for featured tokens on the MuesliSwap page: <https://yummymuesli.com/>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.muesliswap.com/muesli-api.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
