Skip to main content

Limit Orders

Pendle's Limit Order system enables gasless, off-chain order creation with secure on-chain settlement. It allows users to place orders at specific implied APY rates, which are matched and settled through the Limit Order smart contract.

How It Works

  1. Makers create and sign limit orders off-chain (no gas required). Orders specify a desired implied APY rate and are stored on Pendle's backend.
  2. Takers query available orders via the API and fill them on-chain by calling the Limit Order contract.
  3. The Limit Order contract settles orders atomically, transferring tokens between makers and takers at the agreed rates.

Limit orders are also integrated into the Pendle Hosted SDK — when enabled, the SDK automatically includes limit order liquidity alongside AMM liquidity to improve execution prices, especially for large trades.

Order Types

Order TypeDescription
SY_FOR_PTSwap SY (or a supported token) for PT
PT_FOR_SYSwap PT for SY (or a supported token)
SY_FOR_YTSwap SY (or a supported token) for YT
YT_FOR_SYSwap YT for SY (or a supported token)

Sections

API Reference

  • Maker APIs — Generate order data, submit orders, view active orders
  • Taker APIs — Query available orders for filling