Net risk/reward after fees
calculate_net_risk_rewardRead-onlyIdempotent
Compare gross and fee-adjusted reward-to-risk, loss and profit per unit, and breakeven win rate for a linear trade with known entry, stop and target. Accepts distinct entry/stop/target fee percentages. Use for questions about a planned R ratio or how fees change it. Direction is derived from entry and stop. Does not fetch venue fees or predict execution, liquidation, or trade outcomes.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fees | No | User-supplied rates. Omission explicitly assumes zero fees; no exchange rate lookup is performed. | |
| stopPrice | Yes | Planned stop price. Direction is derived from entry and stop. | |
| entryPrice | Yes | Planned entry price in quote currency per base unit. | |
| targetPrice | Yes | Profit target price, opposite the stop relative to entry. | |
| quoteCurrency | No | Currency shared by all monetary inputs. Defaults to USD; no currency conversion is performed. | |
| instrumentType | No | Linear quote-margined instruments only. Inverse contracts and liquidation are unsupported. |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| inputs | Yes | ||
| metrics | Yes | ||
| formulas | Yes | ||
| warnings | Yes | ||
| assumptions | Yes | ||
| reproduceUrl | Yes | ||
| documentationUrl | Yes | ||
| calculationVersion | Yes |