public List <ExecutionReport> Put(string id, [FromBody] ExecutionReport order)
        {
            var results = _orderbookService.OrderBook.WithReports(ob => ob.NewOrder(order.ToOrder()));

            ProcessExecutionReports(results);
            return(results);
        }
Beispiel #2
0
        private List <ExecutionReport> NewOrderRun(ExecutionReport order)
        {
            var reports = OrderBook.WithReports(x => x.NewOrder(order.ToOrder()));

            ProcessExecutionReports(reports);
            return(reports);
        }
 private List <ExecutionReport> NewOrderRun(ExecutionReport order)
 {
     try
     {
         var reports = OrderBook.WithReports(x => x.NewOrder(order.ToOrder()));
         ProcessExecutionReports(reports);
         return(reports);
     }
     catch (Exception e)
     {
         Console.Error.WriteLine(e);
         throw;
     }
 }