bf-haskell-0.1.0.0: Betfair Exchange API

Copyright(C) 2020 Martins Erts
LicenseMIT
MaintainerMartins Erts <martins.erts@gmail.com>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

BfHaskell.Common.Odds

Description

 
Synopsis

Documentation

type Odds = Nano Source #

Betting odds

normalizeOdds Source #

Arguments

:: OddsTree

Normalization tree

-> Odds

Odds

-> Bool

True round up. False - round down.

-> NormalizedOdds 

Normalize odds

nextOdds :: OddsTree -> NormalizedOdds -> NormalizedOdds Source #

Returns next normalized odds using price increments

newTree :: OddsTree Source #

Betfair odds normalization tree