Skip to content
This repository was archived by the owner on Jun 9, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions bitmex/bitmex.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down