ATH ATL dogecoin

Returns DEX trades on Ethereum, where buy currency smart contract is 0x4206…668f, sell currency smart contract is 0xc02a…6cc2 and block time after 2021-10-01: buy currency name, buy amount, buy price, transaction hash and block time.

By Divyasshree N · saved 3 November 2023 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: archive, network: eth) {
    DEXTrades(
      limitBy: {by: Transaction_Hash, count: 2}
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0x4206931337dc273a630d328dA6441786BfaD668f"}}}, Sell: {Currency: {SmartContract: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}}}}, Block: {Time: {after: "2021-10-01T00:00:00Z", before: "2022-10-01T00:00:00Z"}}}
    ) {
      Trade {
        Buy {
          Currency {
            Name
          }
          Amount
          ATH:Price(maximum:Block_Time)
          ATL:Price(minimum:Block_Time)
        }
      }
      Transaction {
        Hash
      }
      Block {
        Time
      }
    }
  }
}

Similar queries