# Dex trades history for smart contract

**URL:** <https://community.bitquery.io/t/dex-trades-history-for-smart-contract/1263>\
**Category:** GraphQL API\
**Created:** [November 4, 2022, 9:49pm UTC](https://community.bitquery.io/t/dex-trades-history-for-smart-contract/1263 "2022-11-04T21:49:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raziel90](https://avatars.discourse-cdn.com/v4/letter/r/43a26b/32.png) [@Raziel90](https://community.bitquery.io/u/Raziel90)\
**Post date:** [November 4, 2022, 9:49pm UTC](https://community.bitquery.io/t/dex-trades-history-for-smart-contract/1263/1 "2022-11-04T21:49:18Z")

</div>

hi, is it possible to have the query for the exchanges of a particular token?

---

<div class="post-metadata">

**Author:** ![gaurav](https://avatars.discourse-cdn.com/v4/letter/g/b487fb/32.png) [@gaurav](https://community.bitquery.io/u/gaurav)\
**Post date:** [November 7, 2022, 8:15am UTC](https://community.bitquery.io/t/dex-trades-history-for-smart-contract/1263/2 "2022-11-07T08:15:13Z")

</div>

Please check this query

> **[USDC token on Uniswap](https://graphql.bitquery.io/ide/USDC-token-on-Uniswap)**
>
> Bitquery is analytical engine for blockchains

---

<div class="post-metadata">

**Author:** ![Raziel90](https://avatars.discourse-cdn.com/v4/letter/r/43a26b/32.png) [@Raziel90](https://community.bitquery.io/u/Raziel90)\
**Post date:** [November 7, 2022, 5:39pm UTC](https://community.bitquery.io/t/dex-trades-history-for-smart-contract/1263/3 "2022-11-07T17:39:23Z")

</div>

thanks for your reply, but so i only see the sales of usdc and not the purchases.  
Right?  
How can I find them?

---

<div class="post-metadata">

**Author:** ![Raziel90](https://avatars.discourse-cdn.com/v4/letter/r/43a26b/32.png) [@Raziel90](https://community.bitquery.io/u/Raziel90)\
**Post date:** [November 7, 2022, 8:21pm UTC](https://community.bitquery.io/t/dex-trades-history-for-smart-contract/1263/4 "2022-11-07T20:21:39Z")

</div>

```auto
      {
        "block": {
          "timestamp": {
            "time": "2022-11-07 19:55:47"
          },
          "height": 15920372
        },
        "tradeIndex": "10",
        "protocol": "Uniswap v2",
        "exchange": {
          "fullName": "Uniswap"
        },
        "baseAmount": 11611.984611676535,
        "baseCurrency": {
          "address": "0x8dbf9a4c99580fc7fd4024ee08f3994420035727",
          "symbol": "ECO",
          "name": "ECO"
        },
        "base_amount_usd": 0,
        "quoteAmount": 318.972745,
        "quoteCurrency": {
          "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
          "symbol": "USDC",
          "name": "USD//C"
        },
        "quote_amount_usd": 319.0334321248508,
        "transaction": {
          "hash": "0xdd23ad3b58021cdc9a8ac982377d3d920ca9649851774eebb57dbff9c339f5fc"
        },
        "gasPrice": 21.230614528,
        "sellCurrency": {
          "symbol": "ECO"
        }

```

Resolved
