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

# Enriched Activities

> Chronological log of prediction-market trades (buys and sells), one row per fill, enriched with market, event, category and series metadata.



## OpenAPI

````yaml /openapi.json post /api/v1/activity
openapi: 3.0.3
info:
  title: DataDash Analytics API
  version: 1.0.0
servers:
  - url: https://api.datadash.xyz
security:
  - ApiKeyAuth: []
  - BearerAuth: []
paths:
  /api/v1/activity:
    post:
      tags:
        - Activity
      summary: Enriched Activities
      description: >-
        Chronological log of prediction-market trades (buys and sells), one row
        per fill, enriched with market, event, category and series metadata.
      operationId: listActivity
      requestBody:
        content:
          application/json:
            example:
              activities:
                - Buy
                - Sell
              filter:
                - field: wallet
                  operator: in
                  value:
                    - '0x1234567890abcdef1234567890abcdef12345678'
                - field: timestamp
                  operator: last
                  value:
                    length: 30
                    unit: day
              orderBy:
                - direction: desc
                  field: timestamp
              page:
                limit: 50
                offset: 0
            schema:
              properties:
                activities:
                  description: >-
                    Restrict to these activity types. All are returned when
                    omitted.
                  items:
                    enum:
                      - Buy
                      - Sell
                    type: string
                  minItems: 1
                  type: array
                aggregationWindow:
                  description: >-
                    Return rows aggregated into time buckets of this grain,
                    grouped by bucket, activity and wallet. Omit for one row per
                    event.
                  enum:
                    - 1 hour
                    - 6 hours
                    - 12 hours
                    - 1 day
                    - 1 week
                    - 1 month
                  type: string
                filter:
                  $ref: '#/components/schemas/ActivityFilter'
                orderBy:
                  description: >-
                    Sort keys in priority order; the first is the primary sort.
                    Defaults to the table's configured ranking when omitted.
                  items:
                    properties:
                      direction:
                        default: asc
                        enum:
                          - asc
                          - desc
                        type: string
                      field:
                        enum:
                          - activity
                          - timestamp
                          - wallet
                          - txHash
                          - amount
                          - usdPrice
                          - usdAmount
                          - avgBuyingPrice
                          - realizedPnl
                          - realizedPnlPercentage
                          - positionId
                          - marketId
                          - eventId
                          - tagIds
                          - seriesId
                          - seqId
                        type: string
                    required:
                      - field
                    type: object
                  type: array
                page:
                  $ref: '#/components/schemas/PageInput'
                searchKey:
                  description: >-
                    Free-text search over: Market (embedding + full-text
                    relevance).
                  type: string
              required:
                - page
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/ActivityRow'
                type: array
          description: List of Enriched Activities rows
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            invalid request (malformed body, unknown field, or failed
            validation)
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: internal error
      security: []
