ton tokens time diagram

Returns 100 DEX trades by token on TON, where block time since 2024-10-18, sorted by buy, highest first: currency symbol, currency name, smart contract address, workchain and sum of trade side amount in USD.

By Srdjan Stankovic · saved 21 October 2024 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query timeDiagram( $time_ago: DateTime) {
  Ton {
    DEXTradeByTokens(
      orderBy: {descendingByField: "buy"}
      limit: {count: 100}
      where: {Block: {Time: {since: $time_ago}}}
    ) {
      Trade {
        Currency {
          Symbol
          Name
          SmartContract {
            Address
            Workchain
          }
        }
      }
      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

{
  "time_ago": "2024-10-18T18:24:57Z"
}

Similar queries