Last trades SOL token1

Returns the latest 50 DEX trades by token on Solana, where token owner is HBV9sA…9Sw8: block time, protocol name, protocol family, program address, currency symbol, currency name, currency mint address and 10 more fields.

By Nadia · saved 11 July 2024 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query LatestTrades($token: String) {
  Solana {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      limit: {count: 50}
      where: {Trade: {Account: {Token: {Owner: {is: $token}}}}, Transaction: {Result: {Success: true}}}
    ) {
      Block {
        Time
      }
      Trade {
        Dex {
          ProtocolName
          ProtocolFamily
          ProgramAddress
        }
        Currency {
          Symbol
          Name
          MintAddress
        }
        Account {
          Address
        }
        Price
        Amount
        Side {
          Account {
            Address
          }
          Currency {
            Symbol
            Name
            MintAddress
            Native
          }
          AmountInUSD
          Amount
        }
      }
    }
  }
}

Variables

{
  "token": "HBV9sARNHeCZcLpMZ7jt9hagjBoRPnuGPZPfdE249Sw8"
}

Similar queries