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

# Positions du compte

> Chaque position parimutuelle détenue par une adresse XRPL, avec la mise par résultat, la phase de marché et le résultat de règlement.

Toutes les positions détenues par une adresse sur l'ensemble des marchés publics, agrégées par marché et par résultat, chacune marquée `pending`, `won`, `lost` ou `void`.


## OpenAPI

````yaml GET /accounts/{address}/positions
openapi: 3.1.0
info:
  title: counsel API
  version: 1.0.0
  description: >-
    Public, read-only HTTP API for counsel, an L1-native parimutuel prediction
    market on the XRP Ledger. No API key, no auth, all responses JSON. It
    exposes live market state, indicative odds, unsigned bet construction,
    account positions and profiles, a copy-trading feed, and the
    SourceTag-attributed leaderboard.
  contact:
    name: counsel
    url: https://counsel.markets
  license:
    name: MIT
servers:
  - url: https://api.counsel.markets
    description: Canonical API host
  - url: https://counsel.markets/api/v1
    description: Path-based equivalent
security: []
paths:
  /accounts/{address}/positions:
    get:
      tags:
        - Accounts
      summary: Account positions
      description: An account's stakes by market and outcome, with the per-position result.
      operationId: getPositions
      parameters:
        - name: address
          in: path
          required: true
          schema:
            type: string
          description: XRPL classic address.
          example: rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe
      responses:
        '200':
          description: Positions
          content:
            application/json:
              schema:
                type: object
                required:
                  - account
                  - positions
                properties:
                  account:
                    type: string
                  positions:
                    type: array
                    items:
                      $ref: '#/components/schemas/Position'
        '400':
          description: Invalid address
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Position:
      type: object
      required:
        - market_id
        - question
        - outcome
        - outcome_label
        - staked_xrp
        - phase
        - result
      properties:
        market_id:
          type: string
        question:
          type: string
        outcome:
          type: integer
        outcome_label:
          type: string
        staked_xrp:
          type: number
        phase:
          type: string
        result:
          type: string
          enum:
            - pending
            - won
            - lost
            - void
    Error:
      type: object
      properties:
        error:
          type: string
          example: market not found

````