# Create Meteora DLMM Pool

The `Create Meteora DLMM Pool` tool, part of AgentiPy, is designed for creating Dynamic Liquidity Market Maker (DLMM) pools on the Meteora platform, which operates on the Solana blockchain. It allows for the setup of customizable, permissionless liquidity pools.

## Functionality

This tool is implemented in the `MeteoraManager` class.

### Key Methods:

* `create_meteora_dlmm_pool(agent: SolanaAgentKit, bin_step: int, token_a_mint: PublicKey, token_b_mint: PublicKey, initial_price: float, price_rounding_up: bool, fee_bps: int, activation_type: ActivationType, has_alpha_vault: bool, activation_point: Optional[int]) -> str`:
  * Takes `SolanaAgentKit` instance, pool configuration parameters like `bin_step`, mint addresses for `token_a_mint` and `token_b_mint`, `initial_price` for the pool, `fee_bps` (basis points), `activation_type` (Timestamp or Slot), and other Meteora-specific parameters.
  * It fetches mint information for both tokens to determine decimals.
  * Calculates the initial price per lamport and the activation bin ID based on the inputs.
  * Uses `DLMM.create_customizable_permissionless_lb_pair` from AgentiPy's Meteora DLMM utilities to construct the transaction for creating the pool.
  * Sends and confirms the transaction using the agent's wallet.
  * Returns the transaction signature as a string.

##

**Note:** This tool is for advanced users familiar with DeFi concepts, liquidity pools, and the Meteora DLMM protocol. Incorrect parameters can lead to pool misconfiguration or loss of funds. Always test extensively on a devnet environment first. Refer to the official Meteora documentation for details on parameters like `bin_step`, `fee_bps`, and activation conditions.

## Source Code

You can find the source code for this tool on GitHub: <https://github.com/niceberginc/agentipy/blob/main/agentipy/tools/create_meteora_dlmm_pool.py>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.agentipy.fun/tools/create-meteora-dlmm-pool.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
