api_investment_return
Calculate deterministic stock, ETF and investment profit, fees, distributions and percentage return from user-provided assumptions; no market quotes or recommendations. 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": {
"entry_price": "<entry_price>",
"exit_price": "<exit_price>",
"shares": "<shares>"
},
"name": "api_investment_return"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shares | Yes | Number of shares, greater than zero | |
| exit_price | Yes | Assumed exit price per share, zero or greater | |
| total_fees | No | Combined entry and exit charges, default 0 | |
| entry_price | Yes | Assumed entry price per share, greater than zero | |
| distributions_total | No | Total received distributions or dividends, default 0 |