ton dex markets

Returns DEX trades by token on TON, where block time since 2024-10-18: protocol family, unique of trade buyer address, unique of trade sender address and count.

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

What it returns

Filters

The query

query DexMarkets($time_ago: DateTime) {
  Ton {
    DEXTradeByTokens(where: {Block: {Time: {since: $time_ago}}}) {
      Trade {
        Dex {
          ProtocolFamily
        }
      }
      buyers: uniq(of: Trade_Buyer_Address)
      sellers: uniq(of: Trade_Sender_Address)
      count(if: {Trade: {Side: {Type: {is: buy}}}})
    }
  }
}

Variables

{
    "time_ago": "2024-10-18T18:05:34Z"
}

Similar queries