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

# Remove Amm Liquidity

> Remove liquidity from an AMM pool.

Meteora DAMM v2 requires position_address (positions are NFTs); Gateway rejects a missing one
with a 400, surfaced here unchanged, so "remove 100%" is a true exit of the named position.



## OpenAPI

````yaml /api-reference/openapi.json post /gateway/amm/remove-liquidity
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/amm/remove-liquidity:
    post:
      tags:
        - Gateway AMM
      summary: Remove Amm Liquidity
      description: >-
        Remove liquidity from an AMM pool.


        Meteora DAMM v2 requires position_address (positions are NFTs); Gateway
        rejects a missing one

        with a 400, surfaced here unchanged, so "remove 100%" is a true exit of
        the named position.
      operationId: remove_amm_liquidity_gateway_amm_remove_liquidity_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AMMRemoveLiquidityRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AMMTransactionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBasic: []
components:
  schemas:
    AMMRemoveLiquidityRequest:
      properties:
        connector:
          type: string
          title: Connector
          description: AMM connector (e.g., 'meteora', 'raydium', 'uniswap')
        network:
          type: string
          title: Network
          description: Network ID in 'chain-network' format (e.g., 'solana-mainnet-beta')
        pool_address:
          type: string
          title: Pool Address
          description: Pool contract address
        percentage_to_remove:
          anyOf:
            - type: number
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Percentage To Remove
          description: Percentage of liquidity to remove (0-100)
        slippage_pct:
          anyOf:
            - type: number
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Slippage Pct
          description: Maximum slippage percentage
        wallet_address:
          anyOf:
            - type: string
            - type: 'null'
          title: Wallet Address
          description: Wallet address (optional, uses default)
        position_address:
          anyOf:
            - type: string
            - type: 'null'
          title: Position Address
          description: Meteora position to remove from (required for meteora)
      type: object
      required:
        - connector
        - network
        - pool_address
        - percentage_to_remove
      title: AMMRemoveLiquidityRequest
      description: Request to remove liquidity from an AMM pool.
    AMMTransactionResponse:
      properties:
        signature:
          type: string
          title: Signature
          description: Transaction signature (Solana) or transaction hash (EVM)
        status:
          type: string
          title: Status
          description: >-
            Transaction status: SUBMITTED, CONFIRMED or FAILED. Mapped from
            Gateway's TransactionStatus enum by the same helper the swap and
            CLMM surfaces use, so one vocabulary spans all three.
        data:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Data
          description: Connector-specific confirmed-tx details
      type: object
      required:
        - signature
        - status
      title: AMMTransactionResponse
      description: >-
        Chain-neutral write response. `signature` holds the tx signature
        (Solana) or tx hash (EVM).
    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

````