# exchangeName in dexTrades subscription

**URL:** <https://community.bitquery.io/t/exchangename-in-dextrades-subscription/1701>\
**Category:** GraphQL API\
**Tags:** support, open\
**Created:** [October 3, 2023, 5:53pm UTC](https://community.bitquery.io/t/exchangename-in-dextrades-subscription/1701 "2023-10-03T17:53:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![voices](https://avatars.discourse-cdn.com/v4/letter/v/ac91a4/32.png) [@voices](https://community.bitquery.io/u/voices)\
**Post date:** [October 3, 2023, 5:53pm UTC](https://community.bitquery.io/t/exchangename-in-dextrades-subscription/1701/1 "2023-10-03T17:53:49Z")

</div>

Hey,

I’m looking to create a `DEXTrades` subscription that’ll get a bunch of objects based on the exchangeName - here’s the query I’m looking to recreate as subscription:

```auto
{
  ethereum(network: ethereum) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: 1}
      exchangeName: {in: ["Uniswap"]}
      baseCurrency: {is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}
      quoteCurrency: {is: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"}
      date: {after: "2023-04-28"}
    ) {
      transaction {
        hash
      }
      tradeIndex
      smartContract {
        address {
          address
        }
        contractType
        currency {
          name
        }
      }
      tradeIndex
      date {
        date
      }
      block {
        height
      }
      buyAmount
      buyAmountInUsd: buyAmount(in: USD)
      buyCurrency {
        symbol
        address
      }
      sellAmount
      sellAmountInUsd: sellAmount(in: USD)
      sellCurrency {
        symbol
        address
      }
      sellAmountInUsd: sellAmount(in: USD)
      tradeAmount(in: USD)
      transaction {
        gasValue
        gasPrice
        gas
      }
    }
  }
}

```

unfortunately in subscription it’s not possible to filter by exchangeName. is there any other way of getting the subscription equivalent from the above query?

---

<div class="post-metadata">

**Author:** ![Divya](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@Divya](https://community.bitquery.io/u/Divya)\
**Post date:** [October 4, 2023, 6:21am UTC](https://community.bitquery.io/t/exchangename-in-dextrades-subscription/1701/2 "2023-10-04T06:21:08Z")

</div>

Please check this example: [Token Trades API | Streaming API (V2 API Docs)](https://docs.bitquery.io/docs/examples/dextrades/token-trades-apis/#token-trade-from-a-specific-dex)
