MuesliSwap provides a small number of beta API endpoints for querying the state of the DEX. The following is an incomplete list of endpoints, subject to change. All priceinformation is given in ADA. Token decimals usually have to be accounted for by the client, unless explicitely stated.
Note: This documentation only covers trades through Orderbook v1, which is deprecated as of April 28th 2022.
Exchange Endpoints
There are a number of endpoints that align with the specification of Cryptocurrency exchange listings like CoinMarketCap or CoinGecko.
Summary
The summary endpoint is to provide an overview of market data for all tickers and all market pairs on the exchange.
The current state of the orderbook can be queried directly from our endpoint. It contains information on what token is traded against which other (where "." denotes ADA), and a list of buy and sell orders. Each order consists of three data points:
price The price per token in this offer, rounded to 11 decimal places
amount The amount of token to be bought
totalPrice The total amount of ADA to be spent on all tokens to be bought
We provide endpoints for historical data on finalized trades as well as the volume on the exchange.
Price Charts
The price endpoint provides a detailed overview of historical trades as an hourly or daily summary. Each summary starts at 0 minutes into the hour/day respectively and summarizes the following information for the interval.
open The price of the first trade in the interval
close The price of the last trade in the interval
time The UNIX timestamp of the beginning of the interval
low The lowest price of any trade within the interval
high The highest price of any trade within the interval
The volume endpoint provides detailed data on the daily volume of a token. The volume is the sum over all tokens or ADA contained in matched orders during the specified time interval. Each datapoint is specified by three values:
time The UNIX timestamp of the beginning of the interval
volumeToken The volume of the token involved in token exchanges in the interval
volumeAda The volume of ADA involved in token exchanges in the interval
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.
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/