Fixed - of latest trades for a token sell _ JP

Returns the latest DEX trades on Ethereum, where buy currency smart contract is 0x2e51…82e0, 0x2e85…ae15 or 1 more, sell currency smart contract is 0xc02a…6cc2 and block date after 2023-08-01: block number, block time, buy amount, buy buyer, buy currency name, buy currency symbol, buy smart contract and 2 more fields.

By gaurav · saved 9 August 2023 · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined, network: eth) {
    sellside: DEXTrades(
      limitBy: {by: Trade_Buy_Currency_SmartContract, count: 1}
      orderBy: {descending: Block_Time}
      where: {Trade: {Buy: {Currency: {SmartContract: {in: ["0x2e516ba5bf3b7ee47fb99b09eadb60bde80a82e0", "0x2e85ae1c47602f7927bcabc2ff99c40aa222ae15", "0x30dcba0405004cf124045793e1933c798af9e66a"]}}}, Sell: {Currency: {SmartContract: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}}}}, Block: {Date: {after: "2023-08-01"}}}
    ) {
      Block {
        Number
        Time
      }
      Trade {
        Buy {
          Amount
          Buyer
          Currency {
            Name
            Symbol
            SmartContract
          }
          Seller
          Price
        }
      }
    }
  }
}

Similar queries