top losers

Returns 100 DEX trades by token on Tron, sorted by USD: currency symbol, currency name, smart contract, side currency symbol, side currency name, side smart contract, price in USD and 6 more fields.

By Akshat · saved 20 September 2024 · Bitquery API v2

What it returns

The query

{
  Tron {
    DEXTradeByTokens(
      where: {Transaction: {Result: {Success: true}}}
      orderBy: {ascendingByField: "usd"}
      limit: {count: 100}
    ) {
      Trade {
        Currency {
          Symbol
          Name
          SmartContract
        }
        Side {
          Currency {
            Symbol
            Name
            SmartContract
          }
        }
        price_last: PriceInUSD(maximum: Block_Number)
        price_1h_ago: PriceInUSD(minimum: Block_Number)
      }
      dexes: uniq(of: Trade_Dex_OwnerAddress)
      amount: sum(of: Trade_Side_Amount)
      usd: sum(of: Trade_Side_AmountInUSD)
      buyers: uniq(of: Trade_Buyer)
      sellers: uniq(of: Trade_Seller)
      count(selectWhere: {ge: "100"})
    }
  }
}

Similar queries