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

# PredictionMarketMetricsEventWebhookCondition

> Webhook conditions for a prediction market metrics event.

<div data-generated>
  ## GraphQL

  ```
  type PredictionMarketMetricsEventWebhookCondition {
    marketId: StringEqualsCondition!
    market: PredictionMarketMetricsEventMarketCondition
    outcome0: PredictionMarketMetricsEventOutcomeCondition
    outcome1: PredictionMarketMetricsEventOutcomeCondition
    anyOutcome: PredictionMarketMetricsEventOutcomeCondition
  }

  type StringEqualsCondition {
    eq: String!
  }

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

  type WindowedPredictionMarketMetricsEventMarketCondition {
    volumeUsd: ComparisonOperator
    trades: ComparisonOperator
    volumeChange: ComparisonOperator
    tradesChange: ComparisonOperator
  }

  type PredictionMarketMetricsEventMarketCondition {
    min5: WindowedPredictionMarketMetricsEventMarketCondition
    hour1: WindowedPredictionMarketMetricsEventMarketCondition
    hour4: WindowedPredictionMarketMetricsEventMarketCondition
    hour12: WindowedPredictionMarketMetricsEventMarketCondition
    day1: WindowedPredictionMarketMetricsEventMarketCondition
    week1: WindowedPredictionMarketMetricsEventMarketCondition
  }

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

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

  ### Used By

  **Returned by**

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