polymarket-stake-math
v3.5.1
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.
Changelog
3.5.1
- Peer dependency verification on install
- Recommended version for
>=3.0consumers
3.4.0 – 3.1.0
See prior releases on npm.
Install
npm install polymarket-stake-mathBot projects typically use:
"polymarket-stake-math": ">=3.0"API
const { computeKellyStake, formatStakeUsd, roundStake } = require('polymarket-stake-math');
computeKellyStake({
probability: 0.58,
allInPrice: 0.52,
bankroll: 500,
maxStake: 25,
minStake: 5,
kellyFraction: 0.5,
});Licence
MIT