components:
  schemas:
    ActivityFilter:
      description: Filters to apply, combined with AND. Use a group for OR.
      items:
        $ref: '#/components/schemas/ActivityFilterNode'
      minItems: 1
      type: array
    PageInput:
      properties:
        limit:
          minimum: 1
          type: integer
        offset:
          minimum: 0
          type: integer
      required:
        - limit
      type: object
    ActivityRow:
      properties:
        activity:
          description: Type of prediction market activity
          format: int32
          title: Activity
          type: integer
        amount:
          description: Share amount
          format: double
          title: Amount (Shares)
          type: number
        avgBuyingPrice:
          description: Average buying price at the time of this activity in USD.
          format: double
          title: Avg Buying Price (USD)
          type: number
        event:
          $ref: '#/components/schemas/EventLookup'
        market:
          $ref: '#/components/schemas/MarketLookup'
        realizedPnl:
          description: Realized profit and loss in USD.
          format: double
          title: Realized PnL (USD)
          type: number
        realizedPnlPercentage:
          description: Realized PnL as a percentage (materialized)
          format: double
          title: Realized PnL Percentage
          type: number
        seqId:
          description: Sequence ID
          format: big-integer
          title: Seq ID
          type: string
        series:
          $ref: '#/components/schemas/SeriesLookup'
        tags:
          items:
            $ref: '#/components/schemas/TagLookup'
          type: array
        timestamp:
          description: When the activity occurred
          format: date-time
          title: Timestamp
          type: string
        token:
          $ref: '#/components/schemas/TokenLookup'
        txHash:
          description: Blockchain transaction hash
          title: Transaction Hash
          type: string
        usdAmount:
          description: USD value of the shares bought/sold in the activity.
          format: double
          title: Amount (USD)
          type: number
        usdPrice:
          description: Share price in USD
          format: double
          title: Price (USD)
          type: number
        user:
          $ref: '#/components/schemas/UserLookup'
      type: object
    Error:
      properties:
        code:
          description: machine-readable error code
          type: string
        message:
          description: human-readable description
          type: string
      required:
        - code
        - message
      type: object
    ActivityFilterNode:
      description: A single condition, or a group combining conditions with AND/OR.
      oneOf:
        - $ref: '#/components/schemas/ActivityCondition'
        - $ref: '#/components/schemas/ActivityFilterGroup'
      title: Filter
    EventLookup:
      description: Resolved Event row.
      properties:
        active:
          description: Whether the event is currently active
          title: Active
          type: boolean
        archived:
          description: Whether the event is archived
          title: Archived
          type: boolean
        closed:
          description: Whether the event has been resolved
          title: Closed
          type: boolean
        daysLeft:
          description: >-
            Whole days until the event's end date; negative if it has passed,
            null if the event has no end date
          format: int32
          title: Days Left
          type: integer
        description:
          description: Detailed event description
          title: Description
          type: string
        endDate:
          description: Event end date
          format: date-time
          title: End Date
          type: string
        hoursSinceCreated:
          description: Whole hours since the event was created
          format: int32
          title: Hours Since Created
          type: integer
        icon:
          description: Event icon URL
          title: Icon
          type: string
        id:
          description: Event identifier
          format: int32
          title: Event ID
          type: integer
        image:
          description: Event banner image URL
          title: Image
          type: string
        liquidity:
          description: Total liquidity across all markets in this event
          format: double
          title: Liquidity
          type: number
        openInterest:
          description: Total open interest across all markets
          format: double
          title: Open Interest
          type: number
        seriesId:
          description: Series this event belongs to
          format: int32
          title: Series ID
          type: integer
        slug:
          description: URL-friendly event slug
          title: Slug
          type: string
        startDate:
          description: Event start date
          format: date-time
          title: Start Date
          type: string
        tagIds:
          description: Tags associated with this event
          items:
            format: int32
            type: integer
          title: Category
          type: array
        title:
          description: Event title
          title: Title
          type: string
        topMarketGroupItemTitle:
          description: Outcome name of the top market
          title: Top Market Group Item Title
          type: string
        topMarketOneDayPriceChange:
          description: >-
            24-hour price change of the top market (max YES token price) in this
            event
          format: double
          title: Top Market Price Change 24h
          type: number
        topMarketOneHourPriceChange:
          description: >-
            1-hour price change of the top market (max YES token price) in this
            event
          format: double
          title: Top Market Price Change 1h
          type: number
        topMarketOneMonthPriceChange:
          description: >-
            1-month price change of the top market (max YES token price) in this
            event
          format: double
          title: Top Market Price Change 1mo
          type: number
        topMarketOneWeekPriceChange:
          description: >-
            1-week price change of the top market (max YES token price) in this
            event
          format: double
          title: Top Market Price Change 1w
          type: number
        topMarketOneYearPriceChange:
          description: >-
            1-year price change of the top market (max YES token price) in this
            event
          format: double
          title: Top Market Price Change 1y
          type: number
        topMarketPrice:
          description: Price of the YES token of the top market (last trade price)
          format: double
          title: Top Market Price
          type: number
        topTokenName:
          description: Outcome name of the top token
          title: Top Token Name
          type: string
        traders:
          description: Number of unique traders in this event
          format: int32
          title: Traders
          type: integer
        trades:
          description: Number of trades in this event
          format: int32
          title: Trades
          type: integer
        volume:
          description: Total trading volume for this event
          format: double
          title: Volume
          type: number
        volume1mo:
          description: Trading volume in the last month
          format: double
          title: Volume 1mo
          type: number
        volume1wk:
          description: Trading volume in the last week
          format: double
          title: Volume 1w
          type: number
        volume1yr:
          description: Trading volume in the last year
          format: double
          title: Volume 1y
          type: number
        volume24h:
          description: Trading volume in the last 24 hours
          format: double
          title: Volume 24h
          type: number
      title: Event
      type: object
    MarketLookup:
      description: Resolved Market row.
      properties:
        active:
          description: Whether the market is currently active
          title: Active
          type: boolean
        archived:
          description: Whether the market is archived
          title: Archived
          type: boolean
        closed:
          description: Whether the market has been resolved
          title: Closed
          type: boolean
        daysLeft:
          description: Days left until market ends
          format: int32
          title: Days Left
          type: integer
        description:
          description: Detailed market description
          title: Description
          type: string
        endDate:
          description: Market end date
          format: date-time
          title: End Date
          type: string
        eventId:
          description: Parent event ID
          format: int32
          title: Event
          type: integer
        eventSlug:
          description: Parent event slug
          title: Event Slug
          type: string
        groupItemTitle:
          description: Title within a multi-market event group
          title: Group Item Title
          type: string
        hoursSinceCreated:
          description: Whole hours since the market was created
          format: int32
          title: Hours Since Created
          type: integer
        icon:
          description: Market icon URL
          title: Icon
          type: string
        id:
          description: Market identifier
          format: int32
          title: Id
          type: integer
        image:
          description: Market banner image URL
          title: Image
          type: string
        liquidity:
          description: Available liquidity
          format: double
          title: Liquidity
          type: number
        openInterest:
          description: Current open interest
          format: double
          title: Open Interest
          type: number
        outcomeNames:
          description: Outcome names for this market
          items:
            type: string
          title: Outcome Names
          type: array
        outcomePrices:
          description: Outcome prices for this market
          items:
            format: double
            type: number
          title: Outcome Prices
          type: array
        question:
          description: Market question
          title: Question
          type: string
        slug:
          description: URL-friendly market slug
          title: Slug
          type: string
        startDate:
          description: Market start date
          format: date-time
          title: Start Date
          type: string
        volume:
          description: Total trading volume
          format: double
          title: Volume
          type: number
        volume24h:
          description: Trading volume in the last 24 hours
          format: double
          title: Volume 24h
          type: number
      title: Market
      type: object
    SeriesLookup:
      description: Resolved Series row.
      properties:
        active:
          description: Whether the series is currently active
          title: Active
          type: boolean
        archived:
          description: Whether the series is archived
          title: Archived
          type: boolean
        closed:
          description: Whether the series is closed
          title: Closed
          type: boolean
        featured:
          description: Whether the series is featured
          title: Featured
          type: boolean
        icon:
          description: Series icon URL
          title: Icon
          type: string
        id:
          description: Series identifier
          format: int32
          title: Id
          type: integer
        image:
          description: Series banner image URL
          title: Image
          type: string
        recurrence:
          description: Recurrence pattern
          title: Recurrence
          type: string
        restricted:
          description: Whether the series is restricted
          title: Restricted
          type: boolean
        seriesType:
          description: Type of series
          title: Series Type
          type: string
        slug:
          description: URL-friendly series slug
          title: Slug
          type: string
        subtitle:
          description: Series sub-title
          title: Subtitle
          type: string
        ticker:
          description: Series ticker symbol
          title: Ticker
          type: string
        title:
          description: Series title
          title: Title
          type: string
      title: Series
      type: object
    TagLookup:
      description: Resolved Tag row.
      properties:
        allTimeVolume:
          description: All-time trading volume for this tag
          format: double
          title: All Time Volume
          type: number
        id:
          description: Tag identifier
          format: int32
          title: Id
          type: integer
        label:
          description: Tag display label
          title: Label
          type: string
        numEvents:
          description: Count of currently active events for this tag
          format: int32
          title: Active Event Counts
          type: integer
        numTraders:
          description: All-time trader counts for this tag
          format: int32
          title: Trader Counts
          type: integer
        slug:
          description: URL-friendly tag slug
          title: Slug
          type: string
      title: Tag
      type: object
    TokenLookup:
      description: Resolved Token row.
      properties:
        eventId:
          description: Parent event ID
          format: int32
          title: Event
          type: integer
        eventSlug:
          description: Slug of the parent event
          title: Event Slug
          type: string
        isYesToken:
          description: true if this is the YES token for the market
          title: Is Yes Token
          type: boolean
        marketClosed:
          description: Indicates whether the market is closed
          title: Market Closed
          type: boolean
        marketClosedTime:
          description: Date when the market was closed
          format: date-time
          title: Market Closed Time
          type: string
        marketEndDate:
          description: End date of the parent market
          format: date-time
          title: Market End Date
          type: string
        marketGroupItemTitle:
          description: Title within a multi-market event group
          title: Market Group Item Title
          type: string
        marketIcon:
          description: Icon URL of the parent market
          title: Market Icon
          type: string
        marketId:
          description: Parent market ID
          format: int32
          title: Market
          type: integer
        marketLiquidity:
          description: Available liquidity of the parent market
          format: double
          title: Market Liquidity
          type: number
        marketOneDayPriceChange:
          description: 24-hour price change of the parent market
          format: double
          title: Market Price Change 24h
          type: number
        marketOpenInterest:
          description: Current open interest of the parent market
          format: double
          title: Market Open Interest
          type: number
        marketQuestion:
          description: The question of the parent market
          title: Market Question
          type: string
        marketSlug:
          description: The slug of the parent market
          title: Market Slug
          type: string
        marketStartDate:
          description: Date when the market was started
          format: date-time
          title: Market Start Date
          type: string
        marketTraders:
          description: Number of unique traders in the parent market
          format: int32
          title: Market Traders
          type: integer
        marketTrades:
          description: Number of trades in the parent market
          format: int32
          title: Market Trades
          type: integer
        marketVolume:
          description: Total trading volume of the parent market
          format: double
          title: Market Volume
          type: number
        marketVolume24h:
          description: 24-hour trading volume of the parent market
          format: double
          title: Market Volume 24h
          type: number
        positionId:
          description: Position Identifier
          format: int32
          title: Position ID
          type: integer
        tagIds:
          description: Tags associated with this position's event
          items:
            format: int32
            type: integer
          title: Category
          type: array
        tokenId:
          description: Identifier for the token
          format: big-integer
          title: Token ID
          type: string
        tokenName:
          description: Token display name (Yes/No)
          title: Token Name
          type: string
        tokenPrice:
          description: Current token price
          format: double
          title: Token Price
          type: number
      title: Token
      type: object
    UserLookup:
      description: Resolved User row.
      properties:
        bio:
          description: User biography
          title: Bio
          type: string
        createdAt:
          description: Timestamp when the user was created.
          format: date-time
          title: Created At
          type: string
        displayName:
          description: User display name
          title: Display Name
          type: string
        pnl:
          description: User's profit and loss.
          format: double
          title: Pnl
          type: number
        profileImageUrl:
          description: User profile image URL
          title: Profile Image
          type: string
        pseudonym:
          description: User pseudonym
          title: Pseudonym
          type: string
        rank:
          description: User's profit and loss.
          format: int32
          title: Rank
          type: integer
        userId:
          description: User wallet address
          title: User ID
          type: string
        verifiedBadge:
          description: Whether the user has a verified badge
          title: Verified
          type: boolean
        xUsername:
          description: User's X (Twitter) username
          title: X Username
          type: string
      title: User
      type: object
    ActivityCondition:
      description: >-
        A single field condition. in/notIn take an array of values;
        matches/notMatches take one search term.
      oneOf:
        - $ref: '#/components/schemas/ActivityNumericCondition'
        - $ref: '#/components/schemas/ActivityBigNumberCondition'
        - $ref: '#/components/schemas/ActivityIdCondition'
        - $ref: '#/components/schemas/ActivityAddressCondition'
        - $ref: '#/components/schemas/ActivityTimeCondition'
        - $ref: '#/components/schemas/ActivityWalletLookupCondition'
        - $ref: '#/components/schemas/ActivityMarketIdLookupCondition'
      title: Condition
    ActivityFilterGroup:
      description: >-
        A group of conditions and nested groups, combined with the group's
        operator.
      properties:
        filters:
          items:
            oneOf:
              - $ref: '#/components/schemas/ActivityCondition'
              - $ref: '#/components/schemas/ActivityFilterInnerGroup'
          minItems: 1
          type: array
        operator:
          enum:
            - AND
            - OR
          type: string
      required:
        - operator
        - filters
      title: Group
      type: object
    ActivityNumericCondition:
      properties:
        field:
          enum:
            - amount
            - usdPrice
            - usdAmount
            - avgBuyingPrice
            - realizedPnl
            - realizedPnlPercentage
            - userRank
            - timestampNum
          type: string
        operator:
          enum:
            - eq
            - neq
            - lt
            - lte
            - gt
            - gte
          type: string
        value:
          oneOf:
            - format: double
              title: Single value
              type: number
            - items:
                format: double
                type: number
              minItems: 1
              title: List of values
              type: array
      required:
        - field
        - operator
        - value
      title: Numeric
      type: object
    ActivityBigNumberCondition:
      properties:
        field:
          enum:
            - seqId
          type: string
        operator:
          enum:
            - eq
            - neq
            - lt
            - lte
            - gt
            - gte
          type: string
        value:
          oneOf:
            - format: big-integer
              title: Single value
              type: string
            - items:
                format: big-integer
                type: string
              minItems: 1
              title: List of values
              type: array
      required:
        - field
        - operator
        - value
      title: Large number
      type: object
    ActivityIdCondition:
      properties:
        field:
          enum:
            - positionId
            - marketId
            - eventId
            - tagIds
            - seriesId
          type: string
        operator:
          enum:
            - in
            - notIn
          type: string
        value:
          oneOf:
            - format: int32
              title: Single value
              type: integer
            - items:
                format: int32
                type: integer
              minItems: 1
              title: List of values
              type: array
      required:
        - field
        - operator
        - value
      title: ID
      type: object
    ActivityAddressCondition:
      description: inCohort/notInCohort take cohort ids instead of addresses.
      properties:
        field:
          enum:
            - wallet
          type: string
        operator:
          enum:
            - in
            - notIn
            - matches
            - notMatches
            - inCohort
            - notInCohort
          type: string
        value:
          oneOf:
            - title: Single value
              type: string
            - items:
                type: string
              minItems: 1
              title: List of values
              type: array
      required:
        - field
        - operator
        - value
      title: Wallet address
      type: object
    ActivityTimeCondition:
      description: >-
        last takes {unit, length}; between takes {from, to}; since takes a date
        or {range}.
      properties:
        field:
          enum:
            - timestamp
          type: string
        operator:
          enum:
            - last
            - between
            - since
          type: string
        value:
          oneOf:
            - description: 'last: a trailing window'
              properties:
                length:
                  minimum: 1
                  type: integer
                unit:
                  enum:
                    - day
                    - week
                    - month
                    - quarter
                    - year
                  type: string
              required:
                - unit
                - length
              title: Last
              type: object
            - description: 'between: a fixed range'
              properties:
                from:
                  format: date
                  type: string
                to:
                  format: date
                  type: string
              required:
                - from
                - to
              title: Between
              type: object
            - description: 'since: an open-ended range from a calendar unit'
              properties:
                range:
                  enum:
                    - week
                    - month
                    - quarter
                    - year
                  type: string
              required:
                - range
              title: Since calendar unit
              type: object
            - description: 'since: an open-ended range from a date'
              format: date
              title: Since date
              type: string
      required:
        - field
        - operator
        - value
      title: Time range
      type: object
    ActivityWalletLookupCondition:
      description: >-
        Match this field against the keys a filter over one of its lookup tables
        yields. The operator names which lookup table to filter through.
      oneOf:
        - properties:
            field:
              enum:
                - wallet
              type: string
            operator:
              enum:
                - userProfileLookup
              type: string
            value:
              description: Conditions to run against User Profile Lookup.
              properties:
                duration:
                  description: Time window for aggregation
                  properties:
                    operator:
                      enum:
                        - in
                        - notIn
                        - matches
                        - notMatches
                      type: string
                    value:
                      oneOf:
                        - enum:
                            - 1D
                            - 1W
                            - 1M
                            - 1Y
                            - ALL
                          title: Single value
                          type: string
                        - items:
                            enum:
                              - 1D
                              - 1W
                              - 1M
                              - 1Y
                              - ALL
                            type: string
                          minItems: 1
                          title: List of values
                          type: array
                  required:
                    - operator
                    - value
                  type: object
                filter:
                  $ref: '#/components/schemas/UserProfileLookupInnerFilter'
              required:
                - duration
              type: object
          required:
            - field
            - operator
            - value
          title: User Profile Lookup
          type: object
        - properties:
            field:
              enum:
                - wallet
              type: string
            operator:
              enum:
                - userTagProfileLookup
              type: string
            value:
              description: Conditions to run against User Tag Profile Lookup.
              properties:
                duration:
                  description: Time window for aggregation
                  properties:
                    operator:
                      enum:
                        - in
                        - notIn
                        - matches
                        - notMatches
                      type: string
                    value:
                      oneOf:
                        - enum:
                            - 1D
                            - 1W
                            - 1M
                            - 1Y
                            - ALL
                          title: Single value
                          type: string
                        - items:
                            enum:
                              - 1D
                              - 1W
                              - 1M
                              - 1Y
                              - ALL
                            type: string
                          minItems: 1
                          title: List of values
                          type: array
                  required:
                    - operator
                    - value
                  type: object
                filter:
                  $ref: '#/components/schemas/UserTagProfileLookupInnerFilter'
                tagId:
                  description: Tag identifier
                  properties:
                    operator:
                      enum:
                        - in
                        - notIn
                      type: string
                    value:
                      oneOf:
                        - format: int32
                          title: Single value
                          type: integer
                        - items:
                            format: int32
                            type: integer
                          minItems: 1
                          title: List of values
                          type: array
                  required:
                    - operator
                    - value
                  type: object
              required:
                - tagId
                - duration
              type: object
          required:
            - field
            - operator
            - value
          title: User Tag Profile Lookup
          type: object
      title: Wallet lookup filter
    ActivityMarketIdLookupCondition:
      properties:
        field:
          enum:
            - marketId
          type: string
        operator:
          enum:
            - market
          type: string
        value:
          $ref: '#/components/schemas/MarketInnerFilter'
      required:
        - field
        - operator
        - value
      title: Market
      type: object
    ActivityFilterInnerGroup:
      description: >-
        A nested group. Its members must be conditions, which bounds grouping at
        two levels.
      properties:
        filters:
          items:
            $ref: '#/components/schemas/ActivityCondition'
          minItems: 1
          type: array
        operator:
          enum:
            - AND
            - OR
          type: string
      required:
        - operator
        - filters
      title: Nested group
      type: object
    UserProfileLookupInnerFilter:
      description: Filters to apply, combined with AND. Use a group for OR.
      items:
        $ref: '#/components/schemas/UserProfileLookupInnerFilterNode'
      minItems: 1
      type: array
    UserTagProfileLookupInnerFilter:
      description: Filters to apply, combined with AND. Use a group for OR.
      items:
        $ref: '#/components/schemas/UserTagProfileLookupInnerFilterNode'
      minItems: 1
      type: array
    MarketInnerFilter:
      description: Filters to apply, combined with AND. Use a group for OR.
      items:
        $ref: '#/components/schemas/MarketInnerFilterNode'
      minItems: 1
      type: array
    UserProfileLookupInnerFilterNode:
      description: A single condition, or a group combining conditions with AND/OR.
      oneOf:
        - $ref: '#/components/schemas/UserProfileLookupInnerCondition'
        - $ref: '#/components/schemas/UserProfileLookupInnerFilterGroup'
      title: Filter
    UserTagProfileLookupInnerFilterNode:
      description: A single condition, or a group combining conditions with AND/OR.
      oneOf:
        - $ref: '#/components/schemas/UserTagProfileLookupInnerCondition'
        - $ref: '#/components/schemas/UserTagProfileLookupInnerFilterGroup'
      title: Filter
    MarketInnerFilterNode:
      description: A single condition, or a group combining conditions with AND/OR.
      oneOf:
        - $ref: '#/components/schemas/MarketInnerCondition'
        - $ref: '#/components/schemas/MarketInnerFilterGroup'
      title: Filter
    UserProfileLookupInnerCondition:
      description: >-
        A single field condition. in/notIn take an array of values;
        matches/notMatches take one search term.
      oneOf:
        - $ref: '#/components/schemas/UserProfileLookupInnerNumericCondition'
        - $ref: '#/components/schemas/UserProfileLookupInnerAddressCondition'
      title: Condition
    UserProfileLookupInnerFilterGroup:
      description: A group of conditions, combined with the group's operator.
      properties:
        filters:
          items:
            $ref: '#/components/schemas/UserProfileLookupInnerCondition'
          minItems: 1
          type: array
        operator:
          enum:
            - AND
            - OR
          type: string
      required:
        - operator
        - filters
      title: Group
      type: object
    UserTagProfileLookupInnerCondition:
      description: >-
        A single field condition. in/notIn take an array of values;
        matches/notMatches take one search term.
      oneOf:
        - $ref: '#/components/schemas/UserTagProfileLookupInnerNumericCondition'
        - $ref: '#/components/schemas/UserTagProfileLookupInnerAddressCondition'
      title: Condition
    UserTagProfileLookupInnerFilterGroup:
      description: A group of conditions, combined with the group's operator.
      properties:
        filters:
          items:
            $ref: '#/components/schemas/UserTagProfileLookupInnerCondition'
          minItems: 1
          type: array
        operator:
          enum:
            - AND
            - OR
          type: string
      required:
        - operator
        - filters
      title: Group
      type: object
    MarketInnerCondition:
      description: >-
        A single field condition. in/notIn take an array of values;
        matches/notMatches take one search term.
      oneOf:
        - $ref: '#/components/schemas/MarketInnerNumericCondition'
        - $ref: '#/components/schemas/MarketInnerIdCondition'
        - $ref: '#/components/schemas/MarketInnerTextCondition'
        - $ref: '#/components/schemas/MarketInnerBooleanCondition'
      title: Condition
    MarketInnerFilterGroup:
      description: A group of conditions, combined with the group's operator.
      properties:
        filters:
          items:
            $ref: '#/components/schemas/MarketInnerCondition'
          minItems: 1
          type: array
        operator:
          enum:
            - AND
            - OR
          type: string
      required:
        - operator
        - filters
      title: Group
      type: object
    UserProfileLookupInnerNumericCondition:
      properties:
        field:
          enum:
            - rank
            - roi
            - realizedPnl
          type: string
        operator:
          enum:
            - eq
            - neq
            - lt
            - lte
            - gt
            - gte
          type: string
        value:
          oneOf:
            - format: double
              title: Single value
              type: number
            - items:
                format: double
                type: number
              minItems: 1
              title: List of values
              type: array
      required:
        - field
        - operator
        - value
      title: Numeric
      type: object
    UserProfileLookupInnerAddressCondition:
      description: inCohort/notInCohort take cohort ids instead of addresses.
      properties:
        field:
          enum:
            - userId
          type: string
        operator:
          enum:
            - in
            - notIn
            - matches
            - notMatches
            - inCohort
            - notInCohort
          type: string
        value:
          oneOf:
            - title: Single value
              type: string
            - items:
                type: string
              minItems: 1
              title: List of values
              type: array
      required:
        - field
        - operator
        - value
      title: Wallet address
      type: object
    UserTagProfileLookupInnerNumericCondition:
      properties:
        field:
          enum:
            - rank
            - roi
            - realizedPnl
          type: string
        operator:
          enum:
            - eq
            - neq
            - lt
            - lte
            - gt
            - gte
          type: string
        value:
          oneOf:
            - format: double
              title: Single value
              type: number
            - items:
                format: double
                type: number
              minItems: 1
              title: List of values
              type: array
      required:
        - field
        - operator
        - value
      title: Numeric
      type: object
    UserTagProfileLookupInnerAddressCondition:
      description: inCohort/notInCohort take cohort ids instead of addresses.
      properties:
        field:
          enum:
            - userId
          type: string
        operator:
          enum:
            - in
            - notIn
            - matches
            - notMatches
            - inCohort
            - notInCohort
          type: string
        value:
          oneOf:
            - title: Single value
              type: string
            - items:
                type: string
              minItems: 1
              title: List of values
              type: array
      required:
        - field
        - operator
        - value
      title: Wallet address
      type: object
    MarketInnerNumericCondition:
      properties:
        field:
          enum:
            - volume
            - volume24h
            - liquidity
            - openInterest
            - daysLeft
            - hoursSinceCreated
          type: string
        operator:
          enum:
            - eq
            - neq
            - lt
            - lte
            - gt
            - gte
          type: string
        value:
          oneOf:
            - format: double
              title: Single value
              type: number
            - items:
                format: double
                type: number
              minItems: 1
              title: List of values
              type: array
      required:
        - field
        - operator
        - value
      title: Numeric
      type: object
    MarketInnerIdCondition:
      properties:
        field:
          enum:
            - id
            - eventId
          type: string
        operator:
          enum:
            - in
            - notIn
          type: string
        value:
          oneOf:
            - format: int32
              title: Single value
              type: integer
            - items:
                format: int32
                type: integer
              minItems: 1
              title: List of values
              type: array
      required:
        - field
        - operator
        - value
      title: ID
      type: object
    MarketInnerTextCondition:
      properties:
        field:
          enum:
            - eventSlug
          type: string
        operator:
          enum:
            - in
            - notIn
            - matches
            - notMatches
          type: string
        value:
          oneOf:
            - title: Single value
              type: string
            - items:
                type: string
              minItems: 1
              title: List of values
              type: array
      required:
        - field
        - operator
        - value
      title: Text
      type: object
    MarketInnerBooleanCondition:
      properties:
        field:
          enum:
            - active
            - closed
            - archived
          type: string
        operator:
          enum:
            - eq
          type: string
        value:
          type: boolean
      required:
        - field
        - operator
        - value
      title: Boolean
      type: object
  securitySchemes:
    ApiKeyAuth:
      description: API key issued for programmatic access.
      in: header
      name: X-Api-Key
      type: apiKey
    BearerAuth:
      bearerFormat: JWT
      description: User access token.
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.