ForVincent

Returns 200 DEX trades by token on Solana, where DEX protocol name is pump and block time since 2025-06-01, sorted by trade last price maximum, highest first: market address, currency symbol, currency name, currency mint address, URI, trade price, count and 2 more fields.

By Ahmet · saved 1 June 2025 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query ($from: DateTime) {
  Solana {
    DEXTradeByTokens(
      limit: {count: 200}
      orderBy: {descendingByField: "Trade_lastPrice_maximum"}
      where: {Block: {Time: {since: $from}}, Trade: {Currency: {Native: false}, Dex: {ProtocolName: {is: "pump"}}}, Transaction: {Result: {Success: true}}}
    ) {
      Trade {
        Market {
          MarketAddress
        }
        Currency {
          Symbol
          Name
          MintAddress
          Uri
        }
        lastPrice: Price(maximum: Block_Slot)
        prePrice: Price(minimum: Block_Slot)
      }
      count
      traders: uniq(of: Trade_Account_Owner)
      buy_usd: sum(of: Trade_Side_AmountInUSD, if: {Trade: {Side: {Type: {is: buy}}}})
      sell_usd: sum(
        of: Trade_Side_AmountInUSD
        if: {Trade: {Side: {Type: {is: sell}}}}
      )
    }
  }
}

Variables

{
  "from": "2025-06-01T17:31:07Z"
}

Similar queries