internal Exchange( IExchangeConfiguration configuration, IExchangeCommandFactory commands) { _configuration = configuration; _commands = commands; SetupSocket(); _executor = new ExecutionEngine(configuration); }
public ModelTranslationBase( IExchangeConfiguration configuration, TradingPair pair, IExchangeCommandFactory commands) { _configuration = configuration; _translator = new ResultTranslation(configuration); _commands = commands; _pair = pair; }
internal Exchange( IExchangeConfiguration configuration, IExchangeCommandFactory commands, IExchangeAuthenticator authenticator) { _configuration = configuration; _commands = commands; SetupSocket(); _executor = new ExecutionEngine( authenticator, configuration); }
public void AllCommandsPresent(IExchangeCommandFactory commands) { Assert.NotNull(commands.AccountBalance); Assert.NotNull(commands.BuyOrder); Assert.NotNull(commands.CancelOrder); Assert.NotNull(commands.OpenOrders); Assert.NotNull(commands.OrderBook); Assert.NotNull(commands.SellOrder); Assert.NotNull(commands.Tick); Assert.NotNull(commands.Transactions); Assert.NotNull(commands.UserTransactions); Assert.NotNull(commands.OrderStatus); VerifyExchangeCommand(commands.AccountBalance); VerifyExchangeCommand(commands.BuyOrder); VerifyExchangeCommand(commands.CancelOrder); VerifyExchangeCommand(commands.OpenOrders); VerifyExchangeCommand(commands.OrderBook); VerifyExchangeCommand(commands.SellOrder); VerifyExchangeCommand(commands.Tick); VerifyExchangeCommand(commands.Transactions); VerifyExchangeCommand(commands.UserTransactions); VerifyExchangeCommand(commands.OrderStatus); }