latest trades

Returns the latest 50 DEX trades by token on Ethereum, where currency smart contract is 0x2260…c599 and trade price is above 0: block time, owner address, protocol family, protocol name, amount in USD, buyer, seller and 10 more fields.

By Akshat · saved 22 September 2024 · run 54 times · Bitquery API v2

What it returns

Filters

The query

query LatestTrades($network: evm_network, $token: String) {
  EVM(network: $network) {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      limit: {count: 50}
      where: {Trade: {Currency: {SmartContract: {is: $token}}, Price: {gt: 0}}}
    ) {
      Block {
        allTime: Time
      }
      Trade {
        Dex {
          OwnerAddress
          ProtocolFamily
          ProtocolName
        }
        AmountInUSD
        Buyer
        Seller
        Side {
          Type
          Buyer
          Seller
        }
        Price
        Amount
        Side {
          Currency {
            Symbol
            SmartContract
            Name
          }
          AmountInUSD
          Amount
        }
      }
    }
  }
}

Variables

{
  "network": "eth",
  "token": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"
}

Similar queries