calculate_trading_profit
Calculate profit or loss for a currency trading chain, showing step-by-step conversion rates so you can test strategies and validate arbitrage opportunities before executing trades.
Instructions
Calculate the profit/loss from a specific trading chain. Useful for testing your own trading strategies or validating arbitrage opportunities before executing them. Shows step-by-step conversion rates. IMPORTANT: Use the EXACT league name the user specifies - do not substitute or guess.
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": {
"league": "<league>",
"currency_chain": "<currency_chain>"
},
"name": "calculate_trading_profit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| league | Yes | EXACT league name as specified by user (e.g., 'Standard', 'Settlers', 'Keepers', 'Hardcore'). Do not substitute or change this value. | |
| start_amount | No | Amount of first currency to start with (default: 1) | |
| currency_chain | Yes | Array of currency names in trading order (e.g., ['Divine Orb', 'Chaos Orb', 'Exalted Orb', 'Divine Orb']) |