> ## Documentation Index
> Fetch the complete documentation index at: https://docs.codex.io/llms.txt
> Use this file to discover all available pages before exploring further.

# PredictionTraderMarketPnlStatus

> The PnL status of a trader position in a market. Reference for the PredictionTraderMarketPnlStatus enum in the Codex API: every value and where it is accepted.

## GraphQL

```
enum PredictionTraderMarketPnlStatus {
  WIN
  LOSS
  NEUTRAL
}
```

### Used By

**Returned by**

* [filterPredictionTraderMarkets](https://docs.codex.io/api-reference/queries/filterpredictiontradermarkets.md): Filters trader-market records using trader, market, event, and ranking criteria.
* [predictionTraderMarketsStats](https://docs.codex.io/api-reference/queries/predictiontradermarketsstats.md): Returns per-market performance stats for a specific trader.

**Used as input by**

* [filterPredictionTraderMarkets](https://docs.codex.io/api-reference/queries/filterpredictiontradermarkets.md): Filters trader-market records using trader, market, event, and ranking criteria.

## PnL Status Descriptions

* **`WIN`** - The trader's position resulted in a profit. For resolved markets, this means the trader held shares of the winning outcome. The trader's realized PnL is positive.
* **`LOSS`** - The trader's position resulted in a loss. For resolved markets, this means the trader held shares of a losing outcome or sold winning shares too early. The trader's realized PnL is negative.
* **`NEUTRAL`** - The trader's position broke even or has not yet been resolved. This can occur when a trader has closed all positions at their entry price, or when the market is still open and unrealized PnL is near zero.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.