add more pnl report conditions

This commit is contained in:
c9s 2020-10-23 00:23:04 +08:00
parent 6b0f2b80d7
commit 3786792214

View File

@ -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 {