# Fantom DEXs APIs

**URL:** <https://community.bitquery.io/t/fantom-dexs-apis/953>\
**Category:** GraphQL Tutorials\
**Created:** [April 1, 2022, 10:02am UTC](https://community.bitquery.io/t/fantom-dexs-apis/953 "2022-04-01T10:02:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbajpai](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@mbajpai](https://community.bitquery.io/u/mbajpai)\
**Post date:** [April 1, 2022, 10:02am UTC](https://community.bitquery.io/t/fantom-dexs-apis/953/1 "2022-04-01T10:02:28Z")

</div>

Among the various layer-1 blockchains aiming to capitalize on [Ethereum](https://blockster.com/ethereum)’s shortcomings pertaining to lack of scalability, high gas fees, and others, there is [Fantom (FTM)](https://fantom.foundation/blog/), a decentralized, open-source, and permissionless smart contract protocol that allows developers to build decentralized applications (dApps), NFTs, and more on top of it.

In a nutshell, the Fantom blockchain aims to provide a solution to the infamous blockchain trilemma that argues that at a given time, a blockchain can only address two out of the three problems that plague distributed ledger technology, i.e., scalability, security, and decentralization.

The Fantom Foundation recently [announced](https://fantom.foundation/blog/announcing-370m-ftm-incentive-program/) a mammoth 370 million FTM incentive program to encourage developers to build innovative and robust applications in the Fantom ecosystem.

Using Bitquery’s GraphQL API, we can make certain insightful observations regarding Fantom DEX.

**Trade volume on Fantom**

Let’s try to compare the trends of the DEX trades taking place on the Fantom network and try to make some inferences.

| Exchange | Total Volume | Total Trades | Median Trade | Average Trade |
| --- | --- | --- | --- | --- |
| SpookySwap | 52729860866 | 44410434 | 36.99458372 | 1187.330456 |
| SpiritSwap | 12094781401 | 12442642 | 23.70682573 | 972.0428668 |
| ProtoFi | 496875056.3 | 584882 | 238.3957643 | 849.5304289 |
| DarkKnight | 249337377.8 | 473229 | 135.3910638 | 526.8852453 |
| Excalibur | 50939452.53 | 62849 | 289.7411484 | 810.5053785 |
| Wigoswap | 164126994.4 | 238812 | 197.4822485 | 687.2644357 |
| SushiSwap | 961296681.8 | 2594288 | 12.05516493 | 370.5435487 |

As we can observe, SpookySwap has the highest number of total trades with more than 44 million trades and the highest total volume of trade too. Even though SpookySwap has the highest average trade, the median trade amount is the highest for ProtoFi.

![1](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/f355344cea2f7469a8d56f9116a280970d6a1464.png)

You can get all this data using the following query!

> **[Fantom DEX trends](https://graphql.bitquery.io/ide/Fantom-DEX-trends)**
>
> Bitquery is analytical engine for blockchains

![2](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/f0ec5777c2900ff6fbf60bfac5856e5d4f3ce965.png)

You can find easy to understand graphical representations of the DEX exchange trends on Fantom using our Bitquery Explorer and the GraphQL IDE too.

**DEX protocols on Fantom**

Moving on , now we’ll take a look on the DEX protocols on the Fantom network. Uniswap v2 is the most prevalent protocol on the Fantom network. The Uniswap protocol is also there but it’s presence is negligible in comparison to that of the Uniswap v2 protocol.

![3](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/6cca94fb26417a609619800d56c65e3d82ecdab1.png)

| Protocols | Uniswap v2 | Uniswap |
| --- | --- | --- |
| Trades | 8639043 | 581 |
| Currencies | 3145 | 11 |
| Contracts | 5801 | 11 |

As we can see the number of trades taking place on Fantom using Uniswap v2 stands at 8.6 million whereas that of Uniswap stands at 581. Hence we can observe that Uniswap v2 is the major protocol on the Fantom network.

![4](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/8b58f05bc47316a7cb9b9b362e4656c0f7989db1.png)

You can get the above data using the following query.

> **[DEX exchanges on Fantom](https://graphql.bitquery.io/ide/DEX-exchanges-on-Fantom)**
>
> Bitquery is analytical engine for blockchains

**Top Trader**

We’ll now try to identify the top traders and their trade amounts on different exchanges on the Fantom Network.

| Exchange | Top Trader | Top Trader’s Amount | Top Trader’s Count |
| --- | --- | --- | --- |
| SpookySwap | “0xdefc385d7038f391eb0063c2f7c238cfb55b206c” | 23055189.11 | 2 |
| SpiritSwap | “0x12efed3512ea7b76f79bcde4a387216c7bce905e” | 37807897.86 | 12 |
| ProtoFi | “0x5aa27fb521ae05a744334a2c0f1fe5e775505482” | 353660.21 | 2 |
| DarkKnight | “0xb72bdc1357dc4a34e6335afaa5f7d358de18098d” | 245947.06 | 1 |
| Excalibur | “0x9b090761223bf884ae902c66c0373e5920f567aa” | 99665.01 | 1 |
| Wigoswap | “0x9a763efcdff988f648400c14d905359f9f804127” | 98713.59 | 1 |
| SushiSwap | “0x4a4c2269efcc996dbf3a3eb24d3420c494f26793” | 1476487.65 | 1 |

From the above table, we can see that for SpiritSwap, the amount traded by the top trader _(“0x12efed3512ea7b76f79bcde4a387216c7bce905e”)_ is even higher than the amount of SpookySwap’s top trader _(“0x12efed3512ea7b76f79bcde4a387216c7bce905e”)_ and the same can be said for the top trader’s count too.

**Number of currencies traded on Fantom DEXs**

Let’s take a quick look at currency and contract stats of some of the exchanges on the Fantom network.

| Exchange | Currencies | Contracts |
| --- | --- | --- |
| SpookySwap | 4335 | 6681 |
| SpiritSwap | 613 | 1157 |
| DarkKnight | 14 | 19 |
| Uniswap v2 | 143 | 442 |
| SushiSwap | 434 | 730 |

Here as well, SpookySwap maintains it’s dominance with the highest number of currencies traded and contracts too.

Use the following query to fetch the above data

> **[Fantom DEXs currency and contracts](https://graphql.bitquery.io/ide/Fantom-DEXs-currency-and-contracts)**
>
> Bitquery is analytical engine for blockchains

**SpookySwap analysis**

![5](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/ab5765e6846dd75420596fe0bf0d0e55b0d6bd0f.png)

Using our Bitquery Explorer you can find great insights on SpookySwap like the volume of trade taking place, the Statistics, protocols, token pairs and trade takers and makers etc.

![6](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/fc108bb41fd2d4e915d0e4e4b103bacb24262e64.png)

Using Bitquery’s widgets and tools, you can fetch the trades by tie, the DEX smart contracts by time, the traded currencies by time etc. You can get the daily, monthly and even the yearly data for the same using Bitquery’s GraphQL IDE.

![7](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/53fbea137518e44230d223a2e47a098ea61045bc.png)

Here we have a graphical representation of the monthly trades by time taking place on SpookySwap on Fantom using Bitquery’s GraphQL IDE.

![8](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/2c35e108839454d8dad6001b1eabb5cb3a663cf7.png)

Uniswap v2 is the protocol being followed on the SpookySwap DEX on Fantom, with the currency count being 1.259 million

Currencies: 1.259 million

Contracts: 1114

Amount USD: 1904

**Latest Token pairs**

You can even get the latest token trade pairs on SpookySwap using our Bitquery Explorer

![9](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/affcd21065ff942add5600635edbe5c8aaa360bd.png)

![10](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/9a02a30d8e49e6870c75f8b467f63af816a21299.png)

You can get detailed information about the latest token pairs using the following query

> **[Token trade pairs SpookySwap fantom](https://graphql.bitquery.io/ide/Token-trade-pairs-SpookySwap-fantom)**
>
> Bitquery is analytical engine for blockchains

**Top Trade Makers and Takers on SpookySwap**

![11](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/648731f270a0cacfbf4090f8feff83a4095b90a1.png)

The address _“0xf491e7b69e4244ad4002bc14e878a34207e38c29”_ has the highest trade count and the trade amount on SpookySwap exchange

**Top trade maker on SpookySwap**

Address: _“0xf491e7b69e4244ad4002bc14e878a34207e38c29”_

Trade Amount: 775.986 million

Trades: 852,604

To get the above information, you can use the following query

> **[Trade Makers Fantom](https://graphql.bitquery.io/ide/Trade-Makers-Fantom)**
>
> Bitquery is analytical engine for blockchains

In a similar way, you can easily find the trade takers for the Fantom network on SpookySwap very conveniently using the following query.

![12](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/5c910c7a069212dd0fcbf57011172d7b982a9db8.png)

> **[Trade takers SpookySwap Fantom](https://graphql.bitquery.io/ide/Trade-takers-SpookySwap-Fantom)**
>
> Bitquery is analytical engine for blockchains

**Conclusion**

We have almost all the DEXs on Fantom and adding more every day, our DEX APIs are comprehensive and available for other blockchains too. If you building DEX related tool or looking to get DEX trading data, you can [try our APIs](https://graphql.bitquery.io/).

If you have questions, you can also [contact us](https://bitquery.io/forms/api)

**Also Read**

[Ethereum DEX GraphQL APIs with Examples - Bitquery](https://bitquery.io/blog/ethereum-dex-graphql-api)

[Bitquery API integration with TradingView Technical Analysis Charts (DEX APIs)](https://community.bitquery.io/t/bitquery-api-integration-with-tradingview-technical-analysis-charts-dex-apis/244)

[PancakeSwap - Querying DEXs on Binance Smart Chain using GraphQL APIs](https://bitquery.io/blog/pancake-swap-dex-apis)

[Price Index for DEX Tokens - Bitquery](https://bitquery.io/blog/dex-price-index)

[How to get started with Bitquery’s Blockchain GraphQL APIs? 1](https://community.bitquery.io/t/how-to-get-started-with-bitquerys-blockchain-graphql-apis/13)

**About Bitquery**

Bitquery is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. We are crossing the ‘chain-chasm’ by delivering set of products that can work across blockchains. Our products include:

[Coinpath](https://bitquery.io/products/coinpath?utm_source=blog) APIs provide blockchain [money flow](https://blog.bitquery.io/coinpath-blockchain-money-flow-apis) analysis for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. You can refer to this article to get started with [Coinpath](https://blog.bitquery.io/coinpath-api-get-start)

[Digital Assets API](https://bitquery.io/products/digital_assets?utm_source=blog&utm_medium=about) provides index information related to all major cryptocurrencies, coins, and tokens.

[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about) provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, SushiSawap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info) or email us at [hello@bitquery.io](mailto:hello@bitquery.io) . Also, subscribe to our newsletter and stay updated about the latest in the cryptocurrency world.
