From f9b21131fe558f3356d0e190e4bcabfddbe6f33b Mon Sep 17 00:00:00 2001 From: c9s Date: Sun, 18 Oct 2020 11:18:12 +0800 Subject: [PATCH] fix pnl cmd --- cmd/pnl.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/pnl.go b/cmd/pnl.go index 647628c12..bbd9a5b85 100644 --- a/cmd/pnl.go +++ b/cmd/pnl.go @@ -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 },