EXERCICE 01

Streams DEX trades by token on Solana as they happen: trade price, price in USD, side currency name, side currency symbol, side amount, side amount in USD, side type and 2 more fields.

By HAR · saved 11 December 2024 · Bitquery API v2

What it returns

The subscription

subscription MyQuery {
  Solana {
    DEXTradeByTokens(where: {Trade: {Currency: {}}}) {
      Trade {
        Price
        PriceInUSD
        Side {
          Currency {
            Name
            Symbol
          }
          Amount
          AmountInUSD
          Type
        }
      }
      Transaction {
        Maker : Signer
        Signature
      }
    }
  }
}

Similar queries