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…
от jiayaoqijia★ 81 звезда на GitHubОб этом скилле
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:
- Gather intent — What APY target? Which market? Buy or sell PT/YT?
- Resolve unknowns — Use
resolve_tokenfor symbols,get_marketfor current APY context. - Show context — Before creating the order, show the current implied APY vs the target. Confirm this is what the user wants.
- Create order — Call
create_limit_orderto generate the EIP-712 hash. - User signs — Present the hash. Claude cannot sign — user must sign with their wallet.
- 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
marketparam resolves YT address automatically — no need to look it uptargetApyis a decimal: 0.09 = 9%expiryis a Unix timestamp string (must be within 30 days)tokenmust be a valid market token:TOKEN_FOR_XXtypes acceptinputTokens,XX_FOR_TOKENtypes acceptoutputTokens. Useget_marketto find valid tokens.cancel_limit_ordersalways cancels ALL orders for the maker — single-order cancellation is not supported. This is an on-chain transaction that costs gas.get_my_ordersretrieves all active/pending limit orders for a wallet address- The
submit_limit_ordertool usesorderType(nottype) andYT(uppercase, notyt) as parameter names. Theorderobject fromcreate_limit_orderalready 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 hasimpliedApy,notionalVolume(USD), andtotalOrders.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 | Medi |
Установить pendle-order в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
create_limit_ordersubmit_limit_ordercancel_limit_ordersget_order_bookget_my_ordersget_marketget_portfolioget_marketsresolve_tokenВложенные файлы
FAQ
Что делает скилл 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.
Как установить скилл pendle-order?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pendle-order запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic