Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Project HashFlare.io user account balance given the ExchangeRates, MEF and actual Payouts tables.
- projectAccountOnce :: ExchangeRates -> MEFTable -> PayoutTable -> UserAccount -> UserAccount
- projectAccount :: Int -> ExchangeRates -> MEFTable -> PayoutTable -> UserAccount -> UserAccount
- projectAccountExchangeTo :: CurrencySymbol a => a -> Int -> ExchangeRates -> MEFTable -> PayoutTable -> UserAccount -> Maybe (Money a)
- projectAccountUSD :: Int -> ExchangeRates -> MEFTable -> PayoutTable -> UserAccount -> Maybe (Money USD)
- projectAccountBTC :: Int -> ExchangeRates -> MEFTable -> PayoutTable -> UserAccount -> Maybe (Money BTC)
- projectAccountRUB :: Int -> ExchangeRates -> MEFTable -> PayoutTable -> UserAccount -> Maybe (Money RUB)
Documentation
projectAccountOnce :: ExchangeRates -> MEFTable -> PayoutTable -> UserAccount -> UserAccount Source #
Given rates, mef, and payouts tables, project the account once
projectAccount :: Int -> ExchangeRates -> MEFTable -> PayoutTable -> UserAccount -> UserAccount Source #
Given rates, mef, and payouts tables, project the account over given number of steps (days)
projectAccountExchangeTo :: CurrencySymbol a => a -> Int -> ExchangeRates -> MEFTable -> PayoutTable -> UserAccount -> Maybe (Money a) Source #
Project the account and return its balance exchanged into sym
projectAccountUSD :: Int -> ExchangeRates -> MEFTable -> PayoutTable -> UserAccount -> Maybe (Money USD) Source #
projectAccountBTC :: Int -> ExchangeRates -> MEFTable -> PayoutTable -> UserAccount -> Maybe (Money BTC) Source #
projectAccountRUB :: Int -> ExchangeRates -> MEFTable -> PayoutTable -> UserAccount -> Maybe (Money RUB) Source #