Latest price of a token on Solana

Streams DEX trades by token on Solana as they happen, where currency mint address is 6n7Jan…caQS and side currency mint address is So1111…1112: block time, trade amount, amount in USD, trade price, price in USD, currency symbol, currency name and 13 more fields.

By gaurav · saved 28 May 2024 · run 1 time · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  Solana {
    DEXTradeByTokens(
      where: {Trade: {Currency: {MintAddress: {is: "6n7Janary9fqzxKaJVrhL9TG2F61VbAtwUMu1YZscaQS"}}, Side: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}}}
    ) {
      Block {
        Time
      }
      Trade {
        Amount
        AmountInUSD
        Price
        PriceInUSD
        Currency {
          Symbol
          Name
          MintAddress
        }
        Side {
          Amount
          AmountInUSD
          Currency {
            Symbol
            Name
            MintAddress
          }
        }
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
        Market {
          MarketAddress
        }
        Order {
          LimitAmount
          LimitPrice
          OrderId
        }
      }
    }
  }
}

Similar queries