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

# CreatePredictionMarketMetricsEventWebhooksInput

> Input for creating prediction market metrics event webhooks. CreatePredictionMarketMetricsEventWebhooksInput input object reference: every field and its type.

## GraphQL

```
input CreatePredictionMarketMetricsEventWebhooksInput {
  webhooks: [CreatePredictionMarketMetricsEventWebhookArgs!]!
}

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
}

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

### Used By

**Used as input 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.


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