Ton Top Tokens

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

By Divyasshree · saved 24 October 2024 · run 6 times · Bitquery API v2

What it returns

Filters

The query

query TopTokens($time_ago: DateTime!) {
  Ton {
    DEXTradeByTokens(
      where: {Block: {Time: {after: $time_ago}}, Trade: {Success: true}}
      orderBy: {descendingByField: "count"}
      limit: {count: 100}
    ) {
      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-21T05:41:31Z"
}

Similar queries