testando essa merda

Returns DEX trades by token on Solana, where DEX protocol name is pump: currency mint address, currency name, currency symbol, protocol name, protocol family, program address and sum of trade amount.

By bct · saved 5 January 2025 · Bitquery API v2

What it returns

Filters

The query

query MyQuery($time_4h_ago: DateTime!, $token: String) {
  Solana {
    DEXTradeByTokens(
      where: {Trade: {Currency: {MintAddress: {is: $token}}, Dex: {ProtocolName: {is: "pump"}}}, Block: {Time: {since: $time_4h_ago}}}
    ) {
      Trade {
        Currency {
          MintAddress
          Name
          Symbol
        }
        Dex {
          ProtocolName
          ProtocolFamily
          ProgramAddress
        }
      }
      TradeVolume: sum(of: Trade_Amount)
    }
  }
}

Variables

{
  "time_4h_ago":"2025-01-05T16:05:44.632Z"
  "token": "2qEHjDLDLbuBgRYvsxhc5D6uDWAivNFZGan56P1tpump"
}

Similar queries