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

# CreatePredictionMarketMetricsEventWebhookArgs

> Input for creating a prediction market metrics event webhook.

<div data-generated>
  ## GraphQL

  ```
  input CreatePredictionMarketMetricsEventWebhookArgs {
    name: String!
    callbackUrl: String!
    securityToken: String!
    alertRecurrence: AlertRecurrence!
    conditions: PredictionMarketMetricsEventWebhookConditionInput!
    retrySettings: RetrySettingsInput
    bucketKey: BucketKeyInput
    publishingType: PublishingType
    deduplicate: Boolean
  }

  enum AlertRecurrence {
    INDEFINITE
    ONCE
  }

  input StringEqualsConditionInput {
    eq: String!
  }

  input ComparisonOperatorInput {
    gt: String
    gte: String
    lt: String
    lte: String
    eq: String
  }

  input WindowedPredictionMarketMetricsEventMarketConditionInput {
    volumeUsd: ComparisonOperatorInput
    trades: ComparisonOperatorInput
    volumeChange: ComparisonOperatorInput
    tradesChange: ComparisonOperatorInput
  }

  input PredictionMarketMetricsEventMarketConditionInput {
    min5: WindowedPredictionMarketMetricsEventMarketConditionInput
    hour1: WindowedPredictionMarketMetricsEventMarketConditionInput
    hour4: WindowedPredictionMarketMetricsEventMarketConditionInput
    hour12: WindowedPredictionMarketMetricsEventMarketConditionInput
    day1: WindowedPredictionMarketMetricsEventMarketConditionInput
    week1: WindowedPredictionMarketMetricsEventMarketConditionInput
  }

  input WindowedPredictionMarketMetricsEventOutcomeConditionInput {
    price: ComparisonOperatorInput
    priceChange: ComparisonOperatorInput
    volumeUsd: ComparisonOperatorInput
    volumeChange: ComparisonOperatorInput
    trades: ComparisonOperatorInput
    tradesChange: ComparisonOperatorInput
  }

  input PredictionMarketMetricsEventOutcomeConditionInput {
    min5: WindowedPredictionMarketMetricsEventOutcomeConditionInput
    hour1: WindowedPredictionMarketMetricsEventOutcomeConditionInput
    hour4: WindowedPredictionMarketMetricsEventOutcomeConditionInput
    hour12: WindowedPredictionMarketMetricsEventOutcomeConditionInput
    day1: WindowedPredictionMarketMetricsEventOutcomeConditionInput
    week1: WindowedPredictionMarketMetricsEventOutcomeConditionInput
  }

  input PredictionMarketMetricsEventWebhookConditionInput {
    marketId: StringEqualsConditionInput!
    market: PredictionMarketMetricsEventMarketConditionInput
    outcome0: PredictionMarketMetricsEventOutcomeConditionInput
    outcome1: PredictionMarketMetricsEventOutcomeConditionInput
    anyOutcome: PredictionMarketMetricsEventOutcomeConditionInput
  }

  input RetrySettingsInput {
    maxTimeElapsed: Int
    minRetryDelay: Int
    maxRetryDelay: Int
    maxRetries: Int
  }

  input BucketKeyInput {
    bucketId: String!
    bucketSortKey: String!
  }

  enum PublishingType {
    BATCH
    SINGLE
  }
  ```

  ### Used By

  **Used as input by**

  * [createWebhooks](/api-reference/mutations/createwebhooks.md): Create event webhooks for price, token/pair, transfer, market cap, and prediction market trades.
</div>
