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

# Smart Money Position

> Per-wallet smart-money positions on a single (binary, non neg-risk) market.



## OpenAPI

````yaml /openapi.json post /api/v1/smart-money/positions
openapi: 3.0.3
info:
  title: DataDash Analytics API
  version: 1.0.0
servers: []
security:
  - ApiKeyAuth: []
  - BearerAuth: []
paths:
  /api/v1/smart-money/positions:
    post:
      tags:
        - Smart Money
      summary: Smart Money Position
      description: >-
        Per-wallet smart-money positions on a single (binary, non neg-risk)
        market.
      operationId: listSmartMoneyPositions
      requestBody:
        content:
          application/json:
            schema:
              properties:
                filter:
                  $ref: '#/components/schemas/SmartMoneyPositionFilter'
                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:
                          - userId
                          - netShares
                          - currentValue
                          - entryPrice
                          - unrealizedPnl
                          - unrealizedPnlPercentage
                        type: string
                    required:
                      - field
                    type: object
                  type: array
                page:
                  $ref: '#/components/schemas/PageInput'
              required:
                - page
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/SmartMoneyPositionRow'
                type: array
          description: List of Smart Money Position 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:
    SmartMoneyPositionFilter:
      description: Filters to apply, combined with AND. Use a group for OR.
      items:
        $ref: '#/components/schemas/SmartMoneyPositionFilterNode'
      minItems: 1
      type: array
    PageInput:
      properties:
        limit:
          minimum: 1
          type: integer
        offset:
          minimum: 0
          type: integer
      required:
        - limit
      type: object
    SmartMoneyPositionRow:
      properties:
        currentValue:
          description: >-
            Current USD value of the net shares at the target position's live
            price
          format: double
          title: Current Value
          type: number
        entryPrice:
          description: Average buying price of the target position's shares still held
          format: double
          title: Entry Price
          type: number
        netShares:
          description: >-
            The wallet's shares on the target position minus its shares on the
            opposite leg. Filter with net shares > 0 to show net positions only.
          format: double
          title: Net Shares
          type: number
        unrealizedPnl:
          description: Unrealized profit/loss on the target position's shares still held
          format: double
          title: Open PnL
          type: number
        unrealizedPnlPercentage:
          description: >-
            Unrealized profit/loss as a percentage of the target position's buy
            cost
          format: double
          title: Open PnL Percentage
          type: number
        userId:
          description: User wallet address
          title: Wallet
          type: string
      type: object
    Error:
      properties:
        code:
          description: machine-readable error code
          type: string
        message:
          description: human-readable description
          type: string
      required:
        - code
        - message
      type: object
    SmartMoneyPositionFilterNode:
      description: A single condition, or a group combining conditions with AND/OR.
      oneOf:
        - $ref: '#/components/schemas/SmartMoneyPositionCondition'
        - $ref: '#/components/schemas/SmartMoneyPositionFilterGroup'
    SmartMoneyPositionCondition:
      description: >-
        A single field condition. in/notIn take an array of values;
        matches/notMatches take one search term.
      oneOf:
        - $ref: '#/components/schemas/SmartMoneyPositionNumericCondition'
        - $ref: '#/components/schemas/SmartMoneyPositionIdCondition'
        - $ref: '#/components/schemas/SmartMoneyPositionAddressCondition'
        - $ref: '#/components/schemas/SmartMoneyPositionBooleanCondition'
    SmartMoneyPositionFilterGroup:
      description: >-
        A group of conditions and nested groups, combined with the group's
        operator.
      properties:
        filters:
          items:
            oneOf:
              - $ref: '#/components/schemas/SmartMoneyPositionCondition'
              - $ref: '#/components/schemas/SmartMoneyPositionFilterInnerGroup'
          minItems: 1
          type: array
        operator:
          enum:
            - AND
            - OR
          type: string
      required:
        - operator
        - filters
      type: object
    SmartMoneyPositionNumericCondition:
      properties:
        field:
          enum:
            - netShares
            - currentValue
            - entryPrice
            - unrealizedPnl
            - unrealizedPnlPercentage
            - userRank
          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
    SmartMoneyPositionIdCondition:
      properties:
        field:
          enum:
            - marketId
          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
    SmartMoneyPositionAddressCondition:
      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:
            - type: string
            - items:
                type: string
              minItems: 1
              type: array
      required:
        - field
        - operator
        - value
      type: object
    SmartMoneyPositionBooleanCondition:
      properties:
        field:
          enum:
            - inSignals
          type: string
        operator:
          enum:
            - eq
          type: string
        value:
          type: boolean
      required:
        - field
        - operator
        - value
      type: object
    SmartMoneyPositionFilterInnerGroup:
      description: >-
        A nested group. Its members must be conditions, which bounds grouping at
        two levels.
      properties:
        filters:
          items:
            $ref: '#/components/schemas/SmartMoneyPositionCondition'
          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

````