Token swaps

Returns 1000 DEX trades on Solana: block time, transaction signature, buy amount, buy amount in USD, buy price in USD, buy currency mint address, sell amount and 3 more fields.

By Igor Potapov · saved 28 October 2026 · run 2 times · Bitquery API v2

What it returns

The query


{
  Solana(dataset: realtime) {
    DEXTrades(
where: {
  any: [
    {
      Trade: {
        Buy: {
          Currency: {
            MintAddress: {
              is: "ACqTXUGTbgUDq6REYZQtB9E7BprHrnuJooC1tQKFmmoq"
            }
          }
        }
      }
    }
    {
      Trade: {
        Sell: {
          Currency: {
            MintAddress: {
              is: "ACqTXUGTbgUDq6REYZQtB9E7BprHrnuJooC1tQKFmmoq"
            }
          }
        }
      }
    }
  ]
}
      orderBy: [
        { ascending: Block_Slot }
        { ascending: Transaction_Index }
        { ascending: Instruction_Index }
        { ascending: Trade_Index }
      ]
      limit: { count: 1000 }
    ) {
      Block {
        Time
      }
      Transaction {
        Signature
      }
      Trade {
        Buy {
          Amount
          AmountInUSD
          PriceInUSD
          Currency {
            MintAddress
          }
        }
        Sell {
          Amount
          AmountInUSD
          PriceInUSD
          Currency {
            MintAddress
          }
        }
      }
    }
  }
}

Similar queries