account owner

Returns DEX trades by token on Solana, where account address is 7LKn6d…6baF and block time since 2025-08-10: currency name, currency symbol, currency mint address, side currency name, side currency symbol, side currency mint address, sum of trade side amount in USD and 2 more fields.

By gaurav · saved 13 August 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

{
  Solana(dataset: combined) {
    DEXTradeByTokens(
      where: {Block: {Time: {since: "2025-08-10T11:48:33Z"}}, Trade: {Account: {Address: {is: "7LKn6dRfrfiAw931dpwHNhzeGjVzFse7eC9a6n4B6baF"}}}, Transaction: {Result: {Success: true}}}
    ) {
      Trade {
        Currency {
          Name
          Symbol
          MintAddress
        }
        Side {
          Currency {
            Name
            Symbol
            MintAddress
          }
        }
      }
      buyVolumeUSD: sum(
        of: Trade_Side_AmountInUSD
        if: {Trade: {Side: {Type: {is: buy}}}}
      )
      sellVolumeUSD: sum(
        of: Trade_Side_AmountInUSD
        if: {Trade: {Side: {Type: {is: sell}}}}
      )
      buyVolumeToken: sum(of: Trade_Amount, if: {Trade: {Side: {Type: {is: buy}}}})
      sellVolumeToken: sum(of: Trade_Amount, if: {Trade: {Side: {Type: {is: sell}}}})
      totalVolumeUSD: sum(of: Trade_Side_AmountInUSD)
      totalVolumeToken: sum(of: Trade_Amount)
      totalBuys: count(if: {Trade: {Side: {Type: {is: buy}}}})
      totalSells: count(if: {Trade: {Side: {Type: {is: sell}}}})
      totalTrades: count
    }
  }
}

Similar queries