Live price of a token on Solana blockchain

Streams the latest DEX trade by token on Solana as they happen, where side currency mint address is JUPyiw…DvCN and currency mint address is EPjFWd…Dt1v: trade amount, trade price, currency symbol, currency name and side amount.

By john · saved 6 June 2024 · run 51 times · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  Solana {
    DEXTradeByTokens(
      limit: {count: 1}
      orderBy: {descending: Block_Height}
      where: {
        Trade: {
          Side: {
            Currency: {
              MintAddress: {is: "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN"}
            }
          },
          Currency: {
            MintAddress: {is: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}
          }
        },
        Transaction: {
          Fee: {}
        }
      }
    ) {
      Trade {
        Amount
        Price
        Currency {
          Symbol
          Name
        }
        Side {
          Amount
        }
      }
    }
  }
}

Similar queries