GET-wallet-owner-trades-alternative

Returns DEX trades on Solana, where buy account owner is MfDuWe…GVWa: buy currency name, buy currency symbol, buy currency mint address, buy URI, buy price in USD, sell currency name, sell currency symbol and 7 more fields.

By Kshitij Mahajan · saved 24 September 2024 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana {
    DEXTrades(
      where: {Trade: {Buy: {Account: {Owner: {is: "MfDuWeqSHEqTFVYZ7LoexgAK9dxk7cy4DFJWjWMGVWa"}}}}}
    ) {
      Trade {
        Buy {
          Currency {
            Name
            Symbol
            MintAddress
            Uri
          }
          PriceInUSD
        }
        Sell {
          Currency {
            Name
            Symbol
            MintAddress
            Uri
          }
        }
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
      }
      Block {
        Time
      }
      sum(of: Trade_Buy_PriceInUSD)
    }
  }
}

Similar queries