TradeOutcome API
## TradeOutcome API The calculation engine for crypto trading tools. Embed professional-grade PnL, fee breakdown, liquidation price, and risk-reward ratio into your app or bot — with zero latency since it's pure math, no exchange calls needed. ### Core Features - **Fee Breakdown** — Taker/maker fees + funding rate + slippage, all exchange-specific - **PnL Calculator** — Net profit/loss after all…
TradeOutcome API endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET |
/health /health |
|
| POST |
/calc/fees /calc/fees |
Breaks down all costs — taker/maker fees, funding rate, and slippage for a given trade. |
| POST |
/calc/pnl /calc/pnl |
Calculates net profit or loss including fees, funding, and slippage. Requires PRO plan. |
| POST |
/calc/liquidation /calc/liquidation |
Estimates the liquidation price based on leverage, margin, and maintenance margin rate. Requires PRO plan. |
| POST |
/calc/risk-reward /calc/risk-reward |
Calculates R:R ratio with optional position sizing suggestion. Requires PRO plan. |
| POST |
/calc/batch /calc/batch |
Submit multiple calculations of mixed types in one request. Requires ULTRA plan. |