Slice by taker SC type

Returns DEX trades on Ethereum, where smart contract address is 0xa210…b974, exchange address is 0x2f9e…ccb0 and base currency is 0x5149…86ca: full name, contract type, trade amount and count.

By Aleksey · saved 18 January 2021 · Bitquery API v1

What it returns

Filters

The query

query {
  ethereum {
    uniswap: dexTrades(

      # contract address of the uniswap pool for the relevant token
      smartContractAddress: {is: "0xa2107fa5b38d9bbd2c461d6edf11b11a50f6b974"}
      
    ) {
      exchange { fullName },
       taker {
        smartContract {contractType}
      }
      tradeAmount(in: USD)
      count
    }
    
    bancor: dexTrades(

      
      # contract address of BancorNetwork - do not change
      exchangeAddress: {is: "0x2f9ec37d6ccfff1cab21733bdadede11c823ccb0"}
      # contract address of the token we would like to trace activity for
      baseCurrency: {is: "0x514910771af9ca656af840dff83e8264ecf986ca"}

    ) {
      exchange { fullName },
      taker { 
        smartContract {contractType}
      }
      tradeAmount(in: USD)
      count


    } 
     sushiswap: dexTrades(

      # contract address of the sushiswap pool for the relevant token
      smartContractAddress: {is: "0xc40d16476380e4037e6b1a2594caf6a6cc8da967"}
      
    ) {
      exchange { fullName },
      taker {
        smartContract {contractType}
      }

      tradeAmount(in: USD)
      count
    }
    
  }
}

Similar queries