ton top tokens

Returns 100 DEX trades by token on TON, where block time since 2024-10-18, sorted by count, highest first: currency symbol, smart contract address, workchain, fungible, currency name, trade amount, amount in USD and 7 more fields.

By Srdjan Stankovic · saved 21 October 2024 · Bitquery API v2

What it returns

Filters

The query

query topTokens($time_ago: DateTime!) {
  Ton{
    DEXTradeByTokens(
      orderBy: {descendingByField: "count"}
      limit: {count: 100}
      where: {Block: {Time: {since: $time_ago}}}
    ) {
      Trade {
        Currency {
          Symbol
          SmartContract {
            Address
            Workchain
          }
          Fungible
          Name
        }
        Amount(maximum: Block_Number)
        AmountInUSD(maximum: Block_Number)
      }
      pairs: uniq(of: Trade_Side_Currency_SmartContract_Address)
      dexes: uniq(of: Trade_Dex_SmartContract_Address)
      amount: sum(of: Trade_Amount)
      usd: sum(of: Trade_AmountInUSD)
      buyers: uniq(of: Trade_Buyer_Address)
      sellers: uniq(of: Trade_Sender_Address)
      count
    }
  }
}

Variables

{
  "time_ago": "2024-10-18T15:00:16Z"
}

Similar queries