Realtime Price of a token

Streams DEX trades on Solana as they happen, where DEX program address is 6EF8rr…wF6P and buy currency mint address is JDm62G…pump: block time, buy account address, buy amount, buy amount in USD, buy currency mint address, buy currency name, buy currency symbol and 15 more fields.

By Akshat · saved 25 June 2024 · run 8 times · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  Solana {
    DEXTrades(
      where: {Trade: {Dex: {ProgramAddress: {is: "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"}}, Buy: {Currency: {MintAddress: {is: "JDm62GykLKugcWiW8wKNEXurhyGk3meE8hM8v7Ytpump"}}}}}
    ) {
      Block {
        Time
      }
      Trade {
        Buy {
          Account {
            Address
          }
          Amount
          AmountInUSD
          Currency {
            MintAddress
            Name
            Symbol
          }
          Price
          PriceInUSD
        }
        Dex {
          ProtocolName
          ProtocolFamily
          ProgramAddress
        }
        Market {
          MarketAddress
        }
        Sell {
          Account {
            Address
          }
          Amount
          AmountInUSD
          Currency {
            MintAddress
            Name
            Symbol
          }
          Price
          PriceInUSD
        }
      }
      Transaction {
        Signature
      }
    }
  }
}

Similar queries