Covalent: Build DeFi tools with DEX data

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
/static/images/dex-logos/spiritswap.png
/static/images/dex-logos/Quickswap.png
/static/images/dex-logos/Trader Joe.png
/static/images/dex-logos/Stellaswap.png
/static/images/dex-logos/uniswap.png
/static/images/dex-logos/Pancakeswap.png
And More!
Getting Started
Uniquely crafted 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
Returns liquidty 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
Sign up for a free API key and start exploring the Covalent API.
Showcase
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.
Templates
template
DEX Dashboard 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
Let's Expand

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.

Articles