ATH ATL dogecoin on ethereum

Returns one DEX trade on Ethereum, where buy currency smart contract is 0x4206…668f, sell currency smart contract is 0xc02a…6cc2 and block time after 2021-10-01, sorted by trade buy price, highest first: buy currency name, buy price and sell currency name.

By gaurav · saved 3 November 2023 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: archive, network: eth) {
    ATL: DEXTrades(
      limit: {count: 1}
      orderBy: {ascending: Trade_Buy_Price}
      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
          }
          Price
        }
        Sell {
          Currency {
            Name
          }
        }
      }
    }
    ATH: DEXTrades(
      limit: {count: 1}
      orderBy: {descending: Trade_Buy_Price}
      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
          }
          Price
        }
        Sell {
          Currency {
            Name
          }
        }
      }
    }
  }
}

Similar queries