Live price of a token

Streams the latest DEX trade by token on Solana as they happen, where currency mint address is So1111…1112 and side currency mint address is EPjFWd…Dt1v: block time and trade price.

By gaurav · saved 9 May 2024 · run 1047 times · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  Solana {
    DEXTradeByTokens(
      limit: {count: 1}
      orderBy: {descending: Block_Time}
      where: {Trade: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}, Side: {Currency: {MintAddress: {is: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}}}}}
    ) {
      Block {
        Time
      }
      Trade {
        Price
      }
    }
  }
}

Similar queries