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

# Add Amm Liquidity

> Add two-sided liquidity to an AMM pool.

Meteora DAMM v2: pass position_address to add to that NFT position; omit it to open a new one.
Fungible-LP AMMs ignore position_address.



## OpenAPI

````yaml /api-reference/openapi.json post /gateway/amm/add-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/add-liquidity:
    post:
      tags:
        - Gateway AMM
      summary: Add Amm Liquidity
      description: >-
        Add two-sided liquidity to an AMM pool.


        Meteora DAMM v2: pass position_address to add to that NFT position; omit
        it to open a new one.

        Fungible-LP AMMs ignore position_address.
      operationId: add_amm_liquidity_gateway_amm_add_liquidity_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AMMAddLiquidityRequest'
        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:
    AMMAddLiquidityRequest:
      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
        base_token_amount:
          anyOf:
            - type: number
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Base Token Amount
          description: Amount of base token to add
        quote_token_amount:
          anyOf:
            - type: number
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Quote Token Amount
          description: Amount of quote token to add
        slippage_pct:
          anyOf:
            - type: number
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Slippage Pct
          description: >-
            Maximum slippage percentage; omit to use the connector's configured
            slippagePct
        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 add to (omit = new position)
      type: object
      required:
        - connector
        - network
        - pool_address
        - base_token_amount
        - quote_token_amount
      title: AMMAddLiquidityRequest
      description: Request to add two-sided liquidity to 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

````