> ## 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 Positions

> Retrieve the total number of Liquidity Provider (LP) positions associated with a
specific sender.

This endpoint allows users to query and obtain detailed information about their LP
positions, including the number of active positions they hold. The response model,
AerodromeLPPositionsInfo, provides a structured representation of the LP positions
data, ensuring clarity and ease of use. This functionality is essential for users
managing their liquidity provision activities, enabling them to make informed
decisions based on their current positions.



## OpenAPI

````yaml /v1/combined_spec.json get /v1/aerodrome_slipstream/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/aerodrome_slipstream/liquidity_provision/positions:
    get:
      tags:
        - Aerodrome Slipstream
      summary: List LP Positions
      description: >-
        Retrieve the total number of Liquidity Provider (LP) positions
        associated with a

        specific sender.


        This endpoint allows users to query and obtain detailed information
        about their LP

        positions, including the number of active positions they hold. The
        response model,

        AerodromeLPPositionsInfo, provides a structured representation of the LP
        positions

        data, ensuring clarity and ease of use. This functionality is essential
        for users

        managing their liquidity provision activities, enabling them to make
        informed

        decisions based on their current positions.
      operationId: v1_aerodrome_slipstream_liquidity_provision_positions
      parameters:
        - name: chain
          in: query
          required: true
          schema:
            type: string
            enum:
              - base
            title: Chain
            default: base
        - name: user
          in: query
          required: false
          schema:
            type: string
            default: '0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B'
            title: User
          description: The user to get positions for.
        - name: pool
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Pool
          description: >-
            Optional pool address to filter positions by. If provided, only
            positions for this pool will be returned.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AerodromeLPPositionsResponse'
        '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.aerodrome_slipstream.aerodrome_slipstream_liquidity_provision_positions(chain=models.V1AerodromeSlipstreamLiquidityProvisionPositionsChain.BASE, 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.aerodromeSlipstream.aerodromeSlipstreamLiquidityProvisionPositions({
                chain: "base",
                user: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
              });

              console.log(result);
            }

            run();
components:
  schemas:
    AerodromeLPPositionsResponse:
      properties:
        positions:
          additionalProperties:
            $ref: '#/components/schemas/AerodromeEnrichedPosition'
          type: object
          title: Positions
          description: >-
            Liquidity provision positions belonging to a particular user,
            enriched with

            token amounts and USD values. The key is the NFT token ID of the
            position.
      type: object
      required:
        - positions
      title: AerodromeLPPositionsResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AerodromeEnrichedPosition:
      properties:
        nonce:
          type: integer
          title: Nonce
          description: Position nonce
        operator:
          type: string
          title: Operator
          description: Operator address
        token0:
          type: string
          title: Token0
          description: Token0 address
        token1:
          type: string
          title: Token1
          description: Token1 address
        tick_spacing:
          type: integer
          title: Tick Spacing
          description: Pool tick spacing
        tick_lower:
          type: integer
          title: Tick Lower
          description: Lower tick of the position
        tick_upper:
          type: integer
          title: Tick Upper
          description: Upper tick of the position
        liquidity:
          type: integer
          title: Liquidity
          description: Position liquidity
        fee_growth_inside0_last_x128:
          type: integer
          title: Fee Growth Inside0 Last X128
          description: Fee growth inside for token0
        fee_growth_inside1_last_x128:
          type: integer
          title: Fee Growth Inside1 Last X128
          description: Fee growth inside for token1
        tokens_owed0:
          type: integer
          title: Tokens Owed0
          description: Uncollected fees for token0
        tokens_owed1:
          type: integer
          title: Tokens Owed1
          description: Uncollected fees for token1
        token_id:
          type: integer
          title: Token Id
          description: NFT token ID
        pool_address:
          type: string
          title: Pool Address
          description: Pool contract address
        amount0:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Amount0
          description: Amount of token0 in the position (human readable)
        amount1:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Amount1
          description: Amount of token1 in the position (human readable)
        amount0_usd:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Amount0 Usd
          description: USD value of token0 in the position
        amount1_usd:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Amount1 Usd
          description: USD value of token1 in the position
        total_value_usd:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Total Value Usd
          description: Total USD value of the position
      type: object
      required:
        - nonce
        - operator
        - token0
        - token1
        - tick_spacing
        - tick_lower
        - tick_upper
        - liquidity
        - fee_growth_inside0_last_x128
        - fee_growth_inside1_last_x128
        - tokens_owed0
        - tokens_owed1
        - token_id
        - pool_address
        - amount0
        - amount1
        - amount0_usd
        - amount1_usd
        - total_value_usd
      title: AerodromeEnrichedPosition
      description: Aerodrome LP position enriched with token amounts and USD values.
    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).

````