top bought

Returns 100 DEX trades by token on Ethereum, sorted by buy, highest first: currency symbol, currency name, smart contract and sum of trade side amount in USD.

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

What it returns

The query

query timeDiagram($network: evm_network) {
  EVM(network: $network) {
    DEXTradeByTokens(orderBy: {descendingByField: "buy"}, limit: {count: 100}) {
      Trade {
        Currency {
          Symbol
          Name
          SmartContract
        }
      }
      buy: sum(of: Trade_Side_AmountInUSD, if: {Trade: {Side: {Type: {is: buy}}}})
      sell: sum(of: Trade_Side_AmountInUSD, if: {Trade: {Side: {Type: {is: sell}}}})
    }
  }
}

Variables

{
  "network": "eth"
}

Similar queries