minute level data

Returns 25000 DEX trades by token on Solana, where account owner is AthkTa…NnF8, block time since 2026-01-28 and block time till 2026-07-28, sorted by block time: block time, currency name, currency symbol, currency mint address, account owner, count, sum of trade amount and 2 more fields.

By gaurav · saved 28 July 2026 · Bitquery API v2

What it returns

Filters

The query

{
  Solana(dataset: archive) {
    DEXTradeByTokens(
      where: {
        Trade: {
          Account: {
            Owner: { is: "AthkTa7HDrdDAEoUxqSdch3HMcEzqxH3VYYePgTKNnF8" }
          }
        }
        Transaction: { Result: { Success: true } }
        Block: {
          Time: {
            since: "2026-01-28T16:00:00Z"
            till: "2026-07-28T17:00:00Z"
          }
        }
      }
      orderBy: { ascendingByField: "Block_Time" }
      limit: { count: 25000 }
    ) {
      Block {
        Time(interval: { in: minutes, count: 1 })
      }
      Trade {
        Currency {
          Name
          Symbol
          MintAddress
        }
        Account {
          Owner
        }
      }
      buys: count(if: { Trade: { Side: { Type: { is: buy } } } })
      sells: count(if: { Trade: { Side: { Type: { is: sell } } } })
      buy_volume: sum(
        of: Trade_Amount
        if: { Trade: { Side: { Type: { is: buy } } } }
      )
      sell_volume: sum(
        of: Trade_Amount
        if: { Trade: { Side: { Type: { is: sell } } } }
      )
      buy_volume_usd: sum(
        of: Trade_Side_AmountInUSD
        if: { Trade: { Side: { Type: { is: buy } } } }
      )
      sell_volume_usd: sum(
        of: Trade_Side_AmountInUSD
        if: { Trade: { Side: { Type: { is: sell } } } }
      )
      volume_usd: sum(of: Trade_Side_AmountInUSD)
      RealizedPnL: calculate(expression: "$sell_volume_usd - $buy_volume_usd")
      avg_buy_price: calculate(expression: "$buy_volume_usd / $buy_volume")
      trades: count
    }
  }
}

Similar queries