PNL

Returns DEX trades by token on Solana, where currency mint address is V32neU…kpSv and account owner is E6W368…ZLbM, sorted by block time: side type, trade amount, account owner, trade price and block time.

By alex · saved 5 March 2025 · run 5 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery($token: String, $wallets: [String!]) {
  Solana(dataset: combined) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {MintAddress: {is: $token}}, Account: {Owner: {in: $wallets}}}}
      orderBy: {ascending: Block_Time}
    ) {
      Trade {
        Side {
          Type
        }
        Amount(maximum: Trade_Amount)
        Account {
          Owner
        }
        Price(maximum: Trade_Price)
      }
      Block {
        Time
      }
    }
  }
}

Variables

{
  "token":"V32neUjHAPhhEfWbfvv7ZwR6fiixCTZTZCeKed8kpSv",
  "wallets":["E6W368kth4555taFaWeULbTebnz6SeHYLagcRer8ZLbM"]
}

Similar queries