diff --git a/bitmex/bitmex.go b/bitmex/bitmex.go index b0f2a69..c91e3f8 100644 --- a/bitmex/bitmex.go +++ b/bitmex/bitmex.go @@ -5,12 +5,12 @@ import ( ) type Response struct { - Success bool `json:"success,omitempty"` - Subscribe string `json:"subscribe,omitempty"` - Request interface{} `json:"request,omitempty"` - Table string `json:"table,omitempty"` - Action string `json:"action,omitempty"` - Data interface{} `json:"data,omitempty"` + Success bool `json:"success,omitempty"` + Subscribe string `json:"subscribe,omitempty"` + Request interface{} `json:"request,omitempty"` + Table string `json:"table,omitempty"` + Action string `json:"action,omitempty"` + Data json.RawMessage `json:"data,omitempty"` } func DecodeMessage(message []byte) (Response, error) {