DEX latest trades

Returns the latest 50 DEX trades by token on Solana, where DEX protocol family is Raydium: block time, transaction signature, program address, protocol family, protocol name, account owner, side type and 12 more fields.

By Aleksey · saved 2 September 2024 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query LatestTrades($market: String!) {
  Solana {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      limit: {count: 50}
      where: {Trade: {Dex: {ProtocolFamily: {is: $market}}}}
    ) {
      Block {
        Time
      }
      Transaction {
        Signature
      }
      Trade {
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
        Account {
          Owner
        }
        Side {
          Type
          Account {
            Address
            Owner
          }
        }
        Price
        Amount
        Side {
          Currency {
            Symbol
            MintAddress
            Name
          }
          AmountInUSD
          Amount
        }
        Currency {
            Symbol
            MintAddress
            Name
        }
      }
    }
  }
}

Variables

{
  "market": "Raydium"
}

Similar queries