Skip to main content
Keeper instructions are permissionless operations that maintain protocol health.

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