finance position size
finance_position_sizePosition sizing from risk: give account size, the percent you are willing to lose, entry and stop, and get the units to buy or short, notional, margin at your leverage, and the exact loss at the stop including fees. Add a target for reward-to-risk and the breakeven win rate, and a win rate for the Kelly fraction and whether your risk is above it. Works for stocks, crypto, perps and forex. $0.002. Costs $0.002 USDC per call (x402).
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": {
"account": "<account>",
"entry": "<entry>",
"stop": "<stop>"
},
"name": "finance_position_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stop | Yes | ||
| entry | Yes | ||
| target | No | ||
| account | Yes | ||
| leverage | No | ||
| win_rate | No | % of trades that hit target | |
| fee_percent | No | per side | |
| risk_percent | No | default 1 |