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

# CreatePredictionTradeWebhookArgs

> Input for creating a prediction trade webhook.

<div data-generated>
  ## GraphQL

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

  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!
  }
  ```

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