|
|
|
@ -77,7 +77,7 @@ startBot conf = do |
|
|
|
forever $ do |
|
|
|
forever $ do |
|
|
|
tick <- BC.readChan tickChan |
|
|
|
tick <- BC.readChan tickChan |
|
|
|
when (datatype tick == LastTradePrice) $ do |
|
|
|
when (datatype tick == LastTradePrice) $ do |
|
|
|
debugM "ATradeBot.QS" $ "Incoming tick: " ++ show tick |
|
|
|
--debugM "ATradeBot.QS" $ "Incoming tick: " ++ show tick |
|
|
|
atomicModifyIORef' ref (\s -> ((M.insert (security tick) tick s), ())) |
|
|
|
atomicModifyIORef' ref (\s -> ((M.insert (security tick) tick s), ())) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|