DEX Trades stream on solana

Returns the latest 50 DEX trades by token on Solana, where side currency mint address is So1111…1112, currency mint address is 2u98MM…hQvg and side amount is above 0: block time, program address, protocol family, protocol name, account owner, side type, side account address and 9 more fields.

By ITH · saved 18 November 2024 · run 16 times · Bitquery API v2

What it returns

Filters

The query

query LatestTrades {
  Solana {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      limit: {count: 50}
      where: {Trade: {Side: {Amount: {gt: "0"}, Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}, Currency: {MintAddress: {is: "2u98MM7DMtVmNG4iAKRNMtynjmkzgD6fXAzB3wVfhQvg"}}, Price: {gt: 0}}, Transaction: {Result: {Success: true}}}
    ) {
      Block {
        allTime: Time
      }
      Trade {
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
        Account {
          Owner
        }
        Side {
          Type
          Account {
            Address
            Owner
          }
        }
        Price
        Amount
        Side {
          Currency {
            Symbol
            MintAddress
            Name
          }
          AmountInUSD
          Amount
        }
      }
      Transaction {
        Signature
      }
    }
  }
}

Similar queries