polymarket-stake-maths
v3.5.2
Published
Kelly stake sizing and decimal-safe rounding for Polymarket binary markets
Maintainers
Readme
polymarket-stake-math
Kelly-criterion stake sizing for Polymarket Up/Down binary markets.
Install
npm install polymarket-stake-mathUsage
const { computeKellyStake, formatStakeUsd, roundStake } = require('polymarket-stake-math');
const stake = computeKellyStake({
probability: 0.58,
allInPrice: 0.52,
bankroll: 500,
maxStake: 25,
minStake: 5,
kellyFraction: 0.5,
});Changelog
3.5.2
- Install-time peer dependency check
- Kelly helpers unchanged
3.5.1 – 3.1.0
See npm release history.
Licence
MIT
