pump fun

Returns the latest DEX trades by token on Solana, where currency mint address is CyQeA9…qE2Z: block time, sum of trade amount, amount in USD, price in USD, trade amount, protocol family, protocol name and market address.

By Name · saved 15 February 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query MyQuery($is: String = "") {
  Solana {
    DEXTradeByTokens(
      where: {Trade: {Currency: {MintAddress: {is: $is}}}}
      orderBy: {descendingByField: "Block_Timefield"}
    ) {
      Block {
        Timefield: Time(interval: {in: seconds, count: 1})
      }
      volume: sum(of: Trade_Amount)
      tokenLiquidity: sum(of: Trade_Amount, if: {Trade: {Side: {Type: {is: buy}}}})
      Trade {
        AmountInUSD
        PriceInUSD
        Amount
        Dex {
          ProtocolFamily
          ProtocolName
        }
        Market {
          MarketAddress
        }
      }
    }
  }
}

Variables

{
  "is": "CyQeA9eS6XxxD5j4SASGgYLN2aV1NCbyfKjUzzAbqE2Z"
}

Similar queries