executeLPRedeem
Execute LP redemption to withdraw liquidity from a pool position, returning an order number for tracking status. Requires prior position details and user confirmation.
Instructions
Execute LP redemption to withdraw liquidity from a pool position. Returns an order number that can be used to track redemption status.
Prerequisites (mandatory):
Call
getLPPositionListto get position details and positionIdDisplay redemption details (amount, expected tokens, fees) to user
Obtain explicit user confirmation
AI agent must obtain explicit user confirmation before calling this endpoint.
Response is an acknowledgment only — use getLPOrderList to confirm actual redemption.
On-chain confirmation and token transfer typically takes 10-60 seconds.
Do NOT call this endpoint directly without user approval.
Agent hint: Use this endpoint to execute LP redemption after getting user confirmation. Never call without user approval. Always call getLPPositionList first. dercRatio is the reduction ratio: "0.5" = 50% withdrawal, "1" = full withdrawal.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| positionId | Yes | ||
| poolAddress | Yes | ||
| dercRatio | Yes | ||
| receiveTokenCode | No |