|
|
|
@ -18,8 +18,7 @@ import ATrade.Broker.Client (BrokerClientHandle |
|
|
|
import ATrade.Driver.Junction.BrokerService (BrokerService) |
|
|
|
import ATrade.Driver.Junction.BrokerService (BrokerService) |
|
|
|
import ATrade.Driver.Junction.ProgramConfiguration (ProgramConfiguration (logBasePath)) |
|
|
|
import ATrade.Driver.Junction.ProgramConfiguration (ProgramConfiguration (logBasePath)) |
|
|
|
import ATrade.Driver.Junction.QuoteStream (QuoteStream (addSubscription, removeSubscription), |
|
|
|
import ATrade.Driver.Junction.QuoteStream (QuoteStream (addSubscription, removeSubscription), |
|
|
|
QuoteSubscription (QuoteSubscription), |
|
|
|
QuoteSubscription (QuoteSubscription)) |
|
|
|
SubscriptionId (SubscriptionId)) |
|
|
|
|
|
|
|
import ATrade.Driver.Junction.QuoteThread (QuoteThreadHandle) |
|
|
|
import ATrade.Driver.Junction.QuoteThread (QuoteThreadHandle) |
|
|
|
import qualified ATrade.Driver.Junction.QuoteThread as QT |
|
|
|
import qualified ATrade.Driver.Junction.QuoteThread as QT |
|
|
|
import ATrade.Driver.Junction.RobotDriverThread (RobotDriverHandle, RobotEnv (RobotEnv), |
|
|
|
import ATrade.Driver.Junction.RobotDriverThread (RobotDriverHandle, RobotEnv (RobotEnv), |
|
|
|
@ -89,9 +88,9 @@ import Prelude hiding (log, |
|
|
|
readFile) |
|
|
|
readFile) |
|
|
|
import System.IO (BufferMode (LineBuffering), |
|
|
|
import System.IO (BufferMode (LineBuffering), |
|
|
|
IOMode (AppendMode), |
|
|
|
IOMode (AppendMode), |
|
|
|
|
|
|
|
hClose, |
|
|
|
hSetBuffering, |
|
|
|
hSetBuffering, |
|
|
|
openFile) |
|
|
|
openFile) |
|
|
|
import System.IO (hClose) |
|
|
|
|
|
|
|
import System.ZMQ4 (Router, Socket) |
|
|
|
import System.ZMQ4 (Router, Socket) |
|
|
|
import UnliftIO (MonadUnliftIO) |
|
|
|
import UnliftIO (MonadUnliftIO) |
|
|
|
import UnliftIO.Exception (catchAny, |
|
|
|
import UnliftIO.Exception (catchAny, |
|
|
|
|