stocktoken_execute_plan
Build an unsigned swap plan on chain 4663. Picks the executable venue with the higher amountOut (v4, v3, 0x, or Uniswap API). Steps are an ETH fee of about 10 bps, token approve, and the swap. v4 also adds a Permit2 approval. Does NOT sign or broadcast. Pro required. The user signs. A v4 plan expires 30 minutes after it is built.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | 0x wallet on chain 4663 that will sign. Not an API key. | |
| tokenIn | Yes | Registry symbol or address, usually USDG | |
| amountIn | No | Raw amount in. One of amountIn or amountInHuman is required. | |
| tokenOut | Yes | Registry symbol or address, e.g. NVDA | |
| sessionId | No | Existing session id, if one was created | |
| approveMax | No | Unlimited allowance. Leave false. | |
| notionalUsd | No | USD notional for the policy check | |
| slippageBps | No | Slippage in basis points. Default 50. | |
| amountInHuman | No | Human amount, e.g. "10" |