grid_plan
Calculate grid price levels with buy/sell sides and volumes for each level. Pure computation from grid type, range, investment, and current price, without side effects.
Instructions
Pure price-level calculation for a grid. No side-effects, no DB writes. Returns computed levels with price, side (buy/sell/null), and volume for each level.
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": {
"gridType": "<gridType>",
"priceMin": "<priceMin>",
"priceMax": "<priceMax>",
"levels": "<levels>",
"totalInvestment": "<totalInvestment>",
"pairDecimals": "<pairDecimals>",
"currentPrice": "<currentPrice>"
},
"name": "grid_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| levels | Yes | ||
| gridType | Yes | ||
| priceMax | Yes | Upper bound of the grid range (must be > priceMin) | |
| priceMin | Yes | Lower bound of the grid range (must be < priceMax) | |
| currentPrice | Yes | ||
| distribution | No | arithmetic | |
| pairDecimals | Yes | ||
| totalInvestment | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| levels | Yes |