trades of a wallet

Returns DEX trades on Solana, where buy token owner is WHTUPp…1MPN and sell token owner is WHTUPp…1MPN: program address, protocol family, protocol name, buy amount, buy account address, buy metadata address, buy currency key and 22 more fields.

By Akshat · saved 29 January 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

{
  Solana {
    buy: DEXTrades(
      where: {Trade: {Buy: {Account: {Token: {Owner: {is: "WHTUPptqvi8BR9amvWuh3uBzZFssQQQas2ijb4H1MPN"}}}}}}
    ) {
      Trade {
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
        Buy {
          Amount
          Account {
            Address
          }
          Currency {
            MetadataAddress
            Key
            IsMutable
            EditionNonce
            Decimals
            CollectionAddress
            Fungible
            Symbol
            Native
            Name
          }
          Order {
            LimitPrice
            LimitAmount
            OrderId
          }
          Price
        }
        Market {
          MarketAddress
        }
        Sell {
          Account {
            Address
          }
          Currency {
            IsMutable
            Decimals
            CollectionAddress
            Fungible
            Symbol
            Native
            Name
          }
          Price
        }
      }
    }
    sell: DEXTrades(
      where: {Trade: {Sell: {Account: {Token: {Owner: {is: "WHTUPptqvi8BR9amvWuh3uBzZFssQQQas2ijb4H1MPN"}}}}}}
    ) {
      Trade {
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
        Buy {
          Amount
          Account {
            Address
          }
          Currency {
            MetadataAddress
            Key
            IsMutable
            EditionNonce
            Decimals
            CollectionAddress
            Fungible
            Symbol
            Native
            Name
          }
          Order {
            LimitPrice
            LimitAmount
            OrderId
          }
          Price
        }
        Market {
          MarketAddress
        }
        Sell {
          Account {
            Address
          }
          Currency {
            IsMutable
            Decimals
            CollectionAddress
            Fungible
            Symbol
            Native
            Name
          }
          Price
        }
      }
    }
  }
}

Similar queries