pnl-2

Returns 300 DEX trades on Ethereum, where buy currency is 0x8802…1ab6 and sell currency is 0xc02a…6cc2, sorted by diff3, highest first: buy amount, sell amount, expression, to address, annotation and tx from address.

By Miroshnichenko Vlad · saved 18 September 2024 · run 5 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum {
    dexTrades(
      options: {limit: 300, desc: "diff3"}
      buyCurrency: {is: "0x8802269D1283cdB2a5a329649E5cB4CdcEE91ab6"}
      sellCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
    ) {
      buyAmount(in: USD)
      sellAmount(in: USD)
      diff1: expression(get: "sellAmount-buyAmount")
      diff2: expression(get: "diff1/buyAmount")
      diff3: expression(get: "diff2*100")
      transaction {
        to {
          address
          annotation
        }
        txFrom {
          address
        }
      }
    }
  }
}

Similar queries