Created
December 3, 2019 17:54
-
-
Save StefanBelo/2518720d37ac05096859030bf112e2b6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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