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); }
public Treader(Market market, TrackSettings trackSett) : this() { _market = market; Tracker = new CourseTracker(market, trackSett); Buyer = new Buyer(market.Api); }