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

# PredictionTradeWebhookConditionInput

> Input conditions for a prediction trade webhook.

<div data-generated>
  ## GraphQL

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

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

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