> ## 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. PredictionTradeWebhookConditionInput input object reference: every field and its type.

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