Skip to main content
Version: 2.2

Get DEX token pair reserves

Don't have an API key yet?

Start using this API for your project today.

Get your free API key
GEThttps://deep-index.moralis.io/api/v2.2/:pair_address/reserves

Get the liquidity reserves for a given pair address. Only Uniswap V2 based exchanges supported at the moment.

PATH PARAMS
pair_addressstringrequired
The liquidity pair address
QUERY PARAMS
chainstring
The chain to query
to_blockstring
The block number to get the reserves from
to_datestring

Get the reserves up to this date (any format that is accepted by momentjs)

  • Provide the param 'to_block' or 'to_date'
  • If 'to_date' and 'to_block' are provided, 'to_block' will be used.
Responses
API KEY
import Moralis from 'moralis';

try {
await Moralis.start({
apiKey: "YOUR_API_KEY"
});

const response = await Moralis.EvmApi.defi.getPairReserves({
"chain": "0x1",
"pairAddress": "0xa2107fa5b38d9bbd2c461d6edf11b11a50f6b974"
});

console.log(response.raw);
} catch (e) {
console.error(e);
}
Response Example
Empty