newInstructionsPrice

Streams DEX trades by token on Solana as they happen, where currency program address is Tokenk…Q5DA and DEX protocol family is Moonshot, Pumpfun or 2 more: currency mint address, currency symbol, currency name, program address, decimals, protocol family, protocol name and 11 more fields.

By Jose · saved 17 December 2024 · run 10 times · Bitquery API v2

What it returns

Filters

The subscription

subscription newInstructionsPrice($protocols: [String!], $programAddress: String!) {
  Solana {
    DEXTradeByTokens(
      where: {Transaction: {Result: {Success: true}}, Trade: {Currency: {ProgramAddress: {is: $programAddress}}, Dex: {ProtocolFamily: {in: $protocols}}}}
    ) {
      Trade {
        Currency {
          MintAddress
          Symbol
          Name
          ProgramAddress
          Decimals
        }
        Dex {
          ProtocolFamily
          ProtocolName
          ProgramAddress
        }
        PriceInUSD
        Side {
          AmountInUSD
          Type
          Amount
          Currency {
            MintAddress
            Name
            Symbol
            Decimals
          }
        }
        Price
        Amount
        AmountInUSD
      }
    }
  }
}

Variables

{
  "protocols": [
    "Moonshot",
    "Pumpfun",
    "OrcaWhirpool",
    "Raydium"
  ],
  "programAddress": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
}

Similar queries