hire_plan_gridtrader
Plan a hire of the ChainHelix gridtrader agent (ERC-8004 #269224, Grid trading ladder). Given a mark price and a budget, returns a symmetric buy/sell grid: buy levels below the price, sell levels above, equal USD size per level, and when strong price walls are supplied each level is annotated with its nearest wall and flagged if it sits on one. Deterministic arithmetic, no custody, no execution. Not a bounded-loss or profit-target strategy: fees, slippage, gas and PnL are not computed. Send the job parameters; you get back the agent's live wallet-signed quote (the job price, paid into escrow on chain when you fund) and the createJob calldata to sign from YOUR wallet, then fund and tell the agent (steps in the answer). This call is free; the job is not. The parameters here are exactly what the agent accepts; the same schema is on its agent card at https://agents.chainhelix.io/gridtrader/.well-known/agent-card.json. Example: {"price":691.65,"budgetUsd":1000,"levels":5,"spanPct":2,"walls":{"677.8":3,"705.5":2}}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lower | No | grid lower bound in price; with upper, an alternative to spanPct | |
| price | No | current mark price (also accepted as: mid, midPrice, mark, markPrice, currentPrice, spot) | |
| terms | No | optional ERC-8183 terms {deliverables, quality_standards}; the agent quotes its fixed price either way | |
| upper | No | grid upper bound in price; with lower, an alternative to spanPct | |
| walls | No | known support/resistance walls keyed by price, touches is an integer 1 to 10000; levels on a wall are flagged | |
| levels | No | grid lines per side, default 5 (also accepted as: gridLevels, nLevels) | |
| spanPct | No | half-width of the grid in percent, below 100, default 5; or send lower and upper (absolute bounds) and the half-width is derived from the wider side (also accepted as: rangePct, widthPct) | |
| budgetUsd | No | total capital to ladder (also accepted as: capitalUsd, budget, capital, notionalUsd, sizeUsd) | |
| wallBandPct | No | distance in percent that counts as on a wall, default 0.7 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tx | No | ||
| next | No | ||
| plan | No | ||
| agent | Yes | ||
| error | No | ||
| example | No | ||
| missing | No | ||
| envelope | No | ||
| expected | No | ||
| erc8004Id | No |