mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-30 23:16:52 +00:00
Use WebsocketEvent in ws client and add timestamp to Tickers
Fixes https://github.com/thrasher-/gocryptotrader/issues/137
This commit is contained in:
@@ -157,6 +157,10 @@ func CreateNewOrderbook(exchangeName string, p pair.CurrencyPair, orderbookNew B
|
||||
// ProcessOrderbook processes incoming orderbooks, creating or updating the
|
||||
// Orderbook list
|
||||
func ProcessOrderbook(exchangeName string, p pair.CurrencyPair, orderbookNew Base, orderbookType string) {
|
||||
if orderbookNew.Pair.Pair() == "" {
|
||||
// set Pair if not set
|
||||
orderbookNew.Pair = p
|
||||
}
|
||||
orderbookNew.CurrencyPair = p.Pair().String()
|
||||
orderbookNew.LastUpdated = time.Now()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user