mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
remove unused SetCurrencyPrice
This commit is contained in:
parent
f276520186
commit
12dde9f57b
|
@ -23,14 +23,6 @@ func (c *ProfitAndLossCalculator) AddTrade(trade types.Trade) {
|
|||
c.Trades = append(c.Trades, trade)
|
||||
}
|
||||
|
||||
func (c *ProfitAndLossCalculator) SetCurrencyPrice(symbol string, price float64) {
|
||||
if c.CurrencyPrice == nil {
|
||||
c.CurrencyPrice = map[string]float64{}
|
||||
}
|
||||
|
||||
c.CurrencyPrice[symbol] = price
|
||||
}
|
||||
|
||||
func (c *ProfitAndLossCalculator) SetCurrentPrice(price float64) {
|
||||
c.CurrentPrice = price
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user