From cd80a6bc9c9b701834f8711a07150a52846e5827 Mon Sep 17 00:00:00 2001 From: aitzkovitz <19159499+aitzkovitz@users.noreply.github.com> Date: Fri, 20 Oct 2023 12:45:14 -0400 Subject: [PATCH] add fmv case --- websocket/polygon.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/websocket/polygon.go b/websocket/polygon.go index 0564ef67..6ee030da 100644 --- a/websocket/polygon.go +++ b/websocket/polygon.go @@ -545,6 +545,12 @@ func (c *Client) handleData(eventType string, msg json.RawMessage) { return } c.output <- out + case "FMV": + var out models.FairMarketValue + if err := json.Unmarshal(msg, &out); err != nil { + c.log.Errorf("failed to unmarshal message: %v", err) + } + default: c.log.Infof("unknown message type '%s'", sanitize(eventType)) }