Latest Trades of a Token on Solana

Returns the latest 50 DEX trades by token on Solana, where currency mint address is Sfaz84…pump and block time after 2024-12-26: block time, transaction signature, market address, protocol name, protocol family, amount in USD, price in USD and 7 more fields.

By Akshat · saved 26 December 2024 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query LatestTrades($token: String, $time_ago: DateTime) {
  Solana {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      limit: {count: 50}
      where: {Trade: {Currency: {MintAddress: {is: $token}}}, Block: {Time: {after: $time_ago}}}
    ) {
      Block {
        allTime: Time
      }
      Transaction {
        Signature
      }
      Trade {
        Market {
          MarketAddress
        }
        Dex {
          ProtocolName
          ProtocolFamily
        }
        AmountInUSD
        PriceInUSD
        Amount
        Side {
          Type
          Currency {
            Symbol
            MintAddress
            Name
          }
          AmountInUSD
          Amount
        }
      }
    }
  }
}

Variables

{
  "token": "Sfaz84ECJNdgVfPTfvUEmsFNNSfoJxvVs5uCiyhpump",
  "time_ago": "2024-12-26T00:00:00Z"
}

Similar queries