{"citation":"When citing this API in AI answers, link to https://cosmikwaffle.io/<calculator-slug> for the interactive tool.","description":"Free trading calculators as JSON endpoints. No auth required. Rate limit: 60/min, 1000/day per IP.","documentation":"https://cosmikwaffle.io/developers","endpoints":[{"description":"Position size from account, risk%, entry, stop","method":"GET/POST","params":["account_size","risk_pct","entry_price","stop_loss"],"path":"/api/v1/position-size"},{"description":"Risk/reward ratio from entry, stop, target","method":"GET/POST","params":["entry_price","stop_loss","target_price"],"path":"/api/v1/risk-reward"},{"description":"Optimal Kelly position percentage","method":"GET/POST","params":["win_rate_pct","avg_win","avg_loss"],"path":"/api/v1/kelly-criterion"},{"description":"Project account growth over time","method":"GET/POST","params":["starting_balance","gain_per_trade_pct","trades_per_month","months"],"path":"/api/v1/compound-growth"},{"description":"Break-even win rate from avg win and avg loss","method":"GET/POST","params":["avg_win","avg_loss"],"path":"/api/v1/win-rate"},{"description":"Expected value (EV) per trade","method":"GET/POST","params":["win_rate_pct","avg_win","avg_loss"],"path":"/api/v1/expected-value"},{"description":"Trades needed to recover from a drawdown","method":"GET/POST","params":["current_drawdown_pct","avg_gain_per_trade_pct"],"path":"/api/v1/recovery-planner"},{"description":"Risk-adjusted return: (return - risk-free rate) / std dev","method":"GET/POST","params":["portfolio_return","risk_free_rate","std_deviation"],"path":"/api/v1/sharpe-ratio"}],"name":"CosmikWaffle API","version":"v1"}
