pump

Streams one DEX trade by token on Solana as they happen, where DEX program address is 6EF8rr…wF6P, side currency mint address is 111111…1111 and block time since 2024-12-10: block time, count, currency name, currency symbol, decimals, currency mint address, trade price and 7 more fields.

By Jose · saved 10 December 2024 · Bitquery API v2

What it returns

Filters

The subscription

subscription MyQuery {
  Solana {
    DEXTradeByTokens(
      where: {Trade: {PriceInUSD: {gt: 0.000018, lt: 0.000019}, Dex: {ProgramAddress: {is: "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"}}, Side: {Currency: {MintAddress: {is: "11111111111111111111111111111111"}}, AmountInUSD: {ge: "0.007200000"}}}, Transaction: {Result: {Success: true}}, Block: {Time: {since: "2024-12-10T20:00:00Z"}}, any: {Trade: {}}}
      limit: {count: 1}
    ) {
      Block {
        Time
      }
      
      buyers: count(
        distinct: Transaction_Signer
        if: { Trade: { Side: { Type: { is: buy } } } }
      )
      
      sellers: count(
        distinct: Transaction_Signer
        if: { Trade: { Side: { Type: { is: sell } } } }
      )
      
      Trade {
        Currency {
          Name
          Symbol
          Decimals
          MintAddress
        }
        Price
        PriceInUSD
        Dex {
          ProtocolName
          ProtocolFamily
          ProgramAddress
        }
        Side {
          Currency {
            MintAddress
            Name
            Symbol
          }
        }
      }
    }
  }
}

Similar queries