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

# Close Clmm Position

> CLOSE a CLMM position completely (removes all liquidity and collects pending fees).

Example:
    connector: 'meteora'
    network: 'solana-mainnet-beta'
    position_address: '...'
    wallet_address: (optional)

Returns:
    Transaction hash and collected fee amounts



## OpenAPI

````yaml /api-reference/openapi.json post /gateway/clmm/close
openapi: 3.1.0
info:
  title: Hummingbot API
  description: API for managing Hummingbot trading instances
  version: 1.0.1
servers:
  - url: http://localhost:8000
    description: Local development server
security: []
paths:
  /gateway/clmm/close:
    post:
      tags:
        - Gateway CLMM
      summary: Close Clmm Position
      description: >-
        CLOSE a CLMM position completely (removes all liquidity and collects
        pending fees).


        Example:
            connector: 'meteora'
            network: 'solana-mainnet-beta'
            position_address: '...'
            wallet_address: (optional)

        Returns:
            Transaction hash and collected fee amounts
      operationId: close_clmm_position_gateway_clmm_close_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CLMMClosePositionRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CLMMClosePositionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBasic: []
components:
  schemas:
    CLMMClosePositionRequest:
      properties:
        connector:
          type: string
          title: Connector
          description: CLMM connector (e.g., 'meteora', 'raydium', 'uniswap')
        network:
          type: string
          title: Network
          description: Network ID in 'chain-network' format (e.g., 'solana-mainnet-beta')
        position_address:
          type: string
          title: Position Address
          description: Position address to close
        slippage_pct:
          anyOf:
            - type: number
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Slippage Pct
          description: >-
            Maximum acceptable slippage percentage for the withdrawal. Enforced
            by orca, uniswap and pancakeswap; meteora, raydium and
            pancakeswap-sol close with no minimum-amount check at all, so it
            changes nothing there. Omit to use the connector's configured
            slippagePct. An executor widening this across retries is what it
            exists for: a narrow in-range close can fail on slippage at the
            configured value with no way to say "accept more to get out".
        pool_address:
          anyOf:
            - type: string
            - type: 'null'
          title: Pool Address
          description: >-
            Pool the position belongs to. Informational only — neither Gateway's
            call nor the fee snapshot needs it, and unrecorded positions work
            without it
        wallet_address:
          anyOf:
            - type: string
            - type: 'null'
          title: Wallet Address
          description: Wallet address (optional, uses default if not provided)
      type: object
      required:
        - connector
        - network
        - position_address
      title: CLMMClosePositionRequest
      description: >-
        Request to CLOSE a CLMM position completely (removes all liquidity and
        closes position)
    CLMMClosePositionResponse:
      properties:
        transaction_hash:
          type: string
          title: Transaction Hash
          description: Transaction hash
        position_address:
          type: string
          title: Position Address
          description: Position address
        base_fee_collected:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Base Fee Collected
          description: Base token fees collected
        quote_fee_collected:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Quote Fee Collected
          description: Quote token fees collected
        status:
          type: string
          title: Status
          description: Transaction status
          default: submitted
        base_token_amount_removed:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Base Token Amount Removed
          description: Base liquidity actually withdrawn on-chain
        quote_token_amount_removed:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Quote Token Amount Removed
          description: Quote liquidity actually withdrawn on-chain
        position_rent_refunded:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Position Rent Refunded
          description: Native token rent refunded when the position account closed
      type: object
      required:
        - transaction_hash
        - position_address
      title: CLMMClosePositionResponse
      description: >-
        Response after closing a position: fees collected plus what the close
        returned.


        The removed amounts and rent refund come from Gateway's confirmed
        transaction data,

        so they are None for submitted-not-confirmed transactions.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBasic:
      type: http
      scheme: basic

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.