sizing
Calculates optimal position sizes using the Kelly criterion for effective bankroll management in trading.
Install this skill
Security score
The sizing skill was audited on Feb 22, 2026 and we found 17 security issues across 1 threat category. Review the findings below before installing.
Categories Tested
Security Issues
Template literal with variable interpolation in command context
| 71 | console.log(`Optimal bet: $${size.optimalSize}`); |
Template literal with variable interpolation in command context
| 72 | console.log(`Edge: ${size.edge}%`); |
Template literal with variable interpolation in command context
| 73 | console.log(`Kelly %: ${size.kellyPercent}%`); |
Template literal with variable interpolation in command context
| 74 | console.log(`Expected value: $${size.expectedValue}`); |
Template literal with variable interpolation in command context
| 96 | console.log(`Full Kelly: $${sizing.kelly({...}).optimalSize}`); |
Template literal with variable interpolation in command context
| 97 | console.log(`Half Kelly: $${halfKelly.optimalSize}`); |
Template literal with variable interpolation in command context
| 98 | console.log(`Quarter Kelly: $${quarterKelly.optimalSize}`); |
Template literal with variable interpolation in command context
| 117 | console.log(`${alloc.name}: $${alloc.size} (${alloc.percent}%)`); |
Template literal with variable interpolation in command context
| 138 | console.log(` ${pos.market}: $${pos.size}`); |
Template literal with variable interpolation in command context
| 140 | console.log(`Total exposure: ${portfolio.totalExposure}%`); |
Template literal with variable interpolation in command context
| 155 | console.log(`Confidence-adjusted size: $${size.optimalSize}`); |
Template literal with variable interpolation in command context
| 167 | console.log(`Edge: ${edge.edgePercent}%`); |
Template literal with variable interpolation in command context
| 168 | console.log(`EV per dollar: $${edge.evPerDollar}`); |
Template literal with variable interpolation in command context
| 169 | console.log(`Implied odds: ${edge.impliedOdds}`); |
Template literal with variable interpolation in command context
| 170 | console.log(`True odds: ${edge.trueOdds}`); |
Template literal with variable interpolation in command context
| 183 | console.log(`Position size: $${size.positionSize}`); |
Template literal with variable interpolation in command context
| 184 | console.log(`Max loss: $${size.maxLoss}`); |
Install this skill with one command
/learn @alsk1992/sizing