Use Case: Build DeFi tools with DEX data

The Covalent Unified API allows you to easily fetch transaction data, liquidity pools, universal on-chain price feeds and more across multiple Decentralized Exchanges (DEXs).

DEXs supported by our leading XY=K endpoints include:

SpiritSwap logo
Quickswap logo
SpookySwap logo
StellaSwap logo
ApeSwap logo
PancakeSwap logo
And More!

XY=K endpoints for any Uniswap Clone DEX

Try our XY=K endpoints live to access the latest information on token pairs, on-chain token prices, liquidity pools, volume traded and more.

Get XY=K Pools

Class B
With one API call, retrieve liquidity pool token prices, reserves, exchange volumes and fees across all pools for a given chain_id and dexname.
GET /v1/chain_id/1/xy=k/dexname/pools/
dex image
All you need is a free API key to start exploring the Covalent API.

DEXs powered by Covalent

DashDeX Project Demo
Gitcoin Defi and Cross-chain Interoperability Hackathon Winner Sabelo from DashDeX shows his project on Covalent's One Billion BUIDLs, episode 5. Projects are powered by Covalent's industry leading Unified API.

DEX dashboard code template

This code template is a showcase of the XY=K suite of Covalent API endpoints powering a multi-chain DEX dashboard. The code is open source and forkable for you to customize it as you like!
dex dashboard

What developers say about us

Jacob Willemsma
VP of Partnerships at ETHGlobal
Rahul Bansal
Developer of Deefy
Ayush Jain
Builder of GeoNFT
Nagato Kasaki
Developer of Akashic Recorder
Harpalsinh Jadeja
Core Dev of NiftyGuilds

What is a DEX?

A Decentralized Exchange (DEX) is a platform where users can participate in a peer-to-peer marketplace, swapping tokens, providing liquidity and more. DEXs are automated market makers (AMMs) which means the trading activity that takes place is automated rather than traditional markets with buyers, sellers, and middlemen.

What is DeFi?

Decentralized Finance (DeFi) is a financial system that operates through the use of blockchains which enables it to be open and permission-less. In centralized finance, money is held by third parties such as banks or other companies that charge users a fee for their services. In DeFi, money is held in smart contracts and in users’ personal wallets. There are no third parties required to make transactions which are automated, secure, and emitted on the blockchain.

What are XY=K endpoints?

In crypto, XY=K refers to the bonding curve which defines a token price relative to its supply. This bonding curve allows for the liquidity pool model known as the “Constant Product AMM”. The majority of popular DEXs use this model to price tokens, and we found that we could easily support these similar exchanges all through a set of XY=K endpoints which return the latest information on token pairs, on-chain pricing, liquidity pools, volume traded and more. Read more about this in the articles section below.

What can I build with DEX data?

The Covalent XY=K endpoints make it super easy to build analytics dashboards for different tokens and/or liquidity pools across multiple supported blockchains. Additionally, users can incorporate this data into a wallet interface to provide an overview of a client's DeFi activity.