[ DOCS ]

DLMM Pro limit orders in one page

DLMM Pro is Meteora's concentrated-liquidity AMM with limit orders built into its tick book. DLMM Feepad paints those orders as ladders.

What an order is

An order is placed with open_limit_order: 1 to 25 ticks of one pool, all on one side. Asks sit strictly above the current tick and sell token X. Bids sit at or below it and buy token X with token Y. The order is an account owned by an NFT; whoever holds the NFT owns the order.

current tickask: sells X abovebid: buys X below
An ask and a bid on the same pool. The dashed line is the current tick.

Where it fills

Inside swaps. When a swap moves the price through a tick that holds orders, the orders on that tick fill at the tick's exact price, in pro-rata batches by age. The swap itself executes your order, so there is nothing to race and no fill arrives after the fact.

Relative orders give offsets from the spacing-aligned current tick instead of absolute ticks, with a band. If the price moved before your transaction lands, the order is placed relative to the new tick, or refused if the tick left the band.

What it earns

In each swap step the fee is split between LP liquidity and orders by what each filled. Of the orders' part, 50% goes to Meteora and 50% to the makers. Through this site, 20% of the maker share goes to the platform at cancel, so a maker keeps 40% of the pool fee on the volume their ticks fill. On a 0.8% pool that is 0.32% of the filled volume, on a 1.5% pool 0.6%.

Open, cancel, close

InstructionWhoWhat happens
open_limit_orderownerdeposits the token, creates the order account and its NFT
cancel_limit_orderowner or delegatewithdraws filled proceeds, unfilled amounts and the maker share for the chosen ticks
close_limit_orderownercloses the empty order and returns its rent