mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-24 15:55:14 +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