API
Last updated
Was this helpful?
Last updated
Was this helpful?
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.
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.
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.
Twitter user @cardanostra wrote a small thread on importing live price feed data into Google Sheets: https://twitter.com/cardanostra/status/1488522351985799173
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/
This website shows the most recent trades for featured tokens on the MuesliSwap page: https://yummymuesli.com/
Get a list of all token information (without price information)
/token-list
No body
Get a list of tokens, each with basic token info and basic price information
/list
No body
Get the 'best' price for a certain token pair. We will use the biggest available market to determine this price.
/price
4d494c4b
8a1cfae21368b8bebbbed9800fec304e95cce39a2a57dc35e2e3ebaa
Get the last trades for a certain token pair
/trades
4d494c4b
8a1cfae21368b8bebbbed9800fec304e95cce39a2a57dc35e2e3ebaa
No body
Get a directional orderbook for a certain token pair.
/orderbook
8a1cfae21368b8bebbbed9800fec304e95cce39a2a57dc35e2e3ebaa
4d494c4b
No body
Get historical chart data. Contains price and volume data.
/charts/price
4d494c4b
8a1cfae21368b8bebbbed9800fec304e95cce39a2a57dc35e2e3ebaa
1h
1h
, 1d
No body
Get available liquidity pools
/liquidity/pools
y
y
, n
.
8a1cfae21368b8bebbbed9800fec304e95cce39a2a57dc35e2e3ebaa.4d494c4b
muesliswap_v2,minswap,muesliswap
No body
Get all myield pools
/staking/myield-pools
Get all MILK pools
/staking/token-pools
No body
Get all farms
/staking/farming-pools
No body
Get open, closed or canceled Muesliswap orders
/orders/v2
n
n
, y
n
n
, y
y
n
, y
cf391390f15b02acf7b1ce322bcddaa6625ac6720bb42d5f9a55c982
n
n
, y
Get all open farming positions
/staking/farming-open
cf391390f15b02acf7b1ce322bcddaa6625ac6720bb42d5f9a55c982
No body
Get basic information to figure out all open positions of a certain wallet
/open-positions
cf391390f15b02acf7b1ce322bcddaa6625ac6720bb42d5f9a55c982
019645fedab3763ddc5b0e77d71d041fd9b8d92f40c8fad7327c859e2bcf391390f15b02acf7b1ce322bcddaa6625ac6720bb42d5f9a55c982
No body