Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
module BfexplorerBot
#I @"C:\Program Files (x86)\BeloSoft\Bfexplorer\"
#r "BeloSoft.Data.dll"
#r "BeloSoft.Bfexplorer.Domain.dll"
#r "BeloSoft.Bfexplorer.Trading.dll"
open System
open BeloSoft.Bfexplorer.Domain
open BeloSoft.Bfexplorer.Trading
type MyBotTrigger(market : Market, selection : Selection, botName : string, botTriggerParameters : BotTriggerParameters, myBfexplorer : IMyBfexplorer) =
interface IBotTrigger with
member __.Execute() =
let message =
|> (fun mySelection -> sprintf "%s: %.2f | %.2f" mySelection.Name mySelection.LastPriceTraded mySelection.TotalMatched)
|> String.concat "\n"
TriggerResult.EndExecutionWithMessage message
member __.EndExecution() =
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.