Impermanent Loss (Live)
workflow.run_impermanent_loss_liveLive variant of workflow.run_impermanent_loss: fetches each token's current live USD price (Solana or any of 5 EVM chains) and derives currentPrice as their ratio, instead of it being supplied manually. entryPrice stays a manual, historical input (a fact the caller must supply, not something a live quote should overwrite), same convention as every other live-capable tool in this product. Edge cases: same input rules as workflow.run_impermanent_loss, except currentPrice is derived from the live USD prices of the two tokens (each on solana, ethereum, base, bsc, arbitrum or polygon); if either price cannot be read, routable is false with an error and no figure is returned; entryPrice stays manual. Not covered: price moves inside the period, rebalancing, gas, tax, and thinly traded tokens whose quoted price is unreliable. Use when the caller has the pool's two token addresses but doesn't already know the current price ratio. Returns the same fields as workflow.run_impermanent_loss, plus currentPrice, baseSymbol, quoteSymbol, routable (false + error if either token's price can't be resolved).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"entryPrice": "<entryPrice>",
"baseMint": "<baseMint>",
"quoteMint": "<quoteMint>"
},
"name": "workflow.run_impermanent_loss_live"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Default full_range. | |
| baseMint | Yes | Address of the base token | |
| baseChain | No | Chain of the base (volatile) token. Default solana. | |
| quoteMint | Yes | Address of the quote token | |
| entryPrice | Yes | Base token's price in quote-token terms when liquidity was deposited (manual - a historical fact) | |
| lowerPrice | No | Range lower bound - required for concentrated mode | |
| quoteChain | No | Chain of the quote token. Default solana. | |
| upperPrice | No | Range upper bound - required for concentrated mode | |
| feesEarnedUsd | No | Optional trading fees earned so far in USD (default 0) | |
| depositValueUsd | No | Optional: USD value deposited at entry |