> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mobula.io/llms.txt
> Use this file to discover all available pages before exploring further.

# TokenPairEventWebhookConditionInput

> Match conditions for pair-level events (swap / mint / burn) when creating a webhook.

### TypeScript shape

```ts theme={null}
interface TokenPairEventWebhookConditionInput {
  networkId?: OneOfNumberConditionInput | null;
  maker?: StringEqualsConditionInput | null;
  pairAddress?: StringEqualsConditionInput | null;
  exchangeAddress?: StringEqualsConditionInput | null;
  tokenAddress?: StringEqualsConditionInput | null;
  swapValue?: ComparisonOperatorInput | null;
  eventType?: TokenPairEventTypeConditionInput | null;
}
```

At least `networkId` is required (the create call rejects with `BAD_USER_INPUT` if `conditions.networkId` is missing).

<ResponseField name="networkId" type="OneOfNumberConditionInput">
  Match one of several network ids. See [OneOfNumberConditionInput](/api-reference/graphql/types/OneOfNumberConditionInput).

  <Expandable title="View fields (OneOfNumberConditionInput)">
    <ResponseField name="oneOf" type="[Int!]!">List of integers; matches if the value is in this list.</ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="tokenAddress" type="StringEqualsConditionInput">
  Match a single token address. See [StringEqualsConditionInput](/api-reference/graphql/types/StringEqualsConditionInput).

  <Expandable title="View fields (StringEqualsConditionInput)">
    <ResponseField name="eq" type="String!">String value to match exactly.</ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="pairAddress" type="StringEqualsConditionInput">
  Match the pair address. See [StringEqualsConditionInput](/api-reference/graphql/types/StringEqualsConditionInput).

  <Expandable title="View fields (StringEqualsConditionInput)">
    <ResponseField name="eq" type="String!">String value to match exactly.</ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="exchangeAddress" type="StringEqualsConditionInput">
  Match the exchange/router address. See [StringEqualsConditionInput](/api-reference/graphql/types/StringEqualsConditionInput).

  <Expandable title="View fields (StringEqualsConditionInput)">
    <ResponseField name="eq" type="String!">String value to match exactly.</ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="maker" type="StringEqualsConditionInput">
  Match the maker address. See [StringEqualsConditionInput](/api-reference/graphql/types/StringEqualsConditionInput).

  <Expandable title="View fields (StringEqualsConditionInput)">
    <ResponseField name="eq" type="String!">String value to match exactly.</ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="eventType" type="TokenPairEventTypeConditionInput">
  Match one of `SWAP` / `MINT` / `BURN`. See [TokenPairEventTypeConditionInput](/api-reference/graphql/types/TokenPairEventTypeConditionInput).

  <Expandable title="View fields (TokenPairEventTypeConditionInput)">
    <ResponseField name="oneOf" type="[TokenPairEventType!]!">
      Allowed pair event types. See [TokenPairEventType](/api-reference/graphql/types/TokenPairEventType).

      <Expandable title="View values (TokenPairEventType)">
        <ResponseField name="SWAP" type="enum">A swap (trade) on the pair.</ResponseField>
        <ResponseField name="MINT" type="enum">Liquidity added to the pair.</ResponseField>
        <ResponseField name="BURN" type="enum">Liquidity removed from the pair.</ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="swapValue" type="ComparisonOperatorInput">
  Numeric threshold on swap value (USD). See [ComparisonOperatorInput](/api-reference/graphql/types/ComparisonOperatorInput).

  <Expandable title="View fields (ComparisonOperatorInput)">
    <ResponseField name="gt" type="String">Strictly greater than.</ResponseField>
    <ResponseField name="gte" type="String">Greater than or equal to.</ResponseField>
    <ResponseField name="lt" type="String">Strictly less than.</ResponseField>
    <ResponseField name="lte" type="String">Less than or equal to.</ResponseField>
    <ResponseField name="eq" type="String">Equal to.</ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="fdvMarketCapUsd" type="ComparisonOperatorInput">
  Threshold on the token's FDV market cap (USD). See [ComparisonOperatorInput](/api-reference/graphql/types/ComparisonOperatorInput).

  <Expandable title="View fields (ComparisonOperatorInput)">
    <ResponseField name="gt" type="String">Strictly greater than.</ResponseField>
    <ResponseField name="gte" type="String">Greater than or equal to.</ResponseField>
    <ResponseField name="lt" type="String">Strictly less than.</ResponseField>
    <ResponseField name="lte" type="String">Less than or equal to.</ResponseField>
    <ResponseField name="eq" type="String">Equal to.</ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="circulatingMarketCapUsd" type="ComparisonOperatorInput">
  Threshold on the token's circulating market cap (USD). See [ComparisonOperatorInput](/api-reference/graphql/types/ComparisonOperatorInput).

  <Expandable title="View fields (ComparisonOperatorInput)">
    <ResponseField name="gt" type="String">Strictly greater than.</ResponseField>
    <ResponseField name="gte" type="String">Greater than or equal to.</ResponseField>
    <ResponseField name="lt" type="String">Strictly less than.</ResponseField>
    <ResponseField name="lte" type="String">Less than or equal to.</ResponseField>
    <ResponseField name="eq" type="String">Equal to.</ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="liquidityUsd" type="ComparisonOperatorInput">
  Threshold on pair liquidity (USD). See [ComparisonOperatorInput](/api-reference/graphql/types/ComparisonOperatorInput).

  <Expandable title="View fields (ComparisonOperatorInput)">
    <ResponseField name="gt" type="String">Strictly greater than.</ResponseField>
    <ResponseField name="gte" type="String">Greater than or equal to.</ResponseField>
    <ResponseField name="lt" type="String">Strictly less than.</ResponseField>
    <ResponseField name="lte" type="String">Less than or equal to.</ResponseField>
    <ResponseField name="eq" type="String">Equal to.</ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="volumeUsd" type="ComparisonOperatorInput">
  Threshold on pair 24h volume (USD). See [ComparisonOperatorInput](/api-reference/graphql/types/ComparisonOperatorInput).

  <Expandable title="View fields (ComparisonOperatorInput)">
    <ResponseField name="gt" type="String">Strictly greater than.</ResponseField>
    <ResponseField name="gte" type="String">Greater than or equal to.</ResponseField>
    <ResponseField name="lt" type="String">Strictly less than.</ResponseField>
    <ResponseField name="lte" type="String">Less than or equal to.</ResponseField>
    <ResponseField name="eq" type="String">Equal to.</ResponseField>
  </Expandable>
</ResponseField>
