sol_buy_sells

Returns DEX trades on Solana, where transaction signer is Gm5617…MAPx, buy currency mint address is GmbC2H…pump and sell currency mint address is GmbC2H…pump: buy currency name, buy currency mint address, buy price and transaction signature.

By Omkar_BQ · saved 19 November 2024 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana(dataset: realtime, network: solana) {
    Buys: DEXTrades(
      where: {Transaction: {Signer: {is: "Gm5617aWArkHG5gcepuGfpUumAxTUmnfKdaSuZjhMAPx"}}, Trade: {Buy: {Currency: {MintAddress: {is: "GmbC2HgWpHpq9SHnmEXZNT5e1zgcU9oASDqbAkGTpump"}}}}}
    ) {
      Trade {
        Buy {
          Currency {
            Name
            MintAddress
          }
          Price
        }
      }
      Transaction {
        Signature
      }
    }
    Sells: DEXTrades(
      where: {Transaction: {Signer: {is: "Gm5617aWArkHG5gcepuGfpUumAxTUmnfKdaSuZjhMAPx"}}, Trade: {Sell: {Currency: {MintAddress: {is: "GmbC2HgWpHpq9SHnmEXZNT5e1zgcU9oASDqbAkGTpump"}}}}}
    ) {
      Trade {
        Buy {
          Currency {
            Name
            MintAddress
          }
          Price
        }
      }
      Transaction {
        Signature
      }
    }
  }
}

Similar queries