Position calculation
prepare_tradeNeeds an API key. Call when a user supplies levels and wants position sizing without placing an order. Returns position quantity, notional and optional gross reward to risk from user supplied levels and an evidence packet, without placing or signing an order.
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": {
"symbol": "<symbol>",
"direction": "<direction>",
"entry": "<entry>",
"invalidation": "<invalidation>",
"risk_usd": "<risk_usd>"
},
"name": "prepare_trade"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entry | Yes | ||
| symbol | Yes | ||
| target | No | ||
| risk_usd | Yes | ||
| direction | Yes | ||
| invalidation | Yes |