get trades volume and market cap of a token in one query

Returns DEX trades by token on Solana, where currency mint address is 83vzRC…pump and block time since 2025-03-26: sum of trade side amount in USD, count, post balance in USD, post balance, currency name, currency mint address and currency symbol.

By Kshitij Mahajan · saved 26 March 2025 · run 10 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery($time_1hr: DateTime) {
  Solana {
    DEXTradeByTokens(
      where: {Trade: {Currency: {MintAddress: {is: "83vzRC3B9EQVjz8NDULhn7ywcX16TD8FsVFUAEE7pump"}}}, Block: {Time: {since: $time_1hr}}}
      limitBy: {by: Trade_Side_Currency_MintAddress, count: 1}
    ) {
      volume: sum(of: Trade_Side_AmountInUSD)
      trades: count
      joinBalanceUpdates(
        BalanceUpdate_Currency_MintAddress: Trade_Currency_MintAddress
        orderBy: {descending: Block_Time}
      ) {
        BalanceUpdate {
          PostBalanceInUSD
          PostBalance
          Currency {
            Name
            MintAddress
            Symbol
          }
        }
      }
    }
  }
}

Variables

{
  "time_1hr": "2025-03-26T05:30:00Z"
}

Similar queries