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

# Quote Pro Sell

> Get a sell quote for a pro pool.

Returns the estimated SOL output, fees, and minimum output after slippage. Requires the `pool` address.

Pass the full response to `/tx/pro/sell` to build the transaction.



## OpenAPI

````yaml /openapi.json post /quote/pro/sell
openapi: 3.1.0
info:
  title: heaven-tx-api
  description: ''
  license:
    name: ''
  version: 0.1.14
servers:
  - url: https://tx.api.heaven.xyz
security: []
tags:
  - name: heaven-api
    description: Heaven API
paths:
  /quote/pro/sell:
    post:
      tags:
        - Pro Pool API
      summary: Quote Pro Sell
      description: >-
        Get a sell quote for a pro pool.


        Returns the estimated SOL output, fees, and minimum output after
        slippage. Requires the `pool` address.


        Pass the full response to `/tx/pro/sell` to build the transaction.
      operationId: quote_pro_sell
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QuoteProSellRequest'
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QuoteSellResponse'
components:
  schemas:
    QuoteProSellRequest:
      type: object
      required:
        - config_version
        - mint
        - program_id
        - amount_in_ui
        - slippage_bps
        - pool
      properties:
        config_version:
          type: integer
          format: int32
          minimum: 0
          description: >-
            Protocol config version. Use 1 for community tokens, 2 for creator
            tokens, 3 for pro pools.
        mint:
          type: string
          description: Mint address of the SPL token (token A) in the pool.
        program_id:
          type: string
          description: >-
            Program ID of the Heaven DEX program. Use
            `HEAVENoP2qxoeuF8Dj2oT1GHEnu49U5mJYkdeC8BAX2o` for mainnet.
        amount_in_ui:
          type: number
          format: double
          description: >-
            Amount of tokens to sell in UI format (human-readable with
            decimals). For example, 1000.5 for a 9-decimal token means
            1000500000000 native units.
        slippage_bps:
          type: integer
          format: int64
          minimum: 0
          description: >-
            Maximum acceptable slippage in basis points. 50 = 0.5%. Set to 0 for
            no slippage tolerance.
        pool:
          type: string
          description: >-
            On-chain address of the pro pool state account. Returned in the
            response when creating a pool.
      description: >-
        Request a sell quote for a pro pool. Returns the estimated SOL output
        and fee breakdown.
    QuoteSellResponse:
      type: object
      required:
        - amount_in
        - amount_in_ui
        - minimum_out
        - minimum_out_ui
        - config_version
        - mint
        - program_id
        - slippage_bps
      properties:
        amount_in:
          type: integer
          format: int64
          minimum: 0
          description: Amount of tokens to sell (native units).
        amount_in_ui:
          type: number
          format: double
          description: Amount of tokens to sell (human-readable with decimals).
        config_version:
          type: integer
          format: int32
          minimum: 0
          description: Protocol config version used for the quote.
        minimum_out:
          type: integer
          format: int64
          minimum: 0
          description: Minimum SOL output after slippage (lamports).
        minimum_out_ui:
          type: number
          format: double
          description: Minimum SOL output after slippage (human-readable).
        mint:
          type: string
          description: Mint address of the token being sold.
        program_id:
          type: string
          description: Heaven DEX program ID used.
        slippage_bps:
          type: integer
          format: int64
          minimum: 0
          description: Slippage tolerance applied (basis points).

````