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

# List LP

> This endpoint retrieves the number of Liquidity Provider (LP) positions
associated with a specific sender address on the Uniswap platform.

Users can query this endpoint to obtain detailed information about their LP
positions, including the total number of positions and relevant metadata. This
information is crucial for users to manage and analyze their liquidity provision
activities effectively.



## OpenAPI

````yaml /v1/combined_spec.json get /v1/uniswap/liquidity_provision/positions
openapi: 3.1.0
info:
  title: Compass API
  description: Compass Labs DeFi API
  version: 0.0.1
servers:
  - url: https://api.compasslabs.ai
    description: Production server
security:
  - ApiKeyAuth: []
paths:
  /v1/uniswap/liquidity_provision/positions:
    get:
      tags:
        - Uniswap V3
      summary: List LP
      description: >-
        This endpoint retrieves the number of Liquidity Provider (LP) positions

        associated with a specific sender address on the Uniswap platform.


        Users can query this endpoint to obtain detailed information about their
        LP

        positions, including the total number of positions and relevant
        metadata. This

        information is crucial for users to manage and analyze their liquidity
        provision

        activities effectively.
      operationId: v1_uniswap_liquidity_provision_positions
      parameters:
        - name: chain
          in: query
          required: true
          schema:
            type: string
            enum:
              - arbitrum
              - base
              - ethereum
            title: Chain
            default: arbitrum
        - name: user
          in: query
          required: false
          schema:
            type: string
            default: '0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B'
            title: User
          description: The user to get positions for.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UniswapLPPositionsInfoResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-codeSamples:
        - lang: python
          label: Python (SDK)
          source: |-
            from compass_api_sdk import CompassAPI, models


            with CompassAPI(
                api_key_auth="<YOUR_API_KEY_HERE>",
            ) as compass_api:

                res = compass_api.uniswap_v3.uniswap_liquidity_provision_positions(chain=models.V1UniswapLiquidityProvisionPositionsChain.ARBITRUM, user="0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")

                # Handle response
                print(res)
        - lang: typescript
          label: Typescript (SDK)
          source: |-
            import { CompassApiSDK } from "@compass-labs/api-sdk";

            const compassApiSDK = new CompassApiSDK({
              apiKeyAuth: "<YOUR_API_KEY_HERE>",
            });

            async function run() {
              const result = await compassApiSDK.uniswapV3.uniswapLiquidityProvisionPositions({
                chain: "arbitrum",
                user: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
              });

              console.log(result);
            }

            run();
components:
  schemas:
    UniswapLPPositionsInfoResponse:
      properties:
        positions:
          additionalProperties:
            $ref: '#/components/schemas/UniswapPositionsSolidityResponse'
          type: object
          title: Positions
          description: |2-
             Liquidity provision positions belonging to a particular user keyed by the
                    token of owner index of the position. 
      type: object
      required:
        - positions
      title: UniswapLPPositionsInfoResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    UniswapPositionsSolidityResponse:
      properties:
        nonce:
          type: integer
          title: Nonce
        operator:
          type: string
          title: Operator
        token0:
          type: string
          title: Token0
        token1:
          type: string
          title: Token1
        fee:
          type: integer
          title: Fee
        tick_lower:
          type: integer
          title: Tick Lower
        tick_upper:
          type: integer
          title: Tick Upper
        liquidity:
          type: integer
          title: Liquidity
        fee_growth_inside0_last_x128:
          type: integer
          title: Fee Growth Inside0 Last X128
        fee_growth_inside1_last_x128:
          type: integer
          title: Fee Growth Inside1 Last X128
        tokens_owed0:
          type: integer
          title: Tokens Owed0
        tokens_owed1:
          type: integer
          title: Tokens Owed1
        lp_token_address:
          anyOf:
            - type: string
            - type: 'null'
          title: Lp Token Address
      type: object
      required:
        - nonce
        - operator
        - token0
        - token1
        - fee
        - tick_lower
        - tick_upper
        - liquidity
        - fee_growth_inside0_last_x128
        - fee_growth_inside1_last_x128
        - tokens_owed0
        - tokens_owed1
      title: UniswapPositionsSolidityResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Your Compass API Key. Get your key
        [here](https://www.compasslabs.ai/dashboard).

````