Use WebsocketEvent in ws client and add timestamp to Tickers

Fixes https://github.com/thrasher-/gocryptotrader/issues/137
This commit is contained in:
Adrian Gallagher
2018-07-13 11:20:29 +10:00
parent 69acf88a7b
commit e5b3ce8de8
3 changed files with 13 additions and 1 deletions

View File

@@ -179,7 +179,7 @@ func main() {
log.Println("Got orderbook!")
for {
var wsEvent WebsocketEventResponse
var wsEvent WebsocketEvent
err = WSConn.ReadJSON(&wsEvent)
if err != nil {
break