query trade

获取某个池子的交易

Returns 5 DEX trades on Solana, sorted by block height: block time, slot, transaction signature, transaction index, success, trade index, program address and 38 more fields.

By zhongxiao an · saved 18 April 2025 · run 3 times · Bitquery API v2

What it returns

The query

query MyQuery {
  Solana {
    DEXTrades(
      where: {Transaction: {Result: {Success: true}}, Instruction: {Accounts: {includes: {Address: {is: "2sNTkiWzt1tp1WwwEUw4TvK58SfhpeEEkaVyxwtoDwW1"}}}}}
      limit: {count: 5, offset: 5}
      limitBy: {}
      orderBy: {ascending: Block_Height}
    ) {
      Block {
        Time
        Slot
      }
      Transaction {
        Signature
        Index
        Result {
          Success
        }
      }
      Trade {
        Index
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
        Buy {
          Amount
          AmountInUSD
          Account {
            Address
          }
          Currency {
            MetadataAddress
            Key
            MintAddress
            IsMutable
            EditionNonce
            Decimals
            CollectionAddress
            Fungible
            Symbol
            Native
            Name
          }
          Price
          PriceInUSD
          Order {
            LimitPrice
            LimitAmount
            OrderId
          }
        }
        Market {
          MarketAddress
        }
        Sell {
          Amount
          AmountInUSD
          Account {
            Address
          }
          Currency {
            MetadataAddress
            Key
            MintAddress
            IsMutable
            EditionNonce
            Decimals
            CollectionAddress
            Fungible
            Symbol
            Native
            Name
          }
          Price
          PriceInUSD
        }
      }
    }
  }
}

Similar queries