PNL

Returns DEX trades by token on Solana, where currency mint address is CXPLyc…pump and account owner is 7yExLX…q81r, sorted by block time: side type, trade amount, account owner, price in USD and block time.

By Dulan Malinda · saved 13 January 2025 · run 27 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
        }
        PriceInUSD(maximum: Trade_PriceInUSD)
      }
      Block {
        Time
      }
    }
  }
}

Variables

{
  "token":"CXPLyc3EX8WySgEXLbjhuA7vy8EKQokVJYQuJm2jpump",
  "wallets":["7yExLX7dJXGcjaxf8kWF1LkJ77eESwpn1cDo7gSRq81r"]
}

Similar queries