public override Bot Invoke(Tuple <Market, Selection, BotParameters, IBfexplorerService> tupledArg) { Market market = tupledArg.Item1; Selection selection = tupledArg.Item2; BotParameters botParameters = tupledArg.Item3; IBfexplorerService bfexplorerService = tupledArg.Item4; return(new ShowSelectionSpPricesBot(market, selection, botParameters, bfexplorerService)); }
public MyMarketBot(Market market, MyMarketBotParameters parameters, IBfexplorerService bfexplorerService) : base(market, parameters, bfexplorerService, FSharpOption <ICriteriaEvaluator> .None) { myParameters = parameters; }
public UpdateSpPricesMarketBot(Market market, UpdateSpPricesBotParameters parameters, IBfexplorerService bfexplorerService) : base(market, parameters, bfexplorerService, FSharpOption <ICriteriaEvaluator> .None) { myParameters = parameters; foreach (var selection in market.Selections) { selection.Data["betfairSpPrices"] = new BetfairSpPrices(); } }
public ShowSelectionSpPricesBot(Market market, Selection selection, BotParameters parameters, IBfexplorerService bfexplorerService) : base(market, selection, parameters, bfexplorerService) { this.Status = this.RunningOnSelection.Data.ContainsKey("betfairSpPrices") ? BotStatus.WaitingForOperation : BotStatus.ExecutionEnded; }