@jackbilestech/match-betting-calculator
v0.2.1
Published
Neat little JS function for calculating match betting values.
Downloads
1
Readme
Match Betting Calculator
Neat little function for calculating match betting values.
How To Use
import C from '@jackbilestech/match-betting-calculator'
const cl = new C()
const o = cl.calculate('Trigger', 1.58, 20, 1.6, 0.02)
console.log(o)
// console output
// {
// bet_type,
// back_odds,
// back_return,
// lay_return,
// commission,
// back_win,
// lay_odds,
// liability,
// profit,
// back_stake,
// lay_stake
// }