Skip to content

Commit

Permalink
feat: htx spot account ws
Browse files Browse the repository at this point in the history
  • Loading branch information
linstohu committed Dec 20, 2023
1 parent 5e74952 commit 2bb5525
Show file tree
Hide file tree
Showing 14 changed files with 759 additions and 12 deletions.
6 changes: 4 additions & 2 deletions binance/utils/websocket_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,11 @@ func (m *AnyMessage) UnmarshalJSON(data []byte) error {
}

if v.Exists("stream") {
var msg = &SubscribedMessage{
msg := &SubscribedMessage{
Stream: string(v.GetStringBytes("stream")),
Data: v.Get("data").MarshalTo(nil),
}
if v.Get("data") != nil {
msg.Data = v.Get("data").MarshalTo(nil)
}

m.SubscribedMessage = msg
Expand Down
Loading

0 comments on commit 2bb5525

Please sign in to comment.