api_finance_position_risk
Compute capital-constrained trade position sizing from user-defined entry, stop and maximum percent loss. One call costs 0.01 USDC on Base x402; customer-owned provider credentials use X-Provider-Key header where needed.
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": {
"capital": "<capital>",
"entry": "<entry>",
"stop": "<stop>",
"risk_percent": "<risk_percent>"
},
"name": "api_finance_position_risk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stop | Yes | Planned stop price | |
| entry | Yes | Assumed entry price | |
| capital | Yes | Trading capital in one currency | |
| lot_size | No | Position quantity increments, default 1 | |
| risk_percent | Yes | Maximum capital loss percentage |