Skip to content

Commit

Permalink
add fmv case
Browse files Browse the repository at this point in the history
  • Loading branch information
aitzkovitz committed Oct 20, 2023
1 parent 1d1d4d9 commit cd80a6b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions websocket/polygon.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit cd80a6b

Please sign in to comment.