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

# PredictionTradeWebhookCondition

> Webhook conditions for a prediction trade event.

<div data-generated>
  ## GraphQL

  ```
  type PredictionTradeWebhookCondition {
    traderId: StringEqualsCondition
    marketId: StringEqualsCondition
    eventId: StringEqualsCondition
    eventType: PredictionTradeEventTypeCondition
    tradeValueUsd: ComparisonOperator
    amountToken: ComparisonOperator
  }

  type StringEqualsCondition {
    eq: String!
  }

  enum PredictionTradeEventType {
    TRADE
    BUY
    SELL
    BUY_COUNTERPARTY
    SELL_COUNTERPARTY
    POSITION_REDEEMED
  }

  type PredictionTradeEventTypeCondition {
    oneOf: [PredictionTradeEventType!]!
  }

  type ComparisonOperator {
    gt: String
    gte: String
    lt: String
    lte: String
    eq: String
  }
  ```

  ### Used By

  **Returned by**

  * [createWebhooks](/api-reference/mutations/createwebhooks.md): Create event webhooks for price, token/pair, transfer, market cap, and prediction market trades.
  * [getWebhooks](/api-reference/queries/getwebhooks.md): Returns a user's list of webhooks.
</div>
