diff --git a/okcoinwebsocket.go b/okcoinwebsocket.go index e2cb300b..90a23a8e 100644 --- a/okcoinwebsocket.go +++ b/okcoinwebsocket.go @@ -490,6 +490,12 @@ func (o *OKCoin) WebsocketClient() { continue } + if success == "true" { + if data == nil { + continue + } + } + dataJSON, err := JSONEncode(data) if err != nil {