Solana Perps Realized PnL API (Phoenix)

Closed positions with realized PnL over 100 PhUsd on Phoenix Perpetuals, Solana. Adjust the threshold for your own screen.

By alex · saved 7 August 2026 · run 6 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana {
    PerpetualPositions(
      limit: {count: 10}
      orderBy: {descending: Block_Time}
      where: {Position: {RealizedPnl: {gt: 100}, Closed: true}}
    ) {
      Block {
        Time
      }
      Transaction {
        Signature
        Signer
      }
      Position {
        Closed
        Asset {
          Symbol
          QuoteCurrency {
            Symbol
          }
          LotSize
        }
        LiquidatedQuote
        LiquidatedSize
        Liquidation
        Liquidator
        MarkPrice
        RealizedPnl
        Position {
          EntryPrice
          Size
          SizeBefore
        }
        Signer
        Trader
      }
    }
  }
}

Similar queries