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

# Get User P&L

> Get user P&L for a given user and market



## OpenAPI

````yaml /swagger.json get /user/pnl
openapi: 3.0.1
info:
  contact: {}
  title: VoxFi API
  version: 0.0.1
servers:
  - url: https://data-api-dev.voxfi.com.br/v1
security: []
paths:
  /user/pnl:
    get:
      tags:
        - user
      summary: Get User P&L
      description: Get user P&L for a given user and market
      parameters:
        - name: x-api-key
          in: header
          description: API Key
          required: true
          schema:
            type: string
        - name: marketId
          in: query
          description: Market ID
          schema:
            type: string
        - name: eventId
          in: query
          description: Event ID
          schema:
            type: string
        - name: marketStatus
          in: query
          description: >-
            Market Status. Comma separated list of market statuses. Example:
            1,2,3. Empty means all statuses
          schema:
            type: string
        - name: eventStatus
          in: query
          description: >-
            Event Status. Comma separated list of event statuses. Example:
            1,2,3. Empty means all statuses
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/models.UserPnl'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
        '429':
          description: Too many requests
          content:
            application/json:
              schema:
                type: object
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
components:
  schemas:
    models.UserPnl:
      type: object
      properties:
        event_id:
          type: string
        event_description:
          type: string
        event_slug:
          type: string
        event_thumbnail_url:
          type: string
        market_description:
          type: string
        market_id:
          type: string
        market_thumbnail_url:
          type: string
        amount_received:
          type: integer
        amount_received_no:
          type: integer
        amount_received_yes:
          type: integer
        amount_spent:
          type: integer
        amount_spent_no:
          type: integer
        amount_spent_yes:
          type: integer
        amount_settled:
          type: integer
        amount_settled_no:
          type: integer
        amount_settled_yes:
          type: integer
        winning_outcome:
          type: string
        settled_at:
          type: string
        pnl:
          type: integer
        pnl_no:
          type: integer
        pnl_yes:
          type: integer
        qty_contracts_bought:
          type: integer
        qty_contracts_bought_no:
          type: integer
        qty_contracts_bought_yes:
          type: integer
        qty_contracts_sold:
          type: integer
        qty_contracts_sold_no:
          type: integer
        qty_contracts_sold_yes:
          type: integer
        qty_contracts_settled:
          type: integer
        qty_contracts_settled_no:
          type: integer
        qty_contracts_settled_yes:
          type: integer

````