This documentation provides comprehensive information about Minswap's public APIs for accessing pool metrics, asset data, and price information.
Table of Contents
Getting Started
Base URL: https://api-mainnet-prod.minswap.org
The API implements rate limiting to ensure fair usage. If you exceed the rate limit, you'll receive a 429 Too Many Requests response. Please implement appropriate retry logic with exponential backoff.
HTTP Status Codes
Request completed successfully
Invalid parameters or request format
Authentication failed (if required)
Rate limit exceeded, please retry later
Server error, please contact support if persists
The following type definitions are used across multiple endpoints:
1. Get List Assets
GET: /v1/assets
Description: Retrieve a paginated list of assets available on Minswap with their metadata and verification status. Use this endpoint to populate asset selection interfaces or search for specific assets.
Request Parameters
Parameter
Type
Required
Default
Description
Search by asset name, currency symbol, token name, or ticker
Number of results per page (min: 1, max: 100)
Filter to show only verified tokens
Pagination cursor from previous response
Note: For pagination, use the search_after value from the previous response to get the next page of results.
Request Response
2. Get Assets Metrics
POST: /v1/assets/metrics
Description: Retrieve a paginated list of assets with trading and liquidity metrics (price, volume, liquidity, market cap, supply, etc.) for analytics.
Parameter
Type
Required
Default
Description
Search by asset name, currency symbol, token name, or ticker
Number of results per page (min: 1, max: 100)
Filter to show only verified tokens
Pagination cursor from previous response
Sort by: price_change_1h, price_change_24h, price_change_7d, volume_1h, volume_24h, volume_7d, liquidity, market_cap, fully_diluted, total_supply, circulating_supply
Return values are in ADA if there is no value
Note: For pagination, use the search_after value from the previous response to get the next page of results.
Request Response
3. Get Asset Metrics
GET: v1/assets/:id/metrics
Description: Retrieves detailed metrics for a specific asset by its ID, optionally filtered by display currency. It returns comprehensive asset statistics such as volume, liquidity, and price data for use in analytics or UI display.
Request Parameters
Parameter
Type
Required
Default
Description
The id parameter is a required string that uniquely identifies the asset for which metrics are being requested (ID asset in format: {policy_id}{token_name})
Return values are in ADA if there is no value
Request Response
4. Get Asset Price Candlestick
GET: v1/assets/:id/price/candlestick
Description: Returns historical candlestick (OHLCV) price data for a specific asset, supporting custom time ranges and resolutions
Request Parameters
Parameter
Type
Required
Default
Description
The id parameter is a required string that uniquely identifies the asset for which metrics are being requested (ID asset in format: {policy_id}{token_name})
The Unix timestamp (in milliseconds) marking the start of the time range for the candlestick data.
The Unix timestamp (in milliseconds) marking the end of the time range for the candlestick data.
Max results (min: 1, max: 1000)
Return values are in ADA if there is no value
Request Response
5. Get Asset Price Timeseries
GET: v1/assets/:id/price/timeseries
Description: Retrieve simplified timeseries price data for a specific asset over a given period. Use this endpoint to analyze price trends and historical price movements.
Request Parameters
Parameter
Type
Required
Default
Description
The id parameter is a required string that uniquely identifies the asset for which metrics are being requested (ID asset in format: {policy_id}{token_name})
Time interval for aggregating the timeseries data
Return values are in ADA if there is no value
Request Response
Pools APIs provide comprehensive data about liquidity pools, including metrics, price history, and performance indicators.
1. Get Pools Metrics
POST: /v1/pools/metrics
Description: Retrieve a list of liquidity pools with their metrics including trading volume, liquidity, and trading fee APR. Use this endpoint to display pool statistics, compare pool performance, or filter pools by specific criteria.
Parameter
Type
Required
Default
Description
Search by asset name, currency symbol, ticker, or LP asset
Number of results per page (min: 1, max: 100)
Filter to show only pools with verified tokens
Pagination cursor from previous response
Sort by: volume_24h, volume_7d, or liquidity
Filter by protocol: Minswap, MinswapV2, MinswapStable
Return values are in ADA if there is no value
Request Response
2. Get Pool Metrics by ID
GET: /v1/pools/:id/metrics
Description: Retrieve detailed metrics for a specific liquidity pool using its unique identifier (LP asset). Use this endpoint to display detailed pool information on pool detail pages.
Request Parameters
Parameter
Type
Required
Default
Description
LP asset ID combining policy ID and token name: {policy_id}{token_name}
Return values are in ADA if there is no value
Request Response
3. Get Pool Price Candlestick
GET: /v1/pools/:id/price/candlestick
Description: Retrieve OHLCV (Open, High, Low, Close, Volume) candlestick data for a specific pool's price history. Use this endpoint to display price charts and historical trading data.
Request Parameters
Parameter
Type
Required
Default
Description
LP asset ID combining policy ID and token name: {policy_id}{token_name}
The Unix timestamp (in milliseconds) marking the start of the time range for the candlestick data.
The Unix timestamp (in milliseconds) marking the end of the time range for the candlestick data.
Limit the number of candlestick records returned (min: 1, max: 1000)
Request Response
Note: Results are sorted by timestamp in ascending order.
4. Get Pool Price Timeseries
GET: /v1/pools/:id/price/timeseries
Description: Retrieve simplified timeseries price data for a specific pool over a given period. Use this endpoint for displaying price trends and historical price movements.
Request Parameters
Parameter
Type
Required
Default
Description
LP asset ID combining policy ID and token name: {policy_id}{token_name}
Time interval for aggregating the timeseries data
Request Response
Note: Results are sorted by timestamp in ascending order (oldest first).
5. Get Pool Volume Timeseries
GET: v1/pools/:id/volume/timeseries
Description: Retrieve trading volume timeseries data for a specific pool over a given period. Use this endpoint to analyze trading activity and volume trends over time.
Request Parameters
Parameter
Type
Required
Default
Description
LP asset ID combining policy ID and token name: {policy_id}{token_name}
Time interval for aggregating the timeseries data
Return values are in ADA if there is no value
Request Response
6. Get Pool TVL Timeseries
GET: v1/pools/:id/tvl/timeseries
Description: Retrieve total value locked (TVL) timeseries data for a specific pool over a given period. Use this endpoint to track liquidity changes and pool growth metrics over time.
Request Parameters
Parameter
Type
Required
Default
Description
LP asset ID combining policy ID and token name: {policy_id}{token_name}
Time interval for aggregating the timeseries data
Return values are in ADA if there is no value
Request Response
7. Get Pool Fee Timeseries
GET: v1/pools/:id/fees/timeseries
Description: Retrieve accumulated trading fees timeseries data for a specific pool over a given period. Use this endpoint to analyze fee generation and revenue performance of liquidity pools.
Request Parameters
Parameter
Type
Required
Default
Description
LP asset ID combining policy ID and token name: {policy_id}{token_name}
Time interval for aggregating the timeseries data
Return values are in ADA if there is no value
Request Response