Get Latest Price of a Token in USD Real-time

Streams DEX trades by token on Solana as they happen, where currency mint address is So1111…1112: transaction signature, amount in USD, trade amount, currency mint address, currency name, program address, protocol name and 7 more fields.

By Akshat · saved 24 April 2024 · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  Solana {
    DEXTradeByTokens(
      where: {Trade: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}}
    ) {
      Transaction {
        Signature
      }
      Trade {
        AmountInUSD
        Amount
        Currency {
          MintAddress
          Name
        }
        Dex {
          ProgramAddress
          ProtocolName
        }
        Price
        PriceInUSD
        Side {
          Account {
            Address
          }
          AmountInUSD
          Amount
          Currency {
            Name
            MintAddress
          }
        }
      }
    }
  }
}

Similar queries