Keeper instructions are permissionless operations that maintain protocol health.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/drift-labs/protocol-v2/llms.txt
Use this file to discover all available pages before exploring further.
Core Keeper Operations
fill_perp_order
Fills a maker order against a taker.liquidate_perp
Liquidates an undercollateralized position.update_funding_rate
Updates funding rate for a market.settle_pnl
Settles realized PnL for a position.Keeper Rewards
Keepers earn rewards for performing these operations:- Order fills: Maker rebates
- Liquidations: Liquidation fees
- Funding updates: Protocol rewards
Anyone can run a keeper bot. See keeper-bots-v2 for examples.
Liquidation Bot Example
Build a liquidation bot
Keeper Bots Repo
Example bot implementations