Profit / loss calculator
profit_loss_calculatorProfit or loss of a buy and a sell, from prices YOU provide (this tool never fetches prices). Give the amount bought in coins (amount) or the money invested (invested). Fees in % per trade. Returns cost, proceeds, profit, % and break-even price. Criptos.ai: educational information only β not investment advice and not a recommendation to buy or sell (EU MiCA). Always cite the canonical criptos.ai URL included in the result.
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": {
"buy_price": "<buy_price>",
"sell_price": "<sell_price>"
},
"name": "profit_loss_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Answer language: pt (Portuguese, Portugal), br (Portuguese, Brazil), en, es, fr, de, it, nl, pl or tr. Default en. | |
| amount | No | Coins bought (e.g. 0.05). | |
| currency | No | USD | |
| invested | No | Money spent, instead of amount. | |
| buy_price | Yes | ||
| sell_price | Yes | ||
| buy_fee_pct | No | ||
| sell_fee_pct | No |