WSOL - WSOL Arbitrage

Returns the latest 50 DEX trades by token on Solana, where side currency mint address is So1111…1112, currency mint address is So1111…1112 and block time after 2025-07-06: block time, transaction signature, currency symbol, currency name, market address, protocol name, protocol family and 10 more fields.

By Divyasshree · saved 7 July 2025 · Bitquery API v2

What it returns

Filters

The query

query LatestTrades($token: String, $base: String, $time_ago: DateTime) {
  Solana {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      limit: {count: 50}
      where: {Transaction: {Result: {Success: true}}, Trade: {Side: {Amount: {gt: "0"}, Currency: {MintAddress: {is: $token}}}, Currency: {MintAddress: {is: $base}}}, Block: {Time: {after: $time_ago}}}
    ) {
      Block {
        Time
      }
      Transaction {
        Signature
      }
      Trade {
        Currency {
          Symbol
          Name
        }
        Market {
          MarketAddress
        }
        Dex {
          ProtocolName
          ProtocolFamily
        }
        PriceInUSD
        Amount
        AmountInUSD
        PriceAsymmetry
        Side {
          Type
          Currency {
            Symbol
            MintAddress
            Name
          }
          AmountInUSD
          Amount
        }
      }
    }
  }
}

Variables

{
  "network": "solana",
  "base": "So11111111111111111111111111111111111111112",
  "token": "So11111111111111111111111111111111111111112",
  "time_ago": "2025-07-06T11:30:29Z"
}

Similar queries