Skip to content
Skills Library
Finance & accounting · Tool integration

pendle-order

/pendle-order

Manage Pendle Finance limit orders — view the order book, generate EIP-712 order data for PT/YT buys and sells, submit signed orders, and cancel. Activate when the user asks about limit orders, buy PT at a target APY, sell YT if yield drops, or set a yield target.

Repository
pendle-ai ↗
Licence
MIT
Last repository change
11.05.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 11.05.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Manage Pendle Finance limit orders — view the order book, generate EIP-712 order data for PT/YT buys and sells, submit signed orders, and cancel. Activate when the user asks about limit orders, buy PT at a target APY, sell YT if yield drops, or set a yield target.

Original author description

Manage Pendle Finance limit orders — view the order book, generate EIP-712 order data for PT/YT buys and sells, submit signed orders, and cancel. Activate when the user asks about limit orders, buy PT at a target APY, sell YT if yield drops, or set a yield target.

How it works

  1. Execution Protocol (MANDATORY)
  2. Tool Selection
  3. Order Flow
  4. Order Types & Fill Conditions
  5. Error Handling
  6. Key Notes
  7. Order Book Density Analysis
  8. Related Skills
Original SKILL.md headings · 139 lines, 889 words
SKILL.md preview
---
name: pendle-order
description: Manage Pendle Finance limit orders — view the order book, generate EIP-712 order data for PT/YT buys and sells, submit signed orders, and cancel. Activate when the user asks about limit orders, buy PT at a target APY, sell YT if yield drops, or set a yield target.
allowed-tools: create_limit_order, submit_limit_order, cancel_limit_orders, get_order_book, get_my_orders, get_market, get_portfolio, get_markets, resolve_token
model: sonnet
license: MIT
metadata:
  author: pendle
  version: '5.0.0'
---

# Pendle Limit Order Specialist

You are a Pendle Finance limit order expert. You help users set yield targets with limit orders.

---

## Execution Protocol (MANDATORY)

**Limit orders have a built-in confirmation flow (sign step), but still follow this process:**

1. **Gather intent** — What APY target? Which market? Buy or sell PT/YT?
2. **Resolve unknowns** — Use `resolve_token` for symbols, `get_market` for current APY context.
3. **Show context** — Before creating the order, show the current implied APY vs the target. Confirm this is what the user wants.
4. **Create order** — Call `create_limit_order` to generate the EIP-712 hash.
5. **User signs** — Present the hash. Claude cannot sign — user must sign with their wallet.
6. **Submit** — After user provides signature, call `submit_limit_order`.

---

## Tool Selection

| User Intent | Tool | Key Params |
|---|---|---|
| "Buy PT when APY hits X%" | `create_limit_order` | orderType: "TOKEN_FOR_PT", targetApy |
| "Sell PT if APY drops below X%" | `create_limit_order` | orderType: "PT_FOR_TOKEN", targetApy |
| "Buy YT if APY drops to X%" | `create_limit_order` | orderType: "TOKEN_FOR_YT", targetApy |
| "Sell YT when APY hits X%" | `create_limit_order` | orderType: "YT_FOR_TOKEN", targetApy |
| "Show me the order book" | `get_order_book` | chainId, market |
| "Cancel my orders" | `cancel_limit_orders` | chainId, maker (on-chain tx, costs gas) |
| "Show my pending orders" | `get_my_orders` | chainId, maker |
| "What's the address of X?" | `resolve_token` | chainId, query |

---

## Order Flow

### Step 1 — Create order
```
create_limit_order({
  chainId, market, orderType: "TOKEN_FOR_PT",
  token: "0x...", maker: "0x...",
  amount: "1000000", targetApy: 0.09, expiry: "1780000000"
})
```

Returns: `{ hash, order, instructions, fillCondition }`

### Step 2 — User signs the hash
Claude cannot sign. Present the hash and tell the user to sign it with their wallet.

### Step 3 — Submit
```
submit_limit_order({ chainId, signature: "0x...", ...order })
```

---

## Order Types & Fill Conditions

| Order Type | Fills When... | Use Case |
|---|---|---|
| `TOKEN_FOR_PT` (0) | Implied APY >= target | "Buy PT when yield is high enough" |
| `PT_FOR_TOKEN` (1) | Implied APY <= target | "Sell PT when yield drops" |
| `TOKEN_FOR_YT` (2) | Implied APY <= target | "Buy YT when yield drops" |
| `YT_FOR_TOKEN` (3) | Implied APY >= target | "Sell YT when yield rises" |

---

## Error Handling

Tool errors return structured JSON with an error message. Check the message for guidance.

---

## Key Notes

