fix pnl cmd

This commit is contained in:
c9s 2020-10-18 11:18:12 +08:00
parent fe1a25d735
commit f9b21131fe

View File

@ -114,9 +114,9 @@ var pnlCmd = &cobra.Command{
TradingFeeCurrency: tradingFeeCurrency, TradingFeeCurrency: tradingFeeCurrency,
Symbol: symbol, Symbol: symbol,
StartTime: startTime, StartTime: startTime,
CurrentPrice: currentPrice,
} }
report := calculator.Calculate(trades)
report := calculator.Calculate(trades, currentPrice)
report.Print() report.Print()
return nil return nil
}, },