npm.io
3.5.4 • Published yesterday

stake-math

Licence
MIT
Version
3.5.4
Deps
0
Size
7 kB
Vulns
0
Weekly
127
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

polymarket-stake-math

Kelly-criterion stake sizing for Polymarket Up/Down binary markets.

Install

npm install polymarket-stake-math

Usage

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

Keywords