Copy of latest price for more than 1 markets on solana against wsol

latest price for more than 1 markets on solana against wsol

Returns the latest DEX trades on Solana, 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, buy currency mint address, buy price in USD, buy price, sell currency name and 2 more fields.

By George · saved 11 July 2024 · run 11 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana {
    DEXTrades(
      orderBy: {descending: Block_Time}
      where: {Transaction: {Result: {Success: true}}, Trade: {Buy: {Currency: {MintAddress: {in: ["6ogzHhzdrQr9Pgv6hZ2MNze7UrzBMAFyBBWUYp1Fhitx", "43uhykFm8Y9gLvHrWs7r7w1HCKu6vikDi7j394FaSfNz"]}}}, Sell: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}}}
      limitBy: {by: Trade_Buy_Currency_MintAddress, count: 1}
    ) {
      average(of: Trade_Buy_Price)
      Trade {
        Buy {
          Currency {
            Name
            Symbol
            MintAddress
          }
          Price_In_USD: PriceInUSD
          Price_against_sell_currency: Price
        }
        Sell {
          Currency {
            Name
            Symbol
            MintAddress
          }
        }
      }
    }
  }
}

Similar queries