Hastructure
Safe HaskellNone
LanguageHaskell2010

Deal.DealQuery

Synopsis

Documentation

queryDealBool :: Asset a => TestDeal a -> DealStats -> Date -> Either String Bool Source #

test a condition with a deal and a date

patchDatesToStats :: Asset a => TestDeal a -> Date -> Date -> DealStats -> DealStats Source #

map from Pool Source to Pool CutoffFields in Pool Map

testPre :: Asset a => Date -> TestDeal a -> Pre -> Either String Bool Source #

convert a condition to string in a deal context

calcTargetAmount :: Asset a => TestDeal a -> Date -> Account -> Either String Balance Source #

calcuate target balance for a reserve account, 0 for a non-reserve account

calcBondTargetBalance :: Asset a => TestDeal a -> Date -> Bond -> Either String Balance Source #

calculate target bond balance for a bond