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

# Get LP positions revenue for an owner

> Retrieve revenue and PnL data over time for a specific wallet owner. Only 7D and 1M ranges are available.



## OpenAPI

````yaml /api-reference/openapi.json get /lp-positions/revenue/{owner}
openapi: 3.0.0
info:
  title: LP Agent Open API
  version: 1.0.0
  description: |+
    Public API for LP Agent

    **Authentication**

    All endpoints require an API key passed via the `x-api-key` header.

servers:
  - url: https://api.lpagent.io/open-api/v1
    description: Production
security:
  - apiKeyAuth: []
tags: []
paths:
  /lp-positions/revenue/{owner}:
    get:
      tags:
        - Positions
      summary: Get LP positions revenue for an owner
      description: >-
        Retrieve revenue and PnL data over time for a specific wallet owner.
        Only 7D and 1M ranges are available.
      parameters:
        - in: path
          name: owner
          required: true
          schema:
            type: string
          description: Wallet address of the position owner
          example: 7q4VBmi56ws3LHNHstESrHHCK8CD3jfA2JVBhe29yvUM
        - in: query
          name: period
          schema:
            type: string
            enum:
              - day
              - week
              - month
            default: day
          description: Aggregation period for revenue data
        - in: query
          name: range
          schema:
            type: string
            enum:
              - 7D
              - 1M
          description: Time range filter (only 7D and 1M are available)
        - in: query
          name: protocol
          schema:
            type: string
          description: Comma-separated protocol filter
          example: meteora,meteora_damm_v2
      responses:
        '200':
          description: Successfully retrieved revenue data
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: success
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        close_day:
                          type: string
                          format: date-time
                          description: Date of the revenue data point
                          example: '2026-03-10T00:00:00.000Z'
                        sum:
                          type: number
                          description: Period PnL in USD
                          example: 1500.5
                        sum_native:
                          type: number
                          description: Period PnL in native token (SOL)
                          example: 1200.25
                        total_invested:
                          type: number
                          description: Total capital invested at end of period (USD)
                          example: 50000
                        total_invested_native:
                          type: number
                          description: Total capital invested in native token
                          example: 40000
                        cumulative_pnl:
                          type: number
                          description: Running cumulative PnL from start date (USD)
                          example: 1500.5
                        cumulative_pnl_native:
                          type: number
                          description: Running cumulative PnL in native token
                          example: 1200.25
                        max_invested:
                          type: number
                          description: Maximum capital deployed in this period (USD)
                          example: 50000
                        max_invested_native:
                          type: number
                          description: Maximum capital deployed in native token
                          example: 40000
                        pnl_percent:
                          type: number
                          description: PnL as percentage of max invested (USD)
                          example: 0.03
                        pnl_percent_native:
                          type: number
                          description: PnL percentage in native token
                          example: 0.03
        '400':
          description: Invalid query parameters
        '500':
          description: Internal server error
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for authentication

````