You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
489 B
19 lines
489 B
|
|
{- | |
|
- Module : ATrade.Quotes |
|
|
|
- Various historical price series management stuff |
|
-} |
|
|
|
module ATrade.Quotes |
|
( |
|
MonadHistory(..) |
|
) where |
|
|
|
import ATrade.Types (Bar, BarTimeframe, TickerId) |
|
import Data.Time.Clock (UTCTime) |
|
|
|
class (Monad m) => MonadHistory m where |
|
-- | 'getHistory tickerId timeframe fromTime toTime' should return requested timeframe between 'fromTime' and 'toTime' |
|
getHistory :: TickerId -> BarTimeframe -> UTCTime -> UTCTime -> m [Bar] |
|
|
|
|