Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key

Get DEX token pair reserves

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
200Returns the pair reserves
400Bad Request
404Not Found
429Too Many Requests
500Internal Server Error
API KEY
curl --request GET \
--url 'https://deep-index.moralis.io/api/v2.2/0xa2107fa5b38d9bbd2c461d6edf11b11a50f6b974/reserves?chain=eth' \
--header 'accept: application/json' \
--header 'X-API-Key: YOUR_API_KEY'
Response Example
Empty