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

# TokenPairEventWebhookCondition

> Webhook conditions for a token pair event.

<div data-generated>
  ## GraphQL

  ```
  type TokenPairEventWebhookCondition {
    tokenAddress: StringEqualsCondition
    networkId: OneOfNumberCondition
    swapValue: ComparisonOperator
    maker: StringEqualsCondition
    pairAddress: StringEqualsCondition
    exchangeAddress: StringEqualsCondition
    eventType: TokenPairEventTypeCondition
  }

  type StringEqualsCondition {
    eq: String!
  }

  type OneOfNumberCondition {
    oneOf: [Int!]!
  }

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

  enum TokenPairEventType {
    SWAP
    MINT
    BURN
    SYNC
    BUY
    SELL
    COLLECT
    COLLECT_PROTOCOL
  }

  type TokenPairEventTypeCondition {
    oneOf: [TokenPairEventType!]!
  }
  ```

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