calculate_impermanent_loss
Calculate impermanent loss for a liquidity provider position by specifying token pair, expected price change, and optional initial value to see estimated USD impact.
Instructions
Calculate impermanent loss for liquidity provider positions
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token_a | Yes | First token in LP pair | |
| token_b | Yes | Second token in LP pair | |
| price_change_pct | Yes | Percentage price change of token_a relative to token_b (e.g., 50 for 50% increase) | |
| initial_value_usd | No | Initial position value in USD (optional) |