Solana dextrades schema

Returns the latest DEX trade on Solana: program address, protocol name, protocol family, buy amount, buy amount in USD, buy account address, buy account owner and 22 more fields.

By gaurav · saved 9 September 2025 · run 3 times · Bitquery API v2

What it returns

The query

{
  Solana {
    DEXTrades(
      where: {Transaction: {Result: {Success: true}}}
      limit: {count: 1}
      orderBy: {descending: Block_Time}
    ) {
      Trade {
        Dex {
          ProgramAddress
          ProtocolName
          ProtocolFamily
        }
        Buy {
          Amount
          AmountInUSD
          Account {
            Address
            Owner
          }
          Currency {
            Symbol
            Name
            MintAddress
          }
          Price
          PriceInUSD
        }
        Sell {
          Amount
          AmountInUSD
          Account {
            Address
            Owner
          }
          Currency {
            Symbol
            Name
            MintAddress
          }
          Price
          PriceInUSD
        }
      }
      Block {
        Slot
        Time
        Height
      }
      Transaction {
        Signature
        FeePayer
        Signer
        FeeInUSD
        Fee
      }
    }
  }
}

Similar queries