Safe Haskell | None |
---|---|
Language | Haskell2010 |
Deal.DealQuery
Synopsis
- queryDealBool :: Asset a => TestDeal a -> DealStats -> Date -> Either String Bool
- patchDateToStats :: Date -> DealStats -> DealStats
- patchDatesToStats :: Asset a => TestDeal a -> Date -> Date -> DealStats -> DealStats
- testPre :: Asset a => Date -> TestDeal a -> Pre -> Either String Bool
- calcTargetAmount :: Asset a => TestDeal a -> Date -> Account -> Either String Balance
- testPre2 :: Asset a => Date -> TestDeal a -> Pre -> (String, Either String Bool)
- queryCompound :: Asset a => TestDeal a -> Date -> DealStats -> Either String Rational
- calcBondTargetBalance :: Asset a => TestDeal a -> Date -> Bond -> Either String Balance
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