polygon-io / client-python

The official Python client library for the Polygon REST and WebSocket API.
https://polygon-api-client.readthedocs.io/
MIT License
816 stars 215 forks source link

Client update needed to match WebSocket spec changes #380

Closed client-library-maintainer[bot] closed 1 year ago

client-library-maintainer[bot] commented 1 year ago

A diff between this client library's spec and our hosted spec was found. The client may need an update to match any changes in our API. See the diff below:

--- https://raw.githubusercontent.com/polygon-io/client-python/master/.polygon/websocket.json
+++ https://api.polygon.io/specs/websocket.json
@@ -312,6 +312,10 @@
                       "type": "integer",
                       "description": "The Timestamp in Unix MS."
                     },
+                    "q": {
+                      "type": "integer",
+                      "description": "The sequence number represents the sequence in which quote events happened.\nThese are increasing and unique per ticker symbol, but will not always be\nsequential (e.g., 1, 2, 6, 9, 10, 11). Values reset after each trading session/day.\n"
+                    },
                     "z": {
                       "type": "integer",
                       "description": "The tape. (1 = NYSE, 2 = AMEX, 3 = Nasdaq)."
@@ -332,6 +336,7 @@
                     604
                   ],
                   "t": 1536036818784,
+                  "q": 50385480,
                   "z": 3
                 }
               }
@@ -2321,6 +2326,10 @@
             "type": "integer",
             "description": "The Timestamp in Unix MS."
           },
+          "q": {
+            "type": "integer",
+            "description": "The sequence number represents the sequence in which quote events happened.\nThese are increasing and unique per ticker symbol, but will not always be\nsequential (e.g., 1, 2, 6, 9, 10, 11). Values reset after each trading session/day.\n"
+          },
           "z": {
             "type": "integer",
             "description": "The tape. (1 = NYSE, 2 = AMEX, 3 = Nasdaq)."
justinpolygon commented 1 year ago

Closing this out. There is no different between the websocket spec in the repo and the live one.

https://raw.githubusercontent.com/polygon-io/client-python/master/.polygon/websocket.json https://api.polygon.io/specs/websocket.json