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

# Get locked CPMM position metadata

> Fetch metadata for a locked Constant Product Market Maker position. Returns LP token amounts,
pool share percentage, and claimable fees from locking.




## OpenAPI

````yaml /api-reference/openapi/dynamic-ipfs-v1.yaml get /lock/cpmm/position
openapi: 3.0.3
info:
  title: Dynamic IPFS API
  description: >
    Regenerates dynamic NFT metadata and images for CLMM positions. Used by
    dApps to fetch real-time

    position visuals and valuation data, including pool details, amounts, fees,
    and rewards.


    This service caches position metadata in IPFS and serves computed position
    state (USD value,

    TVL percentage, unclaimed fees) by position ID. Supports both unlocked and
    locked positions

    across CLMM and CPMM pool types.
  version: 1.0.0
  contact:
    name: Raydium
    url: https://raydium.io
servers:
  - url: https://dynamic-ipfs.raydium.io
    description: Mainnet
  - url: https://dynamic-ipfs-devnet.raydium.io
    description: Devnet
security: []
tags:
  - name: CLMM Position
    description: >-
      Retrieve dynamic metadata for Concentrated Liquidity Market Maker
      positions
  - name: Locked Positions
    description: Retrieve locked position data (CLMM and CPMM)
paths:
  /lock/cpmm/position:
    get:
      tags:
        - Locked Positions
      summary: Get locked CPMM position metadata
      description: >
        Fetch metadata for a locked Constant Product Market Maker position.
        Returns LP token amounts,

        pool share percentage, and claimable fees from locking.
      operationId: getLockedCpmmPosition
      parameters:
        - name: id
          in: query
          required: true
          description: Locked CPMM position PDA public key (base58)
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CPNFTInterface'
        '400':
          description: Invalid position ID or owner mismatch
          content:
            text/plain:
              schema:
                type: string
        '404':
          description: Position not found
          content:
            text/plain:
              schema:
                type: string
        '500':
          description: Server error
          content:
            text/plain:
              schema:
                type: string
components:
  schemas:
    CPNFTInterface:
      type: object
      description: Complete CPMM locked position with pool details and valuation
      properties:
        poolInfo:
          $ref: '#/components/schemas/PoolInfoCPMM'
        positionInfo:
          $ref: '#/components/schemas/CPPositionInfo'
      required:
        - poolInfo
        - positionInfo
    PoolInfoCPMM:
      type: object
      description: Constant Product Market Maker pool information
      properties:
        id:
          type: string
        mintA:
          $ref: '#/components/schemas/MintInfo'
        mintB:
          $ref: '#/components/schemas/MintInfo'
        lpMint:
          $ref: '#/components/schemas/MintInfo'
        lpPrice:
          type: number
          description: LP token price in USD
    CPPositionInfo:
      type: object
      description: CPMM locked position state
      properties:
        tvlPercentage:
          type: number
          description: Pool share as percentage (0-100)
        usdValue:
          type: number
          description: Locked LP value in USD
        amountA:
          type: number
          description: Token A underlying amount
        amountB:
          type: number
          description: Token B underlying amount
        unclaimedFee:
          $ref: '#/components/schemas/CPUnclaimedFeeInfo'
      required:
        - tvlPercentage
        - usdValue
        - amountA
        - amountB
        - unclaimedFee
    MintInfo:
      type: object
      properties:
        address:
          type: string
          description: Token mint address
        decimals:
          type: integer
          description: Token decimals
        symbol:
          type: string
          description: Token symbol
    CPUnclaimedFeeInfo:
      type: object
      description: Claimable LP and fees from locked CPMM position
      properties:
        lp:
          type: number
          description: Claimable LP amount
        amountA:
          type: number
          description: Claimable Token A
        amountB:
          type: number
          description: Claimable Token B
        usdValue:
          type: number
          description: Claimable value in USD

````