Latest Trades Nazim

Returns the latest 20 DEX trades by token on Solana, where currency mint address is 6p6xgH…GiPN, side currency mint address is 111111…1111, So1111…1112 or 6 more and block time after 2025-04-19: block time, transaction signature, signer, market address, protocol family, protocol name, amount in USD and 9 more fields.

By DeAura · saved 3 December 2025 · run 5 times · Bitquery API v2

What it returns

Filters

The query

query LatestTrades($token: String, $time_ago: DateTime) {
  Solana {
    DEXTradeByTokens(
      orderBy: { descending: Block_Time }
      limit: { count: 20 }
      where: {
        Transaction: { Result: { Success: true } }
        Trade: {
          Currency: { MintAddress: { is: $token } }
          Side: {
            Currency: {
              MintAddress: {
                in: [
                  "11111111111111111111111111111111",
                  "So11111111111111111111111111111111111111112",
                  "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                  "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
                  "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN",
                  "EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm",
                  "2MwxMWon2z4RxAq98pt9uNxLpWCDY2QCeeqtUS4JWHC7",
                  "9TPL8droGJ7jThsq4momaoz6uhTcvX2SeMqipoPmNa8R"
                ]
              }
            }
          }
        }
        Block: { Time: { after: $time_ago } }
      }
    ) {
      Block {
        Time
      }
      Transaction {
        Signature
        Signer
      }
      Trade {
        Market {
          MarketAddress
        }
        Dex {
          ProtocolFamily
          ProtocolName
        }
        AmountInUSD(maximum: Block_Time)
        PriceInUSD(maximum: Block_Time)
        Price(maximum: Block_Time)
        Amount(maximum: Block_Time)
        Side {
          Type
          Currency {
            Symbol
            MintAddress
            Name
          }
          AmountInUSD(maximum: Block_Time)
          Amount(maximum: Block_Time)
        }
      }
    }
  }
}

Variables

{
  "token":"6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
  "time_ago":"2025-04-19T13:45:44Z"
}

Similar queries