sol

Returns the latest DEX trades by token on Solana: block time, protocol name, protocol family, program address, currency symbol, currency name, currency mint address and 12 more fields.

By M7-DexSniper · saved 7 February 2025 · Bitquery API v2

What it returns

The query

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

Variables

{
  "account": "383Pb4qJo2ZbsNU7CqLNJFWfYrkkxkCGM2xXocn2yYfN"
}

Similar queries