mSOL latest trades

Returns the latest 50 DEX trades by token on Solana, where currency mint address is mSoLzY…m7So, side currency mint address is So1111…1112, EPjFWd…Dt1v or 3 more and block time after 2024-10-14: block time, protocol family, amount in USD, price in USD, trade amount, side type, side currency symbol and 4 more fields.

By Divyasshree · saved 14 October 2024 · 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}}, Side: {Currency: {MintAddress: {in: ["", "So11111111111111111111111111111111111111112", "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB", "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN", "EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm"]}}}}, Block: {Time: {after: $time_ago}}}
    ) {
      Block {
        allTime: Time
      }
      Trade {
        Dex {
          ProtocolFamily
        }
        AmountInUSD
        PriceInUSD
        Amount
        Side {
          Type
          Currency {
            Symbol
            MintAddress
            Name
          }
          AmountInUSD
          Amount
        }
      }
    }
  }
}

Variables

{
  "token": "mSoLzYCxHdYgdzU16g5QSh3i5K3z3KZK7ytfqcJm7So",
  "time_ago": "2024-10-14T02:32:29Z"
}

Similar queries