Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
#I @"C:\Program Files (x86)\BeloSoft\Bfexplorer\"
#r "BeloSoft.Data.dll"
#r "BeloSoft.Bfexplorer.Domain.dll"
#r "BeloSoft.Bfexplorer.Service.dll"
#r "BeloSoft.Bfexplorer.Service.Core.dll"
#r "DevExpress.Data.v15.1.dll"
#r "DevExpress.Spreadsheet.v15.1.Core.dll"
#r "DevExpress.Office.v15.1.Core.dll"
// Your bot trigger full path name
#load @"D:\Projects\Bfexplorer\Development\BetfairFramework\MyBotTriggers\MyBotTrigger.fsx"
open System
open BeloSoft.Data
open BeloSoft.Bfexplorer.Service
open BeloSoft.Bfexplorer.Trading
open BfexplorerBot
// Comment this line when executing in Bfexplorer Console
let bfexplorer : IBfexplorerConsole = nil
let market = bfexplorer.ActiveMarket
let selection = bfexplorer.ActiveSelection
let botTriggerParameters = BotTriggerParameters(String.Empty)
let myBfexplorer =
new IMyBfexplorer with
member __.OpenBetEvent = bfexplorer.BfexplorerUI.GetOpenBetEvent(market)
member __.BfexplorerService = bfexplorer.BfexplorerService
let myBotTrigger = MyBotTrigger(market, selection, "MyBotTrigger", botTriggerParameters, myBfexplorer) :> IBotTrigger
printfn "%A" (myBotTrigger.Execute())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.