pair trades

Returns 5 DEX trades on Solana, sorted by block slot: block time, slot, transaction signature, signer, buy amount, buy currency mint address, buy price and 5 more fields.

By zhongxiao an · saved 18 April 2025 · Bitquery API v2

What it returns

The query

query MyQuery {
  Solana {
    DEXTrades(
      where: {Transaction: {Result: {Success: true}}, Instruction: {Accounts: {includes: {Address: {is: "FdqUvWCzhRSwyhetWGWuHsva9czU3GxSKRqLozJbd58Y"}}}}}
      limit: {count: 5, offset: 0}
      orderBy: {ascending: Block_Slot}
    ) {
      Block {
        Time
        Slot
      }
      Transaction {
        Signature
        Signer
      }
      Trade {
        Buy {
          Amount
          Currency {
            MintAddress
          }
          Price
          PriceInUSD
        }
        Sell {
          Amount
          Currency {
            MintAddress
          }
          Price
          PriceInUSD
        }
      }
    }
  }
}

Similar queries