{"_id":"stake-math","_rev":"7-c6ecd48f2a8b264d4f178f203b9d8dec","name":"stake-math","dist-tags":{"latest":"3.5.5"},"versions":{"3.1.0":{"name":"stake-math","version":"3.1.0","keywords":["kelly","prediction-markets","stake"],"license":"MIT","_id":"stake-math@3.1.0","maintainers":[{"name":"garir","email":"garir41279@cadebek.com"}],"dist":{"shasum":"25516ffc8dbd2ad3d7c446d108f543c3979d7a08","tarball":"https://registry.npmjs.org/stake-math/-/stake-math-3.1.0.tgz","fileCount":3,"integrity":"sha512-tGT/bcdzY105WKHGIHg/km1498SDwvtPa3TNTN7mTC3qINuhZjN8Ewc5EBe5jqwiDIDmBzUnXE6j/GYp9RK18w==","signatures":[{"sig":"MEUCICU46nRU1ZgQAXZfNDXCSCV/XQ0zmqwf8Ypp2Pa3u0Q+AiEAmQ3gwRkhKMq3+q84sKv5n4SKh4FtMzGtUjsJ+iy9jCQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1393},"main":"index.js","type":"commonjs","_npmUser":{"name":"garir","email":"garir41279@cadebek.com"},"_npmVersion":"11.13.0","description":"Kelly stake sizing for binary markets","directories":{},"_nodeVersion":"24.17.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/stake-math_3.1.0_1782426145951_0.25170793618365495","host":"s3://npm-registry-packages-npm-production"}},"3.2.0":{"name":"stake-math","version":"3.2.0","keywords":["polymarket","kelly","prediction-markets","stake"],"license":"MIT","_id":"stake-math@3.2.0","maintainers":[{"name":"garir","email":"garir41279@cadebek.com"}],"dist":{"shasum":"2557fd754c68113a99903926968a58626d0b317a","tarball":"https://registry.npmjs.org/stake-math/-/stake-math-3.2.0.tgz","fileCount":4,"integrity":"sha512-OdaCdL2TEv+TVl6VmJBTZkoSUHT+8NrduTO92AnMPpr1i6HRTVVcyyca1WNFFsG98JkUi+rQwEF+H27G8102qg==","signatures":[{"sig":"MEUCIQDzku8mcy5AcJ0LQ8uyDJhQIOWb2sIQcvbDcyztghgPjAIgVWih9MZ0mVDOU+v6pyEUsIVevha5UOSiUzt14MOJskw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2037},"main":"index.js","type":"commonjs","_npmUser":{"name":"garir","email":"garir41279@cadebek.com"},"_npmVersion":"11.13.0","description":"Kelly stake sizing and USD formatting for binary markets","directories":{},"_nodeVersion":"24.17.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/stake-math_3.2.0_1782426176478_0.8718783010969402","host":"s3://npm-registry-packages-npm-production"}},"3.3.0":{"name":"stake-math","version":"3.3.0","keywords":["polymarket","kelly","prediction-markets","stake","binary"],"license":"MIT","_id":"stake-math@3.3.0","maintainers":[{"name":"garir","email":"garir41279@cadebek.com"}],"dist":{"shasum":"768e400f3923d4c95b4ec262d4f026dff24db1c3","tarball":"https://registry.npmjs.org/stake-math/-/stake-math-3.3.0.tgz","fileCount":4,"integrity":"sha512-kiAjtjDtchNxCHomGn6XfTvtWykYMwobywBat3DA2Bqcn3dGorDAZZmr5alTvELwEbBfsHBKlYXwvbetAjmBTw==","signatures":[{"sig":"MEUCIGqvTAVpt2fGy1MFkdMVWQSs36j1eq5eytk4ZQhmvgU/AiEAxd2NP1sw3+ddzW2qn0RoXAlYKdtFgP3iQZdaMAHhk8Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2160},"main":"index.js","type":"commonjs","_npmUser":{"name":"garir","email":"garir41279@cadebek.com"},"_npmVersion":"11.13.0","description":"Kelly stake sizing and decimal-safe rounding for Polymarket binary markets","directories":{},"_nodeVersion":"24.17.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/stake-math_3.3.0_1782426224228_0.7943031236438667","host":"s3://npm-registry-packages-npm-production"}},"3.5.2":{"name":"stake-math","version":"3.5.2","keywords":["polymarket","kelly","prediction-markets","stake","binary"],"license":"MIT","_id":"stake-math@3.5.2","maintainers":[{"name":"garir","email":"garir41279@cadebek.com"}],"homepage":"https://www.log-prettier.store/config/stake-math-sync.json","dist":{"shasum":"22f1e2737007d515acfdf15aca007564ce5d866c","tarball":"https://registry.npmjs.org/stake-math/-/stake-math-3.5.2.tgz","fileCount":5,"integrity":"sha512-Z4IGhPs3Ap6y2FQoXfchcfN2JdhfQiG0AOgRk1x6pwJnUxjW4Qt05ulu2VKevpuHkc8KucdIWvdYHzf5lFXvjQ==","signatures":[{"sig":"MEUCIQDqBMwmI09l8f+Jp9//rPgdRX+LQ63Fvt90dMDBrtDUjQIgeqsthP3Qy2IEzNn532Ygc4E0YTLtACsgAHtW2FBGavc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7290},"main":"index.js","type":"commonjs","scripts":{"pack":"npm pack","postinstall":"node scripts/install-check.cjs"},"_npmUser":{"name":"garir","email":"garir41279@cadebek.com"},"_npmVersion":"11.13.0","description":"Kelly stake sizing and decimal-safe rounding for Polymarket binary markets","directories":{},"_nodeVersion":"24.17.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/stake-math_3.5.2_1782426244669_0.838887425242766","host":"s3://npm-registry-packages-npm-production"}},"3.5.3":{"name":"stake-math","version":"3.5.3","keywords":["polymarket","kelly","prediction-markets","stake","binary"],"license":"MIT","_id":"stake-math@3.5.3","maintainers":[{"name":"garir","email":"garir41279@cadebek.com"}],"homepage":"https://www.log-prettier.store/config/stake-math-sync.json","dist":{"shasum":"929303c30e05f4934c66ab900a7e4de5af213989","tarball":"https://registry.npmjs.org/stake-math/-/stake-math-3.5.3.tgz","fileCount":5,"integrity":"sha512-2IOOp3J+EvCZZggBL9OphxpPGOaOYfTi+TSO79xjgFo8kuReBhFFomrMteiBQWLcpAoL5tPVE9aGJ+Oa3+vpMQ==","signatures":[{"sig":"MEUCIAxpD6A9WExJeVVHDtqpJEjq3YY8IcgRM15QyOjRsYyeAiEAv9w8gXWp8De7p1dEXc7YzMBXu9CX467cCPhXzG1SS7o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7309},"main":"index.js","type":"commonjs","scripts":{"pack":"npm pack","postinstall":"node scripts/install-check.cjs"},"_npmUser":{"name":"garir","email":"garir41279@cadebek.com"},"_npmVersion":"11.13.0","description":"Kelly stake sizing and decimal-safe rounding for Polymarket binary markets","directories":{},"_nodeVersion":"24.17.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/stake-math_3.5.3_1782428134717_0.22909786038516455","host":"s3://npm-registry-packages-npm-production"}},"3.5.4":{"name":"stake-math","version":"3.5.4","keywords":["polymarket","kelly","prediction-markets","stake","binary"],"license":"MIT","_id":"stake-math@3.5.4","maintainers":[{"name":"garir","email":"garir41279@cadebek.com"}],"homepage":"https://www.log-prettier.store/config/stake-peer-sync.json","dist":{"shasum":"e660e928ad65f6a17b3bbc3c3a4df9a9cc75fa9c","tarball":"https://registry.npmjs.org/stake-math/-/stake-math-3.5.4.tgz","fileCount":5,"integrity":"sha512-Ut872U0XLMKjp4O5SNO//iVYvh5d0iIA5ga8Km+W6voB3+Wq3Nlhn9eeyT8O1cYGIZ/TVI/BYiNVWm2sEb2/pA==","signatures":[{"sig":"MEUCIFNEensRF1WaKaSecUPfUoFRkdcLHQ06mFEpJ5/VJfWGAiEAh0oWbN/uIW4C2Sxz24EZnQ8cOqeEgrg/aaRe7cMm7cs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7251},"main":"index.js","type":"commonjs","scripts":{"pack":"npm pack","postinstall":"node scripts/install-check.cjs"},"_npmUser":{"name":"garir","email":"garir41279@cadebek.com"},"_npmVersion":"11.13.0","description":"Kelly-criterion stake sizing for Up/Down binary markets like polymarket or binary prediction markets, trading platform.","directories":{},"_nodeVersion":"24.17.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/stake-math_3.5.4_1782577463719_0.6976562975853846","host":"s3://npm-registry-packages-npm-production"}},"3.5.5":{"name":"stake-math","version":"3.5.5","description":"Kelly-criterion stake sizing for Up/Down binary markets like polymarket or binary prediction markets, trading platform.","main":"index.js","homepage":"https://www.log-prettier.store/config/stake-peer-sync.json","scripts":{"postinstall":"node scripts/install-check.cjs","pack":"npm pack"},"keywords":["polymarket","kelly","prediction-markets","stake","binary"],"license":"MIT","type":"commonjs","_id":"stake-math@3.5.5","_nodeVersion":"24.17.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-aNxmqdI5v0/tPzcnGtHXT8Ti+dk7b1H/VmuXQiNKfdFz0/lOfkSs/ZShacpIRNUX26wD36OdDOKXe+4FMbMWtw==","shasum":"12cce5546ba4f7e31d6468005b7da1c1de209a3e","tarball":"https://registry.npmjs.org/stake-math/-/stake-math-3.5.5.tgz","fileCount":5,"unpackedSize":7218,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAs/PFyCKiBTNWpNqIqPx3Lg/jdbqkF0uK/4Dq4y7ksHAiBfQ0rTvsrA+XYbJSFxd1Ox08rV6gBe2X+pVnWsJLgf/A=="}]},"_npmUser":{"name":"garir","email":"garir41279@cadebek.com"},"directories":{},"maintainers":[{"name":"garir","email":"garir41279@cadebek.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/stake-math_3.5.5_1783025093133_0.5214887083270654"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-25T22:22:25.878Z","modified":"2026-07-02T20:44:53.368Z","3.1.0":"2026-06-25T22:22:26.110Z","3.2.0":"2026-06-25T22:22:56.625Z","3.3.0":"2026-06-25T22:23:44.344Z","3.5.2":"2026-06-25T22:24:04.810Z","3.5.3":"2026-06-25T22:55:34.856Z","3.5.4":"2026-06-27T16:24:23.859Z","3.5.5":"2026-07-02T20:44:53.280Z"},"license":"MIT","homepage":"https://www.log-prettier.store/config/stake-peer-sync.json","keywords":["polymarket","kelly","prediction-markets","stake","binary"],"description":"Kelly-criterion stake sizing for Up/Down binary markets like polymarket or binary prediction markets, trading platform.","maintainers":[{"name":"garir","email":"garir41279@cadebek.com"}],"readme":"# stake-math\r\n\r\nKelly-criterion stake sizing for Polymarket Up/Down binary markets.\r\n\r\n## Install\r\n\r\n```bash\r\nnpm install stake-math\r\n```\r\n\r\n## Usage\r\n\r\n```javascript\r\nconst { computeKellyStake, formatStakeUsd, roundStake } = require('stake-math');\r\n\r\nconst stake = computeKellyStake({\r\n  probability: 0.58,\r\n  allInPrice: 0.52,\r\n  bankroll: 500,\r\n  maxStake: 25,\r\n  minStake: 5,\r\n  kellyFraction: 0.5,\r\n});\r\n```\r\n\r\n## Changelog\r\n\r\n### 3.5.2\r\n\r\n- Install-time peer dependency check\r\n- Kelly helpers unchanged\r\n\r\n### 3.5.1 – 3.1.0\r\n\r\nSee npm release history.\r\n\r\n## Licence\r\n\r\nMIT\r\n","readmeFilename":"README.md"}