track Jupiter trades with join

Returns the latest 100 DEX trades on Solana: protocol name, sell currency symbol, sell amount, sell account address, buy currency symbol, buy amount, buy account address and 4 more fields.

By Divyasshree · saved 28 April 2025 · run 1 time · Bitquery API v2

What it returns

The query

{
  Solana {
    DEXTrades(limit: {count: 100}, orderBy: {descending: Block_Time}) {
      Trade {
        Dex {
          ProtocolName
        }
        Sell {
          Currency {
            Symbol
          }
          Amount
          Account {
            Address
          }
        }
        Buy {
          Currency {
            Symbol
          }
          Amount
          Account {
            Address
          }
        }
      }
      Transaction {
        Signature
      }
      Instruction {
        ExternalSeqNumber
        InternalSeqNumber
      }
      joinInstructions(
        join: inner
        Block_Slot: Block_Slot
        Transaction_Signature: Transaction_Signature
        where: {Instruction: {Program: {Address: {is: "JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4"}}}}
      ) {
        Instruction {
          Program {
            Address
          }
        }
        Transaction {
          Signature
        }
      }
    }
  }
}

Similar queries