Token Trade History

Returns the latest DEX trades by token on Solana, where currency mint address is 6p6xgH…GiPN and side currency mint address is So1111…1112, EPjFWd…Dt1v or 3 more: block time, transaction signature, market address, protocol name, protocol family, amount in USD, price in USD and 8 more fields.

By greatpie · saved 25 February 2025 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query LatestTrades {
  Solana {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      where: {Trade: {Currency: {MintAddress: {is: "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"}}, Side: {Currency: {MintAddress: {in: ["", "So11111111111111111111111111111111111111112", "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB", "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN", "EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm"]}}}}}
    ) {
      Block {
        Time
      }
      Transaction {
        Signature
      }
      Trade {
        Market {
          MarketAddress
        }
        Dex {
          ProtocolName
          ProtocolFamily
        }
        AmountInUSD
        PriceInUSD
        Amount
        Currency {
          Name
        }
        Side {
          Type
          Currency {
            Symbol
            MintAddress
            Name
          }
          AmountInUSD
          Amount
        }
      }
    }
  }
}

Variables

{
  "MintAddress":"D6yEeT6H3iWMwB5gG4mxBXGqJ9cyYz5bqbFvWSr11m7x"
}

Similar queries