Average-Price-and-Total-Volume-Traded-for-24-hours-for-WSOL-on-Lifinity-DEX-on-Solana

Returns DEX trades on Solana, where buy currency mint address is So1111…1112, DEX protocol family is Lifinity and block time after 2024-06-04: sum of trade buy amount in USD and average of trade buy price in USD.

By Kshitij Mahajan · saved 4 June 2024 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query TradeParameters {
  Solana {
    DEXTrades(
      where: {Trade: {Dex: {ProtocolFamily: {is: "Lifinity"}}, Buy: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}}, Block: {Time: {after: "2024-06-04T00:00:00Z", before: "2024-06-05T00:00:00Z"}}}
    ) {
      Volume: sum(of: Trade_Buy_AmountInUSD)
      AveragePrice: average(of: Trade_Buy_PriceInUSD)
    }
  }
}

Similar queries