Пример #1
0
 public void Buy(CoursePoint buyPoint, CourseTracker tracker)
 {
     if (DbgSett.Options.Contains(DbgSett.DbgOption.ShowBuy))
     {
         Log.CreateLog("Buy", string.Format("{0} {1}", buyPoint, tracker.Leap.Mode));
     }
     _Order           = new Order(tracker.Market.Name, buyPoint.Course, Balance / PartsInvest);
     _Order.PlaceDate = buyPoint.Date; // для отладки по истории, в реальном случае поле затрется
     _apiDriver.Buy(_Order);
 }
Пример #2
0
 public Treader(Market market, TrackSettings trackSett) : this()
 {
     _market = market;
     Tracker = new CourseTracker(market, trackSett);
     Buyer   = new Buyer(market.Api);
 }