top bought

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

By Akshat · saved 20 September 2024 · Bitquery API v2

What it returns

The query

{
  Tron {
    DEXTradeByTokens(
      orderBy: {descendingByField: "buy"}
      where: {Transaction: {Result: {Success: true}}}
      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}}}})
    }
  }
}

Similar queries