liquidity-change-in-recent-month

Returns the latest DEX trade by token on Solana, where currency mint address is 6D7NaB…i5Ui, side currency mint address is So1111…1112 and market market address is BSzedb…WZyy: sum of trade amount, sum of trade side amount, block time and market address.

By Not · saved 8 February 2025 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana(dataset: combined) {
    DEXTradeByTokens(
      where: {
        Trade: {
          Currency: {
            MintAddress: {
              is: "6D7NaB2xsLd7cauWu1wKk6KBsJohJmP2qZH9GEfVi5Ui"
            }
          },
          Side: {
            Currency: {
              MintAddress: {
                is: "So11111111111111111111111111111111111111112"
              }
            }
          },
          Market: {
            MarketAddress: {
              is: "BSzedbEvWRqVksaF558epPWCM16avEpyhm2HgSq9WZyy"
            }
          }
        }
      }
      orderBy: {descendingByField: "Block_Timefield"}
      limit: {count: 1}
    ) {
      tokenLiquidity: sum(of: Trade_Amount, if: {Trade: {Side: {Type: {is: buy}}}})
      wsolLiquidity: sum(
        of: Trade_Side_Amount
        if: {Trade: {Side: {Type: {is: sell}}}}
      )
      Block {
        Timefield: Time(interval: {in: months, count: 1})
      }
      Trade {
        Market {
          MarketAddress
        }
      }
    }
  }
}

Similar queries