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

# CreatePredictionTradeWebhooksInput

> Input for creating prediction trade webhooks. CreatePredictionTradeWebhooksInput input object reference: every field and its type.

## GraphQL

```
input CreatePredictionTradeWebhooksInput {
  webhooks: [CreatePredictionTradeWebhookArgs!]!
}

enum AlertRecurrence {
  INDEFINITE
  ONCE
}

input StringEqualsConditionInput {
  eq: String!
}

enum PredictionTradeEventType {
  TRADE
  BUY
  SELL
  BUY_COUNTERPARTY
  SELL_COUNTERPARTY
  POSITION_REDEEMED
}

input PredictionTradeEventTypeConditionInput {
  oneOf: [PredictionTradeEventType!]!
}

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

input PredictionTradeWebhookConditionInput {
  traderId: StringEqualsConditionInput
  marketId: StringEqualsConditionInput
  eventId: StringEqualsConditionInput
  eventType: PredictionTradeEventTypeConditionInput
  tradeValueUsd: ComparisonOperatorInput
  amountToken: ComparisonOperatorInput
}

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

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

input CreatePredictionTradeWebhookArgs {
  name: String!
  callbackUrl: String!
  securityToken: String!
  alertRecurrence: AlertRecurrence!
  conditions: PredictionTradeWebhookConditionInput!
  retrySettings: RetrySettingsInput
  bucketKey: BucketKeyInput
}
```

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