liquidity-removal-for-a-pair

Returns DEX pools on Solana, where base currency mint address is 5FGULy…pump, quote currency mint address is 111111…1111 and base change amount is below 0: market address, base currency mint address, base currency symbol, base currency name, quote currency mint address, quote currency symbol, quote currency name and 7 more fields.

By Kshitij Mahajan · saved 27 August 2024 · Bitquery API v2

What it returns

Filters

The query

{
  Solana {
    DexPools(
      where: {
        Pool: {
          Market: {
            BaseCurrency: {
              MintAddress: {
                is: "5FGULyTir641wnz7gr2p2kiYYpWboVYE83qos1r9pump"
              }
            }, 
            QuoteCurrency: {
              MintAddress: {
                is: "11111111111111111111111111111111"
              }
            }
          },
          Base: {ChangeAmount: {lt: "0"}}}}
    ) {
      Pool {
        Market {
          MarketAddress
          BaseCurrency {
            MintAddress
            Symbol
            Name
          }
          QuoteCurrency {
            MintAddress
            Symbol
            Name
          }
        }
        Dex {
          ProtocolFamily
          ProtocolName
        }
        Quote {
          PostAmount
          PriceInUSD
          PostAmountInUSD
        }
        Base {
          ChangeAmount
          PostAmount
        }
      }
    }
  }
}

Similar queries