Latest trade of a token

Returns the latest DEX trade on Ethereum, where DEX smart contract is 0x906a…5cf8: protocol family, protocol name, sender, buy amount, buy buyer, buy currency name, buy smart contract and 10 more fields.

By gaurav · saved 1 May 2023 · run 14 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(network: eth, dataset: combined) {
    DEXTrades(
      where: {Trade: {Dex: {SmartContract: {is: "0x906a305a5d4344cd329928a1a76cb2f4b4f55cf8"}}}}
      limit: {count: 1}
      orderBy: {descending: Block_Time}
    ) {
      Trade {
        Dex {
          ProtocolFamily
          ProtocolName
        }
        Sender
        Buy {
          Amount
          Buyer
          Currency {
            Name
            SmartContract
            Symbol
          }
          Price
          Seller
        }
        Sell {
          Amount
          Buyer
          Currency {
            Name
            Symbol
            SmartContract
          }
          Price
          Seller
        }
      }
    }
  }
}

Similar queries