price

Returns the latest DEX trade by token on Solana, where currency mint address is 3cEqNm…pump, side currency mint address is 111111…1111, So1111…1112 or 1 more and market market address is Fsv2JV…ccXz: sum of trade side amount in USD, base currency name, base currency symbol, quote currency name, quote currency symbol, base post amount, base post amount in USD and 9 more fields.

By gaurav · saved 14 March 2026 · Bitquery API v2

What it returns

Filters

The query

query MyQuery($time_1h_ago: DateTime, $token: String, $pairAddress: String) {
  Solana {
    volume: DEXTradeByTokens(
      where: {Trade: {Currency: {MintAddress: {is: $token}}
        Side:{
          Currency:{
            MintAddress:{
              in:["11111111111111111111111111111111",
              "So11111111111111111111111111111111111111112",
              "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"]
            }
          }
        }
        ,
        Market: {MarketAddress: {is: $pairAddress}}},
        Block: {Time: {since: $time_1h_ago}}, 
        Transaction: {Result: {Success: true}}}
    ) {
      VolumeInUSD: sum(of: Trade_Side_AmountInUSD)
    }
    liquidity_and_BondingCurve: DEXPools(
      where: {Pool: {Market: {MarketAddress: {is: $pairAddress}}}, Transaction: {Result: {Success: true}}}
      limit: {count: 1}
      orderBy: {descending: Block_Time}
    ) {
      Pool {
        Market {
          BaseCurrency {
            Name
            Symbol
          }
          QuoteCurrency {
            Name
            Symbol
          }
        }
        Base {
          Balance: PostAmount
          PostAmountInUSD
        }
        Quote {
          PostAmount
          PostAmountInUSD
        }
      }
    }
    marketcap_and_supply: TokenSupplyUpdates(
      where: {TokenSupplyUpdate: {Currency: {MintAddress: {is: $token}}}, Transaction: {Result: {Success: true}}}
      limitBy: {by: TokenSupplyUpdate_Currency_MintAddress, count: 1}
      orderBy: {descending: Block_Time}
    ) {
      TokenSupplyUpdate {
        MarketCap: PostBalanceInUSD
        Supply: PostBalance
        Currency {
          Name
          MintAddress
          Symbol
        }
      }
    }
    Price: DEXTradeByTokens(
      limit: {count: 1}
      orderBy: {descending: Block_Time}
      where: {Transaction: {Result: {Success: true}}, Trade: {Currency: {MintAddress: {is: $token}}, Market: {MarketAddress: {is: $pairAddress}}}}
    ) {
      Trade {
        Price
        PriceInUSD
      }
    }
  }
}

Variables

{
  "time_1h_ago": "2026-03-15T11:00:00Z",
  "token": "3cEqNmBLeXLjJXKX7aaSSFh1Agg3DLzuGePepEDNpump",
  "pairAddress": "Fsv2JV8SrBXb5h66nfVEhKiUzMViAZYyxwhAADYEccXz"
}

Similar queries