From 02191b219710a624120baa3e618b07ca041c0f29 Mon Sep 17 00:00:00 2001 From: salisbury88 Date: Tue, 5 Dec 2023 09:53:21 +0000 Subject: [PATCH 1/3] Update supported-dexs.md --- .../evm/token-api/05-Pairs & Liquidity/supported-dexs.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/01-web3-data-api/evm/token-api/05-Pairs & Liquidity/supported-dexs.md b/docs/01-web3-data-api/evm/token-api/05-Pairs & Liquidity/supported-dexs.md index d97170d9..2c5ecae1 100644 --- a/docs/01-web3-data-api/evm/token-api/05-Pairs & Liquidity/supported-dexs.md +++ b/docs/01-web3-data-api/evm/token-api/05-Pairs & Liquidity/supported-dexs.md @@ -19,6 +19,7 @@ The Moralis DeFi API is integrated with an extensive range of Decentralized Exch | Fantom | `spookyswap` | | Cronos | `vvs` | | Arbitrum | `uniswapv3`, `camelotv2` | +| Base | `uniswapv3`, `sharkswap`, `aerodrome`, `baseswap`, `pancakeswap`, `sushiswap` | In the event that no `exchange` value is specified, the API will proceed to systematically evaluate each exchange. It continues this process until it successfully locates a price, strategically bypassing any exchanges or pairs that are characterized by low liquidity. @@ -27,7 +28,7 @@ In the event that no `exchange` value is specified, the API will proceed to syst We have integrated the supported DEXs on an endpoint: | Name | Endpoint | -| :--- | :------- | - -| [Get DEX token pair address -](/web3-data-api/evm/reference/get-pair-address) | `/:token0_address/:token1_address/pairAddress` | +| ----------- | ----------------------------------------- | +| [Get ERC20 token price](/web3-data-api/evm/reference/get-token-price) | `/erc20/:address/price` | +| [Get multiple ERC20 token prices](/web3-data-api/evm/reference/get-multiple-token-prices) | `/erc20/prices` | +| [Get DEX token pair address](/web3-data-api/evm/reference/get-pair-address) | `/:token0_address/:token1_address/pairAddress` | From f3162f94bba7692f9a193eae977e483f10306325 Mon Sep 17 00:00:00 2001 From: Nazeim Date: Wed, 6 Dec 2023 15:28:05 +0300 Subject: [PATCH 2/3] Remove duplicate file --- api/data/redirects.ts | 4 +++ .../05-Pairs & Liquidity/supported-dexs.md | 34 ------------------- .../evm/token-api/supported-dexs.md | 21 ++++++++++-- 3 files changed, 23 insertions(+), 36 deletions(-) delete mode 100644 docs/01-web3-data-api/evm/token-api/05-Pairs & Liquidity/supported-dexs.md diff --git a/api/data/redirects.ts b/api/data/redirects.ts index d02840fe..dab1c944 100644 --- a/api/data/redirects.ts +++ b/api/data/redirects.ts @@ -1,5 +1,9 @@ export const redirects = [ { source: "/undefined", destination: "/", permanent: true }, + { + source: "/web3-data-api/evm/token-api/supported-dexs-defi-api", + destination: "/web3-data-api/evm/supported-dexs-token-api", + } { source: "/docs/sign-in-with-web3authio", destination: "/authentication-api/how-to-sign-in-with-web3authio", diff --git a/docs/01-web3-data-api/evm/token-api/05-Pairs & Liquidity/supported-dexs.md b/docs/01-web3-data-api/evm/token-api/05-Pairs & Liquidity/supported-dexs.md deleted file mode 100644 index 2c5ecae1..00000000 --- a/docs/01-web3-data-api/evm/token-api/05-Pairs & Liquidity/supported-dexs.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -title: "Supported DEXs" -slug: "../supported-dexs-defi-api" -sidebar_position: 5 ---- - -import ApiBanner from "@site/src/components/ApiBanner/ApiBanner.tsx"; - - - -The Moralis DeFi API is integrated with an extensive range of Decentralized Exchanges (DEXs), operating across numerous EVM blockchains. A comprehensive list of these supported DEXs is presented in the subsequent table for your reference. - -| Chain | Supported DEX(s) | -| ----------- | ----------------------------------------- | -| Eth mainnet | `uniswapv2`, `uniswapv3`, `sushiswapv2` | -| Polygon | `uniswapv2`, `uniswapv3`, `quickswapv2` | -| BSC | `uniswapv2`, `uniswapv3`, `pancakeswapv1` | -| Avalanche | `traderjoe`, `pangolin` | -| Fantom | `spookyswap` | -| Cronos | `vvs` | -| Arbitrum | `uniswapv3`, `camelotv2` | -| Base | `uniswapv3`, `sharkswap`, `aerodrome`, `baseswap`, `pancakeswap`, `sushiswap` | - -In the event that no `exchange` value is specified, the API will proceed to systematically evaluate each exchange. It continues this process until it successfully locates a price, strategically bypassing any exchanges or pairs that are characterized by low liquidity. - -# Which endpoints is integrated with the supported DEXs? - -We have integrated the supported DEXs on an endpoint: - -| Name | Endpoint | -| ----------- | ----------------------------------------- | -| [Get ERC20 token price](/web3-data-api/evm/reference/get-token-price) | `/erc20/:address/price` | -| [Get multiple ERC20 token prices](/web3-data-api/evm/reference/get-multiple-token-prices) | `/erc20/prices` | -| [Get DEX token pair address](/web3-data-api/evm/reference/get-pair-address) | `/:token0_address/:token1_address/pairAddress` | diff --git a/docs/01-web3-data-api/evm/token-api/supported-dexs.md b/docs/01-web3-data-api/evm/token-api/supported-dexs.md index e12499b5..1eb9c70d 100644 --- a/docs/01-web3-data-api/evm/token-api/supported-dexs.md +++ b/docs/01-web3-data-api/evm/token-api/supported-dexs.md @@ -20,6 +20,7 @@ Simply click on a chain's name to jump to its respective section for more detail * [Fantom Opera](#fantom-opera) * [Cronos](#cronos) * [Arbitrum](#arbitrum) +* [Base](#base) :::note If you do not specify a particular `exchange`, our API takes a comprehensive approach. It checks various exchanges one by one, ensuring that it finds the price you need. It does this while being smart about avoiding exchanges or pairs with low liquidity, guaranteeing you get reliable and accurate results for your queries. @@ -79,11 +80,27 @@ If you do not specify a particular `exchange`, our API takes a comprehensive app | [Uniswap v3](https://app.uniswap.org/) | | [Camelot V2](https://www.camelotsix.com/) | + +### Base + +`uniswapv3`, `sharkswap`, `aerodrome`, `baseswap`, `pancakeswap`, `sushiswap` + +| Supported DEX(s) | +| -------------------- | +| [Uniswap v3](https://app.uniswap.org/) | +| [Sharkswap](https://www.sharkswap.finance/swap) | +| [Aerodrome](https://aerodrome.finance) | +| [Baseswap](https://baseswap.fi) | +| [PancakeSwap](https://pancakeswap.finance/) | +| [Sushiswap](https://sushi.com/) | + + ## Endpoints DEXs integration The table shows the list of endpoints that are integrated with the supported DEXs: | No. | Method | Description | API Reference | URL | |-----|------------------------------------------|----------------------------|---------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------| -| 4 | `getTokenPrice` | Get ERC20 token price | [Method Documentation](/web3-data-api/evm/reference/get-token-price) | [https://deep-index.moralis.io/api/v2.2/erc20/:address/price](https://deep-index.moralis.io/api/v2.2/erc20/:address/price) | -| 5 | `getMultipleTokenPrices` | Get multiple token prices | [Method Documentation](/web3-data-api/evm/reference/get-multiple-token-prices) | [https://deep-index.moralis.io/api/v2.2/erc20/prices](https://deep-index.moralis.io/api/v2.2/erc20/prices) +| 1 | `getTokenPrice` | Get ERC20 token price | [Method Documentation](/web3-data-api/evm/reference/get-token-price) | [https://deep-index.moralis.io/api/v2.2/erc20/:address/price](https://deep-index.moralis.io/api/v2.2/erc20/:address/price) | +| 2 | `getMultipleTokenPrices` | Get multiple token prices | [Method Documentation](/web3-data-api/evm/reference/get-multiple-token-prices) | [https://deep-index.moralis.io/api/v2.2/erc20/prices](https://deep-index.moralis.io/api/v2.2/erc20/prices) +| 3 | `getPairAddress` | Get DEX token pair address | [Method Documentation](/web3-data-api/evm/reference/get-pair-address) | [https://deep-index.moralis.io/api/v2.2/:token0_address/:token1_address/pairAddress](https://deep-index.moralis.io/api/v2.2/:token0_address/:token1_address/pairAddress) From 4746f2140b968dc26b319c5d288f1e7b28030962 Mon Sep 17 00:00:00 2001 From: Nazeim Date: Wed, 6 Dec 2023 15:30:06 +0300 Subject: [PATCH 3/3] add base table --- docs/01-web3-data-api/evm/token-api/supported-dexs.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/01-web3-data-api/evm/token-api/supported-dexs.md b/docs/01-web3-data-api/evm/token-api/supported-dexs.md index 1eb9c70d..e416c4ee 100644 --- a/docs/01-web3-data-api/evm/token-api/supported-dexs.md +++ b/docs/01-web3-data-api/evm/token-api/supported-dexs.md @@ -83,8 +83,6 @@ If you do not specify a particular `exchange`, our API takes a comprehensive app ### Base -`uniswapv3`, `sharkswap`, `aerodrome`, `baseswap`, `pancakeswap`, `sushiswap` - | Supported DEX(s) | | -------------------- | | [Uniswap v3](https://app.uniswap.org/) |