public List <OptionOrderViewModel> PostOptionOrder(OptionOrderTicketViewModel[] orderTickets) { List <OptionOrderViewModel> results = new List <OptionOrderViewModel>(); foreach (OptionOrderTicketViewModel orderTicket in orderTickets) { OptionOrderArguments orderArguments = new OptionOrderArguments { CustomerAccountCode = FCIdentity.CustomerAccountCode, TradeAccount = FCIdentity.TradeAccount, OptionNumber = orderTicket.OptionNumber, SecurityCode = orderTicket.SecurityCode ?? orderTicket.UnderlyingCode, StockBusiness = StockBusiness.Parse(orderTicket.StockBusiness), StockBusinessAction = StockBusinessAction.Parse(orderTicket.OrderType), OrderQuantity = orderTicket.OrderQuantity, OrderPrice = orderTicket.OrderPrice, Password = FCUser.Password }; OptionOrderInformation order = _orderManager.SubmitOptionOrder(orderArguments); OptionOrderViewModel result = Mapper.Map <OptionOrderInformation, OptionOrderViewModel>(order); results.Add(result); } return(results); }
public OptionOrderInformation ExerciseOptionPosition(OptionOrderTicketViewModel orderTicket) { OptionOrderArguments orderArguments = new OptionOrderArguments { CustomerAccountCode = orderTicket.AccountCode, TradeAccount = orderTicket.TradeAccount, OptionNumber = orderTicket.OptionNumber, OrderQuantity = orderTicket.OrderQuantity, StockBusiness = StockBusiness.Parse(orderTicket.StockBusiness), StockBusinessAction = StockBusinessAction.OrderDeclaration, Password = orderTicket.Password, ClientInfo = orderTicket.ClientInfo }; OptionOrderInformation result = _orderManager.SubmitOptionOrder(orderArguments); return(result); }
public OptionOrderInformation PostOptionOrder(OptionOrderTicketViewModel orderTicket) { OptionOrderArguments orderArguments = new OptionOrderArguments { CustomerAccountCode = orderTicket.AccountCode, TradeAccount = orderTicket.TradeAccount, OptionNumber = orderTicket.OptionNumber, SecurityCode = orderTicket.UnderlyingCode, OrderQuantity = orderTicket.OrderQuantity, OrderPrice = orderTicket.OrderPrice, StockBusiness = StockBusiness.Parse(orderTicket.StockBusiness), StockBusinessAction = StockBusinessAction.Parse(orderTicket.OrderType), Password = orderTicket.Password, ClientInfo = orderTicket.ClientInfo }; OptionOrderInformation result = _orderManager.SubmitOptionOrder(orderArguments); return(result); }
public OptionOrderViewModel PostExerciseOptionPosition(OptionOrderTicketViewModel orderTicket) { OptionOrderArguments orderArguments = new OptionOrderArguments { CustomerAccountCode = FCIdentity.CustomerAccountCode, TradeAccount = FCIdentity.TradeAccount, OptionNumber = orderTicket.OptionNumber,//11000033 OrderQuantity = orderTicket.OrderQuantity, StockBusiness = StockBusiness.Parse(orderTicket.StockBusiness), //StockBusiness = StockBusiness.ExerciseCallOption, StockBusinessAction = StockBusinessAction.OrderDeclaration, Password = FCUser.Password, InternalOrganization = Convert.ToString(FCUser.InternalOrganization) }; OptionOrderInformation order = _orderManager.SubmitOptionOrder(orderArguments); OptionOrderViewModel result = Mapper.Map <OptionOrderInformation, OptionOrderViewModel>(order); return(result); }
public OptionOrderViewModel PostOptionOrder(OptionOrderTicketViewModel orderTicket) { OptionOrderArguments orderArguments = new OptionOrderArguments { CustomerAccountCode = FCIdentity.CustomerAccountCode, TradeAccount = FCIdentity.TradeAccount, OptionNumber = orderTicket.OptionNumber, SecurityCode = orderTicket.UnderlyingCode, StockBusiness = StockBusiness.Parse(orderTicket.StockBusiness), StockBusinessAction = StockBusinessAction.Parse(orderTicket.OrderType), OrderQuantity = orderTicket.OrderQuantity, OrderPrice = orderTicket.OrderPrice, InternalOrganization = Convert.ToString(FCUser.InternalOrganization), Password = FCUser.Password }; OptionOrderInformation order = _orderManager.SubmitOptionOrder(orderArguments); OptionOrderViewModel result = Mapper.Map <OptionOrderInformation, OptionOrderViewModel>(order); return(result); }