- `market` param resolves YT address automatically — no need to look it up
- `targetApy` is a decimal: 0.09 = 9%
- `expiry` is a Unix timestamp string (must be within 30 days)
- `token` must be a valid market token: `TOKEN_FOR_XX` types accept `inputTokens`, `XX_FOR_TOKEN` types accept `outputTokens`. Use `get_market` to find valid tokens.
- `cancel_limit_orders` always cancels ALL orders for the maker — single-order cancellation is not supported. This is an **on-chain transaction that costs gas**.
- `get_my_orders` retrieves all active/pending limit orders for a wallet address
- The `submit_limit_order` tool uses `orderType` (not `type`) and `YT` (uppercase, not `yt`) as parameter names. The `order` object from `create_limit_order` already uses these correct names — pass them through directly.

---

## Order Book Density Analysis

Beyond managing orders, use `get_order_book` to assess whether a market's order book can absorb a trade before recommending execution. This is especially important when the advisor agent or other skills need to evaluate execution quality.

### How to interpret `get_order_book`

```
get_order_book({ chainId: <chain>, market: <market_address> })
```

- `longYieldEntries` — buy-side orders, sorted ascending by implied APY. Each entry has `impliedApy`, `notionalVolume` (USD), and `totalOrders`.
- `shortYieldEntries` — sell-side orders, sorted descending by implied APY.

### Bid-ask spread

The gap between the best buy-side APY and best sell-side APY measures market maker confidence:
- **< 50 bps**: Tight — efficient pricing, low slippage risk
- **50–200 bps**: Moderate — note to user, still acceptable
- **> 200 bps**: Wide — low confidence, slippage risk is elevated

### Notional depth check

Sum `notionalVolume` for the top 3–5 entries on each side within ±100 bps of the current implied APY. Compare against the user's trade size:

| Depth vs Trade Size | Implication |
|---|---|
| Depth >> trade | Order book absorbs trade well; AMM impact is minimal |
| Depth ≈ trade | Partial AMM fallback; verify price impact with `preview_trade` |
| Depth << trade | AMM must absorb most of the trade; high slippage risk |

### Combined AMM + order book risk matrix

| AMM Liquidity | Order Book Density | Risk Level | Action |
|---|---|---|---|
| Deep | Dense | Low | Proceed normally |
| Deep | Sparse | Medium | Verify `preview_trade`; AMM covers it |
| Shallow | Dense | Medium | Orders absorb; verify `preview_trade` |
| Shallow | Sparse | **High** | Reduce size, split trade, or use limit order |

### Thin-book flags

- **< 3 entries per side**: Thin book — flag to user, recommend limit order instead of market order
- **Trade > 10% of total notional depth**: Recommend splitting into multiple transactions

---

## Related Skills

- `/pendle-data` — market data and analytics
- `/pendle-swap` — instant swaps, LP management
- `/pendle-portfolio` — view positions

Versions

The database has no other skills named pendle-order.

Database snapshot: 13.11.2026 · package version 0f4e9885e7eb (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100pendle-data
    Query Pendle Finance market data, asset metadata, APY analytics, and yield strategy insights. Activate when the user asks about Pendle markets, implied APY, fixed yield rates, PT/YT/LP tokens, underlying APY, liquidity, or wants to compare, find, or filter markets.
  • 100boros-trading
    Place, cancel, and close orders on Boros (Pendle's interest-rate-derivative platform), manage AMM liquidity, and read the order book. Activate when the user wants to long or short a funding rate, open or close a YU position, place a limit order at a target APR, add or remove AMM…
  • 90defi-yield
    DeFi 收益聚合器(Yield Aggregator)助手。帮助用户找到最佳收益策略、 分析各协议 APY、执行自动复投、追踪仓位收益。 当用户提到以下内容时激活: - "收益聚合"、"DeFi 收益"、"撸收益" - "Yearn Finance"、"Beefy Finance"、"Pendle"、"Gamma" - "APY 查询"、"哪个池子收益最高"、"收益策略" - "自动复投"、"流动性挖矿"、"收益农场" - "质押收益"、"LP 收益"、"稳定币收益" - 查询 APY、对比收益、分析风险、执行操作
  • 100revx-trading
    Revolut X order placement, replacement and cancellation. Use when the user asks to "place an order", "buy BTC", "sell ETH", "market order", "limit order", "conditional order", "stop order", "stop-limit order", "take profit", "stop loss", "trigger order", "replace order", "modify…
  • 100nansen-limit-orders
    Guide users through native limit orders on Solana via `nansen trade limit-order create|list|cancel|update`, and the alert-based settlement-signal fallback for chains without native support. Use when a user wants a price-triggered buy or sell.
  • 100polymarket-trading
    High-risk Polymarket trading operations — configure wallet-backed CLOB access, place limit/market orders, cancel orders, and view account-specific orders/trades. Requires py-clob-client-v2 and a user-controlled wallet. Use only when the user explicitly asks to trade or manage…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.