Structs§
- Close
Position Instruction - Represents the instructions and quotes for closing a liquidity position.
- Create
Pool Instructions - Represents the instructions and metadata for creating a pool.
- Decrease
Limit Order Instruction - Decrease
Liquidity Instruction - Represents the instructions and quote for decreasing liquidity in a position.
- Harvest
Position Instruction - Represents the instructions and quotes for harvesting a position.
- Hydrated
Bundled Position - Represents a single bundled position within a
PositionBundleaccount. - Hydrated
Position - Represents a single Position account.
- Hydrated
Position Bundle - Represents a Position Bundle account, which includes multiple bundled positions.
- Increase
Limit Order Instruction - Increase
Liquidity Instruction - Represents the instructions and quote for increasing liquidity in a position.
- Open
Limit Order Instruction - Open
Position Instruction - Represents the instructions and quote for opening a liquidity position.
- Parsed
Token Account - Swap
Instructions - Represents the instructions and quote for executing a token swap.
Enums§
- Decrease
Liquidity Param - Represents the parameters for decreasing liquidity in a pool.
- Increase
Liquidity Param - Represents the parameters for increasing liquidity in a position.
- Native
Mint Wrapping Strategy - Defines the strategy for handling SOL wrapping in a transaction.
- Position
OrBundle - Represents either a standalone Position account or a Position Bundle account.
- Price
OrTick Index - Swap
Quote - Represents the quote for a swap operation.
- Swap
Type - Represents the type of a swap operation.
Constants§
- DEFAULT_
FUNDER - The default funder for the FusionPools program.
- DEFAULT_
NATIVE_ MINT_ WRAPPING_ STRATEGY - The default SOL wrapping strategy.
- DEFAULT_
SLIPPAGE_ TOLERANCE_ BPS - The default slippage tolerance, expressed in basis points. Value of 100 is equivalent to 1%.
Statics§
- FUNDER
- The currently selected funder for the FusionPools program.
- NATIVE_
MINT_ WRAPPING_ STRATEGY - The currently selected SOL wrapping strategy.
- SLIPPAGE_
TOLERANCE_ BPS - The currently selected slippage tolerance, expressed in basis points.
Functions§
- close_
limit_ order_ instructions - Generates instructions to close a limit order.
- close_
position_ instructions - Generates instructions to close a liquidity position.
- create_
fusion_ pool_ instructions - Creates the necessary instructions to initialize a Concentrated Liquidity Pool (CLMM).
- decrease_
limit_ order_ instructions - Generates instructions to decrease a limit order.
- decrease_
liquidity_ instructions - Generates instructions to decrease liquidity from an existing position.
- fetch_
fusion_ pool_ by_ token_ pair_ and_ tick_ spacing - Fetches the details of a specific Concentrated Liquidity Pool.
- fetch_
fusion_ pools_ by_ token_ pair - Fetches all possible liquidity pools between two token mints in fusion pools.
- fetch_
positions_ for_ owner - Fetches all positions owned by a given wallet in the FusionAMM pools.
- fetch_
positions_ in_ fusion_ pool - Fetches all positions associated with a specific FusionPool.
- get_
account_ data_ size - Get the size of the account data for a token account
- harvest_
position_ instructions - Generates instructions to harvest a position.
- increase_
limit_ order_ instructions - Increases a limit order. The limit order can’t be increased if it’s partially filled.
- increase_
liquidity_ instructions - Generates instructions to increase liquidity for an existing position.
- open_
full_ range_ position_ instructions - Opens a full-range position in a liquidity pool.
- open_
limit_ order_ instructions - Opens a limit order in a liquidity pool at a specific tick index.
- open_
position_ instructions - Opens a position in a liquidity pool within a specific price range.
- order_
mints - Orders two mint addresses by their canonical byte order.
- reset_
configuration - Resets the configuration to its default values.
- set_
funder - Sets the currently selected funder for the FusionPools program.
- set_
native_ mint_ wrapping_ strategy - Sets the currently selected SOL wrapping strategy.
- set_
slippage_ tolerance_ bps - Sets the currently selected slippage tolerance, expressed in basis points.
- swap_
instructions - Generates the instructions necessary to execute a token swap.