get transactions for a token

Returns 5 DEX trades on Solana, where buy currency mint address is FU1q8v…TKQv: buy amount, buy amount in USD, buy price, buy price in USD, buy collection address, buy currency mint address, buy metadata address and 84 more fields.

By Anupam · saved 15 November 2024 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana(dataset: realtime) {
    DEXTrades(
      where: {Trade: {Buy: {Currency: {MintAddress: {is: "FU1q8vJpZNUrmqsciSjp8bAKKidGsLmouB8CBdf8TKQv"}}}}, Transaction: {Result: {Success: true}}}
      limit: {count: 5}
    ) {
      Trade {
        Buy {
          Amount
          AmountInUSD
          Price
          PriceInUSD
          Currency {
            CollectionAddress
            MintAddress
            MetadataAddress
            ProgramAddress
            Decimals
            EditionNonce
            Fungible
            IsMutable
            Key
            Name
            Native
            PrimarySaleHappened
            SellerFeeBasisPoints
            Symbol
            TokenCreator {
              Address
              Share
              Verified
            }
            TokenStandard
            UpdateAuthority
            Uri
            VerifiedCollection
            Wrapped
          }
          Account {
            Address
            Owner
            Token {
              Owner
            }
          }
          Order {
            Account
            BuySide
            LimitAmount
            LimitPrice
            Mint
            OrderId
            Owner
            Payer
          }
        }
        Sell {
          Amount
          AmountInUSD
          Price
          PriceInUSD
          Currency {
            CollectionAddress
            MintAddress
            MetadataAddress
            ProgramAddress
            Symbol
            Decimals
            EditionNonce
            Fungible
            IsMutable
            Key
            Name
            Native
            PrimarySaleHappened
            SellerFeeBasisPoints
            TokenCreator {
              Address
              Share
              Verified
            }
            TokenStandard
            UpdateAuthority
            Uri
            VerifiedCollection
            Wrapped
          }
          Account {
            Address
            Owner
            Token {
              Owner
            }
          }
          Order {
            Account
            BuySide
            LimitAmount
            LimitPrice
            Mint
            OrderId
            Owner
            Payer
          }
        }
        Dex {
          ProgramAddress
          ProtocolName
          ProtocolFamily
        }
        Market {
          MarketAddress
        }
        Index
        PriceAsymmetry
      }
      Transaction {
        Signature
        Fee
        FeeInUSD
        FeePayer
        Index
        Result {
          Success
          ErrorMessage
        }
        Signer
      }
      Block {
        Date
        Time
      }
      ChainId
    }
  }
}

Similar queries