piss?

Returns the latest 1000 DEX trades by token on Solana, where side amount is above 0 and trade price is above 0: block time, transaction signature, signer, trade price, price in USD, trade amount, protocol name and 10 more fields.

By Auram · saved 29 October 2025 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query WalletProfitability($token: String!, $base: String!, $since: DateTime!) {
  Solana {
    DEXTradeByTokens(
      orderBy: { descending: Block_Time }
      limit: { count: 1000 }
      where: {
        Transaction: { Result: { Success: true } }
        Trade: {
          Side: { Currency: { MintAddress: { is: $base } }, Amount: { gt: "0" } }
          Currency: { MintAddress: { is: $token } }
          Price: { gt: 0 }
        }
        Block: { Time: { since: $since } }
      }
    ) {
      Block {
        Time
      }
      Transaction {
        Signature
        Signer
      }
      Trade {
        Price
        PriceInUSD
        Amount
        Dex {
          ProtocolName
          ProtocolFamily
        }
        Side {
          Type
          Currency {
            Symbol
            Name
            MintAddress
          }
          Amount
          AmountInUSD
        }
        Currency {
          Symbol
          Name
          MintAddress
        }
      }
    }
  }
}

Variables

{    
  "token": "CzLSujWBLFsSjncfkh59rUFqvafWcY5tzedWJSuypump",  # your token
  "base": "So11111111111111111111111111111111111111112",  # WSOL
"since": "2025-04-28T00:00:00Z"
  
}

Similar queries