latest price for more than 1 markets on solana against wsol

Streams DEX trades on Solana as they happen, where buy currency mint address is 6ogzHh…hitx or 43uhyk…SfNz and sell currency mint address is So1111…1112: average of trade buy price, buy currency name, buy currency symbol and buy currency mint address.

By gaurav · saved 11 July 2024 · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  Solana {
    DEXTrades(
      where: {Transaction: {Result: {Success: true}}, Trade: {Buy: {Currency: {MintAddress: {in: ["6ogzHhzdrQr9Pgv6hZ2MNze7UrzBMAFyBBWUYp1Fhitx", "43uhykFm8Y9gLvHrWs7r7w1HCKu6vikDi7j394FaSfNz"]}}}, Sell: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}}}
    ) {
      average(of: Trade_Buy_Price)
      Trade {
        Buy {
          Currency {
            Name
            Symbol
            MintAddress
          }
        }
      }
    }
  }
}

Similar queries