pumpfun tokens Details CP

Returns the latest DEX trade by token on Solana, where currency mint address is 3rowgT…pump, base currency mint address is 3rowgT…pump and DEX protocol name is pump: block time, currency mint address, currency symbol, currency name, trade price, price in USD, sum of trade amount in USD and 9 more fields.

By CP Singh · saved 17 April 2025 · run 10 times · Bitquery API v2

What it returns

Filters

The query

{
  Solana {
    # Get latest price data
    priceData: DEXTradeByTokens(
      limit: {count: 1}
      orderBy: {descending: Block_Time}
      where: {
        Trade: {
          Currency: {MintAddress: {is: "3rowgTWi8DbimRooM2jokY2Kwa5acUe3Yiyb3myBpump"}},
          Dex: {ProtocolName: {is: "pump"}}
        },
        Transaction: {Result: {Success: true}}
      }
    ) {
      Block {
        Time
      }
      Trade {
        Currency {
          MintAddress
          Symbol
          Name
        }
        # Market Price in SOL and USD
        Price
        PriceInUSD
        
      }
      # 24h trading volume
      Volume24h: sum(
        of: Trade_AmountInUSD
        if: {Block: {Time: {since: "2025-04-16T10:47:02Z"}}}
      )
      # Trade count
      TradeCount24h: count(
        if: {Block: {Time: {since: "2025-04-16T10:47:02Z"}}}
      )
    }
    
    # Get pool data (for bonding curve and liquidity)
    poolData: DEXPools(
      limit: {count: 1}
      orderBy: {descending: Block_Time}
      where: {
        Pool: {
          Market: {
            BaseCurrency: {MintAddress: {is: "3rowgTWi8DbimRooM2jokY2Kwa5acUe3Yiyb3myBpump"}}
          },
          Dex: {ProtocolName: {is: "pump"}}
        },
        Transaction: {Result: {Success: true}}
      }
    ) {
      Pool {
        Market {
          MarketAddress
        }
        # Token amount in pool (for bonding curve calculation)
        Base {
          PostAmount
          PostAmountInUSD
        }
        # SOL amount in pool (liquidity)
        Quote {
          PostAmount
          PostAmountInUSD
        }
      }
    }
    
    # Get creation data
    creationData: Instructions(
      limit: {count: 1}
      where: {
        Instruction: {
          Program: {
            Name: {is: "pump"}, 
            Method: {is: "create"}
          },
          Accounts: {
            includes: {
              Address: {is: "3rowgTWi8DbimRooM2jokY2Kwa5acUe3Yiyb3myBpump"}
            }
          }
        }
      }
    ) {
      Block {
        Time  # Creation time
      }
      Transaction {
        Signer  # Creator address
      }
    }
    
    # Check if token migrated to Raydium
    migrationStatus: DEXTradeByTokens(
      where: {
        Trade: {
          Currency: {MintAddress: {is: "3rowgTWi8DbimRooM2jokY2Kwa5acUe3Yiyb3myBpump"}},
          Dex: {ProtocolFamily: {not: "pump"}}
        },
        Transaction: {Result: {Success: true}}
      }
    ) {
      count
      Trade {
        Dex {
          ProtocolName
          ProtocolFamily
        }
      }
    }
  }
}

Similar queries