DEX Banner

SushiSwap

SushiSwap is a decentralized exchange (DEX) on multiple networks. SushiSwap'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 SushiSwap 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 SushiSwap:

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 Ethereum - 1
Polygon - 137
Avalanche - 43114
Fantom - 250
Arbitrum - 42161
Moonbeam - 1284
Moonriver - 1285
BSC - 56
Key Endpoints
- Get SushiSwap pools
- Get SushiSwap network exchange tokens
- Get SushiSwap transactions for exchange
- Get SushiSwap 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 SushiSwap analytics dashboard:

Analytics screenshot
Marker Endpoint Data
1 /1/address/:address/transactions_v2 Timeseries TVL based on decoded Deposit and Withdraw events
2 /1/xy=k/sushiswap/pools/address/:address 24h volume as a timeseries chart
3 /1/xy=k/sushiswap/tokens Top 50 tokens by price, volume, liquidity
4 /1/xy=k/sushiswap/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 SushiSwap and the Covalent API:

Last modified: August 8, 2022: Fix link to tools (eaada5a)