DEX Banner

QuickSwap

QuickSwap is a decentralized exchange (DEX) on Polygon. QuickSwap's design is based on the Uniswap constant-product automated market maker (AMM). In an AMM, liquidity providers simply deposit a pair of tokens and an algorithm automatically makes markets for the token pair. Traders can easily swap between tokens in the AMM and get guaranteed rates for the swaps. Each swap on QuickSwap incurs a fee, which gets distributed to liquidity providers as their payment for work.

DEX app screenshot

The Covalent API is RESTful and offers the following out-of-the-box for QuickSwap:

Covalent API
Response formats JSON and CSV
Real time response 2 blocks
Batch response 30 minutes
Base URL https://api.covalenthq.com/v1
Networks & chain_id Polygon - 137
Key Endpoints
- Get QuickSwap pools
- Get QuickSwap network exchange tokens
- Get QuickSwap transactions for exchange
- Get QuickSwap ecosystem chart data

Try the key endpoints directly in your browser from the API Reference.

Build Analytics Dashboards

Here is a breakdown of the the specific API endpoints that can be used to build the QuickSwap analytics dashboard:

Analytics screenshot
Marker Endpoint Data
1 /137/address/:address/transactions_v2 Timeseries TVL based on decoded Deposit and Withdraw events
2 /137/xy=k/quickswap/pools/address/:address 24h volume as a timeseries chart
3 /137/xy=k/quickswap/tokens Top 50 tokens by price, volume, liquidity
4 /137/xy=k/quickswap/pools Top 50 pools by price, volume, liquidity

Code Template

Dex dashboard screenshot

Template repo: https://github.com/covalenthq/dex-dashboard-template

This code template is a showcase of the XY=K suite of Covalent API endpoints capable of powering DEX dashboards. The code is open source and forkable for anyone to customize it.

Resources

Here are some additional resources to help you get started with QuickSwap and the Covalent API:

Last modified: October 27, 2022: october-changelog-2022 (#243) (b6121bb)