public RunnerDescription ToRunnerDescription()
        {
            RunnerDescription rd = new RunnerDescription()
            {
                SelectionId = selectionId,
                RunnerName  = runnerName
            };

            return(rd);
        }
示例#2
0
 public Rider(Runner runner, CurrentOrderSummaryReport orders, RunnerDescription runnerdescription, RunnerProfitAndLoss runnerPNL, double minPrice, double maxPrice)
 {
     this.runner            = runner;
     this.orders            = orders;
     this.runnerdescription = runnerdescription;
     this.runnerPNL         = runnerPNL;
     this.minPrice          = minPrice;
     this.maxPrice          = maxPrice;
     selectionID            = runner.SelectionId;
     latestMarketprice      = LatestMarketPrice();
     totalmarketamount      = TotalMarketAmount();
     name         = Name();
     pnl          = PNL();
     isInthemoney = IsInthemoney();
     isOpen       = IsOpen();
     turnover     = Turnover();
     marketBid    = MarketBid();
     marketAsk    = MarketAsk();
     myBid        = MyBid();
     myAsk        = MyAsk();
     layorders    = LayOrders();
     backorders   = BackOrders();
 }