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

# List a wallet's positions across venues

> Returns open, resolved and closed positions across venues. Requires `Authorization: SIWE <token>` from a `login` action (or an API key whose Kairos account owns the wallet).

**The body is nested:** the rows are at `positions.positions`, with `positions.resolved`, `positions.closed` and `positions.asOf` beside them. When a venue cannot be read, `venueDetail.<venue>.error` says why.



## OpenAPI

````yaml /openapi/wallet-api.json get /v3/wallets/{address}/positions
openapi: 3.1.0
info:
  title: Kairos Partner API
  version: 1.0.0
  description: >-
    Self-custody trading for wallets and apps: Kairos builds each step, the
    user's wallet signs it. Every operation is under `/v3`. Guides:
    https://docs.kairos.trade/wallets/overview
servers:
  - url: https://execution.kairos.trade
    description: Production
  - url: https://staging-execution.kairos.trade
    description: Staging
security: []
tags:
  - name: Actions
    description: >-
      Start `setup`, `order`, `cancel` and `login` actions and answer their
      steps. Live. Send `X-Kairos-Wallet-Api: 2`.
  - name: Reads
    description: >-
      Wallet readiness and balances per venue (partner id or API key, no wallet
      proof), and the wallet's orders and positions (also needs `Authorization:
      SIWE <token>` from a `login` action). Live.
  - name: Trade plans (preview)
    description: >-
      One buy order authorized up front in one signature batch, with a fee
      ceiling and deadlines, optionally funded by bridging the exact shortfall
      from Polygon or Arbitrum USDC. Preview: staging only; production returns
      `503` until release.
  - name: Fees (preview)
    description: >-
      Trading fees from trade plans accrue as a debt per wallet and are paid in
      one settlement — a gasless signature on Polymarket, a USDT transfer on
      Predict.fun. Preview: staging only.
  - name: On-chain intents (preview)
    description: >-
      Split, merge or redeem conditional tokens on a Polymarket deposit wallet
      with two signatures and no gas; Kairos confirms from the finalized
      receipt. Preview: staging only; production returns `503` until release.
paths:
  /v3/wallets/{address}/positions:
    get:
      tags:
        - Reads
      summary: List a wallet's positions across venues
      description: >-
        Returns open, resolved and closed positions across venues. Requires
        `Authorization: SIWE <token>` from a `login` action (or an API key whose
        Kairos account owns the wallet).


        **The body is nested:** the rows are at `positions.positions`, with
        `positions.resolved`, `positions.closed` and `positions.asOf` beside
        them. When a venue cannot be read, `venueDetail.<venue>.error` says why.
      operationId: listWalletPositions
      parameters:
        - $ref: '#/components/parameters/WalletAddressPath'
        - $ref: '#/components/parameters/WalletApiVersion'
        - $ref: '#/components/parameters/WalletVenueQuery'
      responses:
        '200':
          description: Positions across venues.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WalletPositionsResponse'
        '400':
          description: '`unknown venue "x"`; `wallet must be a 0x address`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WalletApiError'
        '401':
          $ref: '#/components/responses/WalletSignInUnauthorized'
        '403':
          $ref: '#/components/responses/WalletTenantForbidden'
        '404':
          $ref: '#/components/responses/WalletNotFound'
        '429':
          $ref: '#/components/responses/WalletRateLimited'
        '500':
          $ref: '#/components/responses/WalletInternalError'
        '502':
          $ref: '#/components/responses/WalletVenueUnavailable'
        '503':
          $ref: '#/components/responses/WalletServiceUnavailable'
        '504':
          $ref: '#/components/responses/WalletGatewayTimeout'
      security:
        - walletPartnerId: []
          walletSignIn: []
        - apiKeyClientId: []
          apiKeyKey: []
          apiKeySecret: []
          walletSignIn: []
        - apiKeyClientId: []
          apiKeyKey: []
          apiKeySecret: []
        - walletPartnerId: []
          apiKeyClientId: []
          apiKeyKey: []
          apiKeySecret: []
        - walletPartnerId: []
          bearerAuth: []
components:
  parameters:
    WalletAddressPath:
      name: address
      in: path
      required: true
      description: The wallet's EVM address (`0x` + 40 hex; checksum not required).
      schema:
        type: string
        pattern: ^0x[0-9a-fA-F]{40}$
      example: '0x8ba1f109551bd432803012645ac136ddd64dba72'
    WalletApiVersion:
      name: X-Kairos-Wallet-Api
      in: header
      required: true
      description: >-
        Wallet API contract version. Send `2` — the multi-venue contract this
        reference documents. Without the header (or with any other value)
        `/v3/actions` and `/v3/wallets/*` serve the original Polymarket-only
        contract, which ignores venue prefixes, `expiresAt` and `setup.venues`,
        omits `chainId`, `venue` and `fallbackRequests` from steps, refuses
        orders on a wallet that is not set up (`409`), and returns snake_case
        order and position rows.
      schema:
        type: string
        enum:
          - '2'
      example: '2'
    WalletVenueQuery:
      name: venue
      in: query
      required: false
      description: >-
        Read one venue only. Case-insensitive; `predict.fun` is accepted for
        `predictfun`. An unknown name is `400 unknown venue "<name>"`; a venue
        not offered on this deployment returns an empty list.
      schema:
        $ref: '#/components/schemas/WalletVenue'
  schemas:
    WalletPositionsResponse:
      type: object
      description: >-
        Response of `GET /v3/wallets/{address}/positions`. **Nested:** the rows
        are at `positions.positions`.
      required:
        - positions
      properties:
        positions:
          type: object
          required:
            - positions
            - resolved
            - closed
            - asOf
          properties:
            positions:
              type: array
              description: Open positions.
              items:
                $ref: '#/components/schemas/WalletPosition'
            resolved:
              type: array
              description: Positions in resolved markets.
              items:
                $ref: '#/components/schemas/WalletResolvedPosition'
            closed:
              type: array
              description: Positions closed out.
              items:
                type: object
                required:
                  - venue
                  - tokenId
                properties:
                  venue:
                    $ref: '#/components/schemas/WalletVenue'
                  tokenId:
                    type:
                      - string
                      - 'null'
            asOf:
              type: string
              format: date-time
        venueDetail:
          $ref: '#/components/schemas/WalletVenueReadError'
      example:
        positions:
          positions:
            - venue: polymarket
              market: >-
                polymarket:0x5f3a8e1c2b4d6f8a0c2e4b6d8f0a2c4e6b8d0f2a4c6e8b0d2f4a6c8e0b2d4f6a
              marketId: >-
                0x5f3a8e1c2b4d6f8a0c2e4b6d8f0a2c4e6b8d0f2a4c6e8b0d2f4a6c8e0b2d4f6a
              outcome: 'Yes'
              tokenId: >-
                71321045679252212594626385532706912750332728571942532289631379312455583992563
              size: '4.5'
              availableToSell: '4.5'
              avgPrice: '0.52'
              realizedPnl: '0'
              holdingWallet: '0x2f9c4b8e1d7a6c5b4a3f2e1d0c9b8a7f6e5d4c3b'
              lastTradeAt: '2026-10-28T11:58:00Z'
          resolved: []
          closed: []
          asOf: '2026-10-28T12:00:00Z'
    WalletApiError:
      type: object
      description: >-
        Wallet API error body. `error` is a human-readable message; `code` is
        set on a few structured refusals (e.g. `CLIENT_ORDER_ID_CONFLICT`,
        `POLYMARKET_V2_TRADING_DISABLED`, `SIGNATURE_EXPIRED`); `errorCode`
        mirrors `code` where the same refusal can also surface on a failed step.
        Most `/v3` errors carry only `error`. Framework rejections (malformed
        JSON, wrong shape, missing content type) are plain text, not this body.
      required:
        - error
      properties:
        error:
          type: string
          description: Human-readable message.
        code:
          type: string
          description: Stable code, present on structured refusals only.
        errorCode:
          type: string
          description: >-
            Same as `code`; present where the refusal can also appear as a
            failed step's `errorCode`.
      example:
        error: unknown or expired action
    WalletVenue:
      type: string
      description: Venue id. `predict.fun` is accepted as an input alias of `predictfun`.
      enum:
        - polymarket
        - predictfun
        - hyperliquid
    WalletPosition:
      type: object
      required:
        - venue
        - market
        - marketId
        - outcome
        - tokenId
        - size
        - availableToSell
        - avgPrice
        - realizedPnl
        - holdingWallet
        - lastTradeAt
      properties:
        venue:
          $ref: '#/components/schemas/WalletVenue'
        market:
          type: string
        marketId:
          type: string
        outcome:
          type:
            - string
            - 'null'
        tokenId:
          type:
            - string
            - 'null'
        size:
          type:
            - string
            - 'null'
          description: Shares held.
        availableToSell:
          type:
            - string
            - 'null'
          description: Shares not reserved by open sell orders.
        avgPrice:
          type:
            - string
            - 'null'
          description: Average entry price, 0–1.
        realizedPnl:
          type:
            - string
            - 'null'
        holdingWallet:
          type:
            - string
            - 'null'
          description: The address that holds the shares.
        lastTradeAt:
          type:
            - string
            - 'null'
          format: date-time
    WalletResolvedPosition:
      type: object
      required:
        - venue
        - market
        - marketId
        - outcome
        - tokenId
        - size
        - redeemable
        - holdingWallet
      properties:
        venue:
          $ref: '#/components/schemas/WalletVenue'
        market:
          type: string
        marketId:
          type: string
        outcome:
          type:
            - string
            - 'null'
        tokenId:
          type:
            - string
            - 'null'
        size:
          type:
            - string
            - 'null'
        redeemable:
          type:
            - boolean
            - 'null'
          description: The shares can be redeemed for collateral.
        holdingWallet:
          type:
            - string
            - 'null'
    WalletVenueReadError:
      type: object
      description: >-
        Per-venue read failures, keyed by venue. Present only when some venue
        could not be read.
      additionalProperties:
        type: object
        properties:
          error:
            type: string
  responses:
    WalletSignInUnauthorized:
      description: >-
        Tenant failures (`send X-Kairos-Partner-Id or your API key (X-Client-Id,
        X-Api-Key, X-Api-Secret)`, `invalid API key`), or the wallet proof
        failed:

        - `malformed sign-in token` — not `SIWE <token>` as issued, over 4096
        bytes, or an invalid lifetime

        - `sign-in token was issued for another partner or node` — issued for
        another partner or environment

        - `sign-in token has expired; run a login action`

        - `sign-in token signature is not from its wallet`

        - `Missing authorization` — no `Authorization` header and no API key to
        prove the wallet; `Invalid API credentials`, `API credential has been
        revoked` or `Invalid token` when the proving credential is not `SIWE`
        and fails
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/WalletApiError'
          example:
            error: sign-in token has expired; run a login action
    WalletTenantForbidden:
      description: >-
        `unknown partner id` (unknown, or the Wallet API is not enabled for it);
        `this partner id is used with its API key; send the key instead of
        X-Kairos-Partner-Id`; `this API key lacks the trade:execute scope` (an
        API key must carry `trade:execute` to act as the tenant — a
        `trade:read`-only key is refused, even on reads); `the wallet API is not
        enabled for this account`.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/WalletApiError'
          example:
            error: unknown partner id
    WalletNotFound:
      description: >-
        `wallet not found` — the sign-in token was signed by a different wallet,
        the API key's account does not own the wallet, or the wallet has never
        been set up.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/WalletApiError'
          example:
            error: wallet not found
    WalletRateLimited:
      description: >-
        `rate limit exceeded for this endpoint; retry later`. The default limit
        is 120 requests per minute per client IP per path (1000 when
        `X-Client-Id` is sent), over a sliding 60 s window; `GET` and `POST` on
        one path share it. No `Retry-After` header is sent.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/WalletApiError'
          example:
            error: rate limit exceeded for this endpoint; retry later
    WalletInternalError:
      description: '`internal error`.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/WalletApiError'
          example:
            error: internal error
    WalletVenueUnavailable:
      description: >-
        A venue did not answer cleanly, e.g. `Hyperliquid is unavailable; retry
        shortly`, `Predict.fun is unavailable; retry shortly`. Retry.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/WalletApiError'
    WalletServiceUnavailable:
      description: >-
        `partner registry unavailable; retry shortly`; `rate limiter
        unavailable` (the rate limiter fails closed); `wallet sign-in is not
        configured on this node`; `<venue> is not available right now`. Retry
        later.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/WalletApiError'
    WalletGatewayTimeout:
      description: >-
        `… did not answer in time; GET /v3/actions/{id} before retrying`. The
        request may have taken effect: read the state before repeating it.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/WalletApiError'
  securitySchemes:
    walletPartnerId:
      type: apiKey
      in: header
      name: X-Kairos-Partner-Id
      description: >-
        Wallet API partner id, issued by Kairos together with the partner's base
        URL. Identifies the partner (tenant) on every `/v3` call; sent instead
        of an API key. Letters, digits and `._:-`, at most 64 characters,
        case-insensitive. A partner id issued for an individual account cannot
        be sent this way — that account sends its API key triple instead.
    walletSignIn:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Wallet sign-in token: `SIWE <token>`, where `<token>` is `result.token`
        from a `login` action (exactly one space after `SIWE`). Proves the
        wallet on reads of its orders and positions, and on trade plans, fee
        settlements and on-chain intents. The token is bound to the partner and
        the environment that issued it and lasts 24 hours; run a new `login`
        action to renew it.
    apiKeyClientId:
      type: apiKey
      in: header
      name: X-Client-Id
      description: >-
        Credential client id (`kairos_ck_...`). Must be sent together with
        X-Api-Key and X-Api-Secret.
    apiKeyKey:
      type: apiKey
      in: header
      name: X-Api-Key
      description: 64-char hex API key.
    apiKeySecret:
      type: apiKey
      in: header
      name: X-Api-Secret
      description: 64-char hex API secret.
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        First-party Kairos session JWT (web app sessions). Not issued to API
        consumers.

````

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