trade hist of an address

Returns the latest 100 DEX trades on Solana, where transaction signer is 9Gd32K…ztjg: buy amount, buy amount in USD, buy price in USD, buy price, buy currency mint address, buy currency name, buy currency symbol and 11 more fields.

By Akshat · saved 29 November 2024 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana(dataset: realtime) {
    DEXTrades(
      limit:{count:100}
      orderBy:{descending:Block_Time}
      where: {Transaction: {Signer: {is: "9Gd32Krrxi9zkCQM7L4x9PMX7zb1FrVVDj1HKNfXztjg"}}}
    ) {
      Trade {
        Buy {
          Amount
          AmountInUSD
          PriceInUSD
          Price
          Currency {
            MintAddress
            Name
            Symbol
          }
        }
        Dex {
          ProtocolName
          ProtocolFamily
          ProgramAddress
        }
        Sell {
          Price
          PriceInUSD
          Currency {
            Name
            MintAddress
            Symbol
          }
          AmountInUSD
          Amount
        }
      }
      Transaction {
        Signature
      }
    }
  }
}

Similar queries