From 3786792214c489d267d39ac499c3c577b24455a1 Mon Sep 17 00:00:00 2001 From: c9s Date: Fri, 23 Oct 2020 00:23:04 +0800 Subject: [PATCH] add more pnl report conditions --- cmd/run.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmd/run.go b/cmd/run.go index 43979997b..a6ffda619 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -82,9 +82,14 @@ var runCmd = &cobra.Command{ trader.AttachCrossExchangeStrategy(strategy) } + // TODO: load these from config file trader.ReportPnL(notifier). AverageCostBySymbols("BTCUSDT", "BNBUSDT"). - Of("max", "binance").When("@daily", "@hourly") + Of("binance").When("@daily", "@hourly") + + trader.ReportPnL(notifier). + AverageCostBySymbols("MAXUSDT"). + Of("max").When("@daily", "@hourly") err = trader.Run(ctx) if err != nil {