internal List <Command> CreateCommands(Protocal.TradingCommand tradingCommand) { List <Command> commands = new List <Command>(); XElement accountNode = XElement.Parse(tradingCommand.Content); Protocal.Commands.Account account = null; if (AccountRepository.Default.TryGet(tradingCommand.AccountId, out account)) { List <Protocal.Commands.OrderPhaseChange> orderChanges = null; commands = ((Account)account).UpdateAndCreateCommand(accountNode, out orderChanges); Protocal.Commands.TransactionMapping.Default.Update((Account)account, orderChanges); this.NotifyFaxEmalEngine(orderChanges); this.ProcessExecutedChanges(orderChanges); } return(commands); }
protected override Protocal.Commands.Fund DoCreateFund(Protocal.Commands.Account owner, Guid subCurrencyId, string currencyCode) { return(new Fund((Account)owner, subCurrencyId, currencyCode)); }
protected override Protocal.Commands.Transaction CreateTran(Protocal.Commands.Account account) { return(new Transaction((Account)account)); }