Exemple #1
0
        public ActionResult Index()
        {
            List <OrderBook> orderBooks = orderBookService.FindAllOrderBooks();
            List <OrderBook> symbols    = orderBookService.FindAllDistinctBooks();
            List <Strategy>  strategies = strategyService.FindAllStrategies();
            Trader           trader     = traderService.FindTraderByName("lx");

            ViewData["orderBooks"] = orderBooks;
            ViewData["symbols"]    = symbols;
            ViewData["strategies"] = strategies;
            ViewData["trader"]     = trader;

            return(View());
        }
        public ActionResult OrderHistory()
        {
            Trader       trader       = traderService.FindTraderByName("lx");
            List <Order> orderHistory = orderService.FindOrderByTrader(trader);

            ViewData["orderHistory"] = orderHistory;

            return(View());
        }