Skip to content

Commit

Permalink
🔧 fix(coinbase): update message parsing function and add comprehensiv…
Browse files Browse the repository at this point in the history
…e tests for various message types
  • Loading branch information
dboyliao committed Mar 6, 2025
1 parent 3742056 commit d8f24a0
Show file tree
Hide file tree
Showing 4 changed files with 447 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/exchange/coinbase/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

// See https://docs.cdp.coinbase.com/exchange/docs/websocket-channels for message types
func (s *Stream) parseMessage(data []byte) (interface{}, error) {
func parseMessage(data []byte) (interface{}, error) {
var baseMsg messageBaseType
err := json.Unmarshal(data, &baseMsg)
if err != nil {
Expand Down
Loading

0 comments on commit d8f24a0

Please sign in to comment.