link

uni, sushi, bancor volume

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

By asafs · saved 11 January 2021 · Bitquery API v1

What it returns

Filters

The query

query {
  ethereum {
    uniswap: dexTrades(
      options: {asc: "date.date"}
      # contract address of the uniswap pool for the relevant token
      smartContractAddress: {is: "0xa2107fa5b38d9bbd2c461d6edf11b11a50f6b974"}
      
    ) {
      exchange { fullName },
      taker { 
        smartContract {contractType}
      }
      date {
        date
      }
      tradeAmount(in: USD)
      count
    }
    
    bancor: dexTrades(
      options: {asc: "date.date"}
      
      # 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}
      }
      date {
        date
      }
      tradeAmount(in: USD)
      count

    } 
     sushiswap: dexTrades(
      options: {asc: "date.date"}
      # contract address of the sushiswap pool for the relevant token
      smartContractAddress: {is: "0xc40d16476380e4037e6b1a2594caf6a6cc8da967"}
      
    ) {
      exchange { fullName },
      taker { 
        smartContract {contractType}
      }
      date {
        date
      }
      tradeAmount(in: USD)
      count
    }
    
  }
}

Similar queries