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

# User Tag Profile

> Per-wallet performance broken down by category tag, PnL, win rate, volume and ROI per (wallet, tag) for the requested duration.



## OpenAPI

````yaml /openapi.json post /api/v1/profiles/user-tag
openapi: 3.0.3
info:
  title: DataDash Analytics API
  version: 1.0.0
servers: []
security:
  - ApiKeyAuth: []
  - BearerAuth: []
paths:
  /api/v1/profiles/user-tag:
    post:
      tags:
        - Profiles
      summary: User Tag Profile
      description: >-
        Per-wallet performance broken down by category tag, PnL, win rate,
        volume and ROI per (wallet, tag) for the requested duration.
      operationId: listProfilesUserTag
      requestBody:
        content:
          application/json:
            schema:
              properties:
                filter:
                  $ref: '#/components/schemas/UserTagProfileFilter'
                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:
                          - tagId
                          - userId
                          - realizedPnl
                          - wins
                          - losses
                          - profit
                          - loss
                          - volume
                          - profitFactor
                          - positions
                          - winRate
                          - realizedBuyCost
                          - roi
                          - holdTime
                          - numTrades
                          - numPredictions
                          - avgTradesPerPrediction
                          - rank
                        type: string
                    required:
                      - field
                    type: object
                  type: array
                page:
                  $ref: '#/components/schemas/PageInput'
                searchKey:
                  description: 'Free-text search over: User (prefix match/full-text search).'
                  type: string
              required:
                - page
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/UserTagProfileRow'
                type: array
          description: List of User Tag Profile rows
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            invalid request (malformed body, unknown field, or failed
            validation)
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: missing or invalid credentials
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: credentials lack access to this resource
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: internal error
components:
  schemas:
    UserTagProfileFilter:
      description: Filters to apply, combined with AND. Use a group for OR.
      items:
        $ref: '#/components/schemas/UserTagProfileFilterNode'
      minItems: 1
      type: array
    PageInput:
      properties:
        limit:
          minimum: 1
          type: integer
        offset:
          minimum: 0
          type: integer
      required:
        - limit
      type: object
    UserTagProfileRow:
      properties:
        avgTradesPerPrediction:
          description: Average number of trades per prediction
          format: float
          title: Avg Trades Per Prediction
          type: number
        holdTime:
          description: Average hold time in seconds
          format: int32
          title: Hold Time
          type: integer
        loss:
          description: Total loss
          format: double
          title: Loss
          type: number
        losses:
          description: Number of losing positions
          format: int32
          title: Losses
          type: integer
        numPredictions:
          description: Number of predictions
          format: int32
          title: Num Predictions
          type: integer
        numTrades:
          description: Number of trades
          format: int32
          title: Num Trades
          type: integer
        positions:
          description: Total number of positions
          format: int32
          title: Positions
          type: integer
        profit:
          description: Total profit
          format: double
          title: Profit
          type: number
        profitFactor:
          description: Ratio of profit to loss
          format: float
          title: Profit Factor
          type: number
        rank:
          description: User rank by PnL in the category for the duration
          format: int32
          title: Rank
          type: integer
        realizedBuyCost:
          description: Total cost of closed buys
          format: double
          title: Realized Buy Cost
          type: number
        realizedPnl:
          description: Realized profit and loss
          format: double
          title: Realized PNL
          type: number
        roi:
          description: Return on investment percentage
          format: float
          title: Roi
          type: number
        tagId:
          description: Tag identifier
          format: int32
          title: Category
          type: integer
        userId:
          description: User wallet address
          title: User
          type: string
        volume:
          description: Total trading volume
          format: double
          title: Volume
          type: number
        winRate:
          description: Winning percentage
          format: float
          title: Win Rate
          type: number
        wins:
          description: Number of winning positions
          format: int32
          title: Wins
          type: integer
      type: object
    Error:
      properties:
        code:
          description: machine-readable error code
          type: string
        message:
          description: human-readable description
          type: string
      required:
        - code
        - message
      type: object
    UserTagProfileFilterNode:
      description: A single condition, or a group combining conditions with AND/OR.
      oneOf:
        - $ref: '#/components/schemas/UserTagProfileCondition'
        - $ref: '#/components/schemas/UserTagProfileFilterGroup'
    UserTagProfileCondition:
      description: >-
        A single field condition. in/notIn take an array of values;
        matches/notMatches take one search term.
      oneOf:
        - $ref: '#/components/schemas/UserTagProfileNumericCondition'
        - $ref: '#/components/schemas/UserTagProfileIdCondition'
        - $ref: '#/components/schemas/UserTagProfileDurationCondition'
    UserTagProfileFilterGroup:
      description: >-
        A group of conditions and nested groups, combined with the group's
        operator.
      properties:
        filters:
          items:
            oneOf:
              - $ref: '#/components/schemas/UserTagProfileCondition'
              - $ref: '#/components/schemas/UserTagProfileFilterInnerGroup'
          minItems: 1
          type: array
        operator:
          enum:
            - AND
            - OR
          type: string
      required:
        - operator
        - filters
      type: object
    UserTagProfileNumericCondition:
      properties:
        field:
          enum:
            - realizedPnl
            - wins
            - losses
            - profit
            - loss
            - volume
            - profitFactor
            - positions
            - winRate
            - realizedBuyCost
            - roi
            - holdTime
            - numTrades
            - numPredictions
            - avgTradesPerPrediction
            - rank
          type: string
        operator:
          enum:
            - eq
            - neq
            - lt
            - lte
            - gt
            - gte
          type: string
        value:
          oneOf:
            - format: double
              type: number
            - items:
                format: double
                type: number
              minItems: 1
              type: array
      required:
        - field
        - operator
        - value
      type: object
    UserTagProfileIdCondition:
      properties:
        field:
          enum:
            - tagId
          type: string
        operator:
          enum:
            - in
            - notIn
          type: string
        value:
          oneOf:
            - format: int32
              type: integer
            - items:
                format: int32
                type: integer
              minItems: 1
              type: array
      required:
        - field
        - operator
        - value
      type: object
    UserTagProfileDurationCondition:
      properties:
        field:
          enum:
            - duration
          type: string
        operator:
          enum:
            - in
            - notIn
            - matches
            - notMatches
          type: string
        value:
          oneOf:
            - enum:
                - 1D
                - 1W
                - 1M
                - 1Y
                - ALL
              type: string
            - items:
                enum:
                  - 1D
                  - 1W
                  - 1M
                  - 1Y
                  - ALL
                type: string
              minItems: 1
              type: array
      required:
        - field
        - operator
        - value
      type: object
    UserTagProfileFilterInnerGroup:
      description: >-
        A nested group. Its members must be conditions, which bounds grouping at
        two levels.
      properties:
        filters:
          items:
            $ref: '#/components/schemas/UserTagProfileCondition'
          minItems: 1
          type: array
        operator:
          enum:
            - AND
            - OR
          type: string
      required:
        - operator
        - filters
      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

````