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

# Positions Expiring

> Get positions in markets that resolve within N hours.

Useful for:
- Pre-resolution position review
- Exit planning before market closes
- Avoiding surprise resolutions

Parameters:
- hours: Time window in hours (default 24, max 168 = 1 week)

Returns positions with resolution countdown.



## OpenAPI

````yaml /openapi.json get /api/sdk/positions/expiring
openapi: 3.1.0
info:
  title: Simmer API
  description: Agent-native trading infrastructure for prediction markets.
  version: 1.0.0
servers:
  - url: https://api.simmer.markets
security: []
paths:
  /api/sdk/positions/expiring:
    get:
      summary: Positions Expiring
      description: |-
        Get positions in markets that resolve within N hours.

        Useful for:
        - Pre-resolution position review
        - Exit planning before market closes
        - Avoiding surprise resolutions

        Parameters:
        - hours: Time window in hours (default 24, max 168 = 1 week)

        Returns positions with resolution countdown.
      operationId: api_sdk_positions_expiring_api_sdk_positions_expiring_get
      parameters:
        - name: hours
          in: query
          required: false
          schema:
            type: integer
            maximum: 168
            minimum: 1
            description: Hours until resolution (1-168)
            default: 24
            title: Hours
          description: Hours until resolution (1-168)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````