コード例 #1
0
        private Model.ConcreateOdd CreateConcreateOdd(Bookmaker bookmaker, double odd)
        {
            var genericOdd = new Model.ConcreateOdd()
            {
                OddsBeforeCommission = odd,
                CommissionPct        = (double)(bookmaker.CurrentCommission ?? 0.0m),
                DecimalOdds          = odd * (1 - (double)(bookmaker.CurrentCommission ?? 0.0m)),
                BookmakerName        = bookmaker.BookmakerName,
                Source    = "Tennis Data Odds",
                TimeStamp = CouponDate,
                Priority  = bookmaker.Priority
            };

            return(genericOdd);
        }
コード例 #2
0
 private Model.ConcreateOdd CreateConcreateOdd(Bookmaker bookmaker, double odd)
 {
   var genericOdd = new Model.ConcreateOdd()
   {
     OddsBeforeCommission = odd,
     CommissionPct = (double)(bookmaker.CurrentCommission ?? 0.0m),
     DecimalOdds = odd * (1 - (double)(bookmaker.CurrentCommission ?? 0.0m)),
     BookmakerName = bookmaker.BookmakerName,
     Source = "Tennis Data Odds",
     TimeStamp = CouponDate,
     Priority = bookmaker.Priority
   };
   return genericOdd;
 }