mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 01:01:56 +00:00
fix pnl cmd
This commit is contained in:
parent
fe1a25d735
commit
f9b21131fe
|
@ -114,9 +114,9 @@ var pnlCmd = &cobra.Command{
|
|||
TradingFeeCurrency: tradingFeeCurrency,
|
||||
Symbol: symbol,
|
||||
StartTime: startTime,
|
||||
CurrentPrice: currentPrice,
|
||||
}
|
||||
report := calculator.Calculate(trades)
|
||||
|
||||
report := calculator.Calculate(trades, currentPrice)
|
||||
report.Print()
|
||||
return nil
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user