pumpfun-token-latest-trade

Returns the latest 50 DEX trades by token on Solana, where currency mint address is 8MXBgS…pump, block time after 2025-02-06 and trade price is above 0: block time, transaction signature, account address, account owner, side amount in USD, side amount, side type and 6 more fields.

By Robert McEwen · saved 6 February 2025 · Bitquery API v2

What it returns

Filters

The query

query pumpfunTokenLatestTrades($token: String, $time_ago: DateTime) {
  Solana {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      limit: {count: 50}
      where: {Trade: {Currency: {MintAddress: {is: $token}}, Price: {gt: 0}}, Transaction: {Result: {Success: true}}, Block: {Time: {after: $time_ago}}}
    ) {
      Block {
        Time
      }
      Transaction {
        Signature
      }
      Trade {
        Account {
          Address
          Owner
        }
        Side {
          AmountInUSD
          Amount
          Type
          Account {
            Address
            Owner
          }
        }
        Price
        PriceInUSD
        Amount
        AmountInUSD
      }
    }
  }
}

Variables

{
  "token": "8MXBgSbXc1jTNnAxPc6C6LssXB3dF5D7BYZMAVRVpump",
  "time_ago": "2025-02-06T15:22:02Z"
}

Similar queries