Fix events.go

This commit is contained in:
Adrian Gallagher
2017-04-19 00:24:17 +10:00
parent d526e9f2a9
commit e666224079

View File

@@ -8,6 +8,7 @@ import (
"github.com/thrasher-/gocryptotrader/common"
"github.com/thrasher-/gocryptotrader/config"
"github.com/thrasher-/gocryptotrader/currency/pair"
"github.com/thrasher-/gocryptotrader/exchanges/ticker"
"github.com/thrasher-/gocryptotrader/smsglobal"
)
@@ -124,7 +125,7 @@ func (e *Event) CheckCondition() bool {
return false
}
lastPrice = ticker.Price[e.FirstCurrency][e.SecondCurrency].Last
lastPrice = ticker.Price[pair.CurrencyItem(e.FirstCurrency)][pair.CurrencyItem(e.SecondCurrency)].Last
if lastPrice == 0 {
return false