mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
add more pnl report conditions
This commit is contained in:
parent
6b0f2b80d7
commit
3786792214
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user