Latest Trades for Token on Solana

they are equal to transactions in case of considering buy and sell situation

Returns the latest 200 DEX trades by token on Solana, where side currency mint address is So1111…1112, currency mint address is ChgAwX…pump and side type is buy: account owner and transaction signature.

By Dusko · saved 16 February 2025 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query LatestTrades($token: String, $limit: Int) {
  Solana {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      limit: {count: $limit}
      where: {Trade: {Side: {Amount: {gt: "0"}, Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}, Type: {in: buy}}, Currency: {MintAddress: {is: $token}}, Price: {gt: 0}}, Transaction: {Result: {Success: true}}}
    ) {
      Trade {
        Account {
          Owner
        }
      }
      Transaction {
        Signature
      }
    }
  }
}

Variables

{
  "token": "ChgAwXrBN15hF5UxHWaeTo5uRcFrDWsH9dRbU5Yspump",
  "limit": 200
}

Similar queries