> ## 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.

# PredictionMarketMetricsEventOutcomeCondition

> Per-outcome conditions for a prediction market metrics event webhook. PredictionMarketMetricsEventOutcomeCondition type reference: every field and its type.

## GraphQL

```
type PredictionMarketMetricsEventOutcomeCondition {
  min5: WindowedPredictionMarketMetricsEventOutcomeCondition
  hour1: WindowedPredictionMarketMetricsEventOutcomeCondition
  hour4: WindowedPredictionMarketMetricsEventOutcomeCondition
  hour12: WindowedPredictionMarketMetricsEventOutcomeCondition
  day1: WindowedPredictionMarketMetricsEventOutcomeCondition
  week1: WindowedPredictionMarketMetricsEventOutcomeCondition
}

type ComparisonOperator {
  gt: String
  gte: String
  lt: String
  lte: String
  eq: String
}

type WindowedPredictionMarketMetricsEventOutcomeCondition {
  price: ComparisonOperator
  priceChange: ComparisonOperator
  volumeUsd: ComparisonOperator
  volumeChange: ComparisonOperator
  trades: ComparisonOperator
  tradesChange: ComparisonOperator
}
```

### Used By

**Returned by**

* [createWebhooks](https://docs.codex.io/api-reference/mutations/createwebhooks.md): Create event webhooks for price, token/pair, transfer, market cap, and prediction market trades.
* [getWebhooks](https://docs.codex.io/api-reference/queries/getwebhooks.md): Returns a user's list of webhooks.


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