> For the complete documentation index, see [llms.txt](https://docs.agentipy.fun/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.agentipy.fun/tools/create-meteora-dlmm-pool.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
