예제 #1
0
        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));
        }
예제 #2
0
 public MyMarketBot(Market market, MyMarketBotParameters parameters, IBfexplorerService bfexplorerService)
     : base(market, parameters, bfexplorerService, FSharpOption <ICriteriaEvaluator> .None)
 {
     myParameters = parameters;
 }
예제 #3
0
        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;
 }