latest price for more than 1 markets on solana

Streams DEX trades on Solana as they happen, where market market address is 5eLRsN…szxH or EQqL6D…Aobr: average of trade buy price, buy currency name, buy currency symbol and buy currency mint address.

By gaurav · saved 10 July 2024 · run 21 times · Bitquery API v2

What it returns

Filters

The subscription

subscription{
  Solana {
    DEXTrades(
      where: {Transaction: {Result: {Success: true}},
        Trade: {Market: {MarketAddress: {in:
          ["5eLRsN6qDQTQSBF8KdW4B8mVpeeAzHCCwaDptzMyszxH",
            "EQqL6D4r6GGfN8pkTeGonkBDwEuAULtNBJTftg4wAobr"]}},
          }}
    ) {
      average(of: Trade_Buy_Price)
      Trade {
        Buy {
          Currency {
            Name
            Symbol
            MintAddress
          }
        }
      }
    }
  }
}

Similar queries