mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 00:05:15 +00:00
fix pnl cmd
This commit is contained in:
parent
fe1a25d735
commit
f9b21131fe
|
@ -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
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user