polygon-io / client-python

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

Client update needed to match REST spec changes #421

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/rest.json
+++ https://api.polygon.io/openapi
@@ -826,11 +826,19 @@
             "format": "double",
             "type": "number"
           },
+          "n": {
+            "description": "The number of transactions in the aggregate window.",
+            "type": "integer"
+          },
           "o": {
             "description": "The open price for the symbol in the given time period.",
             "format": "double",
             "type": "number"
           },
+          "t": {
+            "description": "The Unix Msec timestamp for the start of the aggregate window.",
+            "type": "integer"
+          },
           "v": {
             "description": "The trading volume of the symbol in the given time period.",
             "format": "double",
@@ -848,7 +851,9 @@
           "l",
           "c",
           "v",
-          "vw"
+          "vw",
+          "t",
+          "n"
         ],
         "type": "object"
       },
@@ -966,11 +971,19 @@
                     "format": "double",
                     "type": "number"
                   },
+                  "n": {
+                    "description": "The number of transactions in the aggregate window.",
+                    "type": "integer"
+                  },
                   "o": {
                     "description": "The open price for the symbol in the given time period.",
                     "format": "double",
                     "type": "number"
                   },
+                  "t": {
+                    "description": "The Unix Msec timestamp for the start of the aggregate window.",
+                    "type": "integer"
+                  },
                   "v": {
                     "description": "The trading volume of the symbol in the given time period.",
                     "format": "double",
@@ -988,7 +996,9 @@
                   "l",
                   "c",
                   "v",
-                  "vw"
+                  "vw",
+                  "t",
+                  "n"
                 ],
                 "type": "object"
               },
@@ -1269,11 +1279,19 @@
                       "format": "double",
                       "type": "number"
                     },
+                    "n": {
+                      "description": "The number of transactions in the aggregate window.",
+                      "type": "integer"
+                    },
                     "o": {
                       "description": "The open price for the symbol in the given time period.",
                       "format": "double",
                       "type": "number"
                     },
+                    "t": {
+                      "description": "The Unix Msec timestamp for the start of the aggregate window.",
+                      "type": "integer"
+                    },
                     "v": {
                       "description": "The trading volume of the symbol in the given time period.",
                       "format": "double",
@@ -1291,7 +1304,9 @@
                     "l",
                     "c",
                     "v",
-                    "vw"
+                    "vw",
+                    "t",
+                    "n"
                   ],
                   "type": "object"
                 },
@@ -2410,24 +2425,25 @@
                     "format": "double",
                     "type": "number"
                   },
+                  "n": {
+                    "description": "The number of transactions in the aggregate window.",
+                    "type": "integer"
+                  },
                   "o": {
                     "description": "The open price for the symbol in the given time period.",
                     "format": "double",
                     "type": "number"
                   },
+                  "t": {
+                    "description": "The Unix Msec timestamp for the start of the aggregate window.",
+                    "type": "integer"
+                  },
                   "v": {
                     "description": "The trading volume of the symbol in the given time period.",
                     "format": "double",
                     "type": "number"
                   }
                 },
-                "required": [
-                  "o",
-                  "h",
-                  "l",
-                  "c",
-                  "v"
-                ],
                 "type": "object"
               },
               "prevDay": {
@@ -2599,24 +2604,25 @@
                       "format": "double",
                       "type": "number"
                     },
+                    "n": {
+                      "description": "The number of transactions in the aggregate window.",
+                      "type": "integer"
+                    },
                     "o": {
                       "description": "The open price for the symbol in the given time period.",
                       "format": "double",
                       "type": "number"
                     },
+                    "t": {
+                      "description": "The Unix Msec timestamp for the start of the aggregate window.",
+                      "type": "integer"
+                    },
                     "v": {
                       "description": "The trading volume of the symbol in the given time period.",
                       "format": "double",
                       "type": "number"
                     }
                   },
-                  "required": [
-                    "o",
-                    "h",
-                    "l",
-                    "c",
-                    "v"
-                  ],
                   "type": "object"
                 },
                 "prevDay": {
@@ -3273,6 +3268,44 @@
         "format": "double",
         "type": "number"
       },
+      "SnapshotMinOHLCV": {
+        "properties": {
+          "c": {
+            "description": "The close price for the symbol in the given time period.",
+            "format": "double",
+            "type": "number"
+          },
+          "h": {
+            "description": "The highest price for the symbol in the given time period.",
+            "format": "double",
+            "type": "number"
+          },
+          "l": {
+            "description": "The lowest price for the symbol in the given time period.",
+            "format": "double",
+            "type": "number"
+          },
+          "n": {
+            "description": "The number of transactions in the aggregate window.",
+            "type": "integer"
+          },
+          "o": {
+            "description": "The open price for the symbol in the given time period.",
+            "format": "double",
+            "type": "number"
+          },
+          "t": {
+            "description": "The Unix Msec timestamp for the start of the aggregate window.",
+            "type": "integer"
+          },
+          "v": {
+            "description": "The trading volume of the symbol in the given time period.",
+            "format": "double",
+            "type": "number"
+          }
+        },
+        "type": "object"
+      },
       "SnapshotOHLCV": {
         "properties": {
           "c": {
@@ -3657,11 +3690,19 @@
             "format": "double",
             "type": "number"
           },
+          "n": {
+            "description": "The number of transactions in the aggregate window.",
+            "type": "integer"
+          },
           "o": {
             "description": "The open price for the symbol in the given time period.",
             "format": "double",
             "type": "number"
           },
+          "t": {
+            "description": "The Unix Msec timestamp for the start of the aggregate window.",
+            "type": "integer"
+          },
           "v": {
             "description": "The trading volume of the symbol in the given time period.",
             "format": "double",
@@ -3680,7 +3716,9 @@
           "l",
           "c",
           "v",
-          "vw"
+          "vw",
+          "t",
+          "n"
         ],
         "type": "object"
       },
@@ -3705,6 +3743,10 @@
             "format": "double",
             "type": "number"
           },
+          "n": {
+            "description": "The number of transactions in the aggregate window.",
+            "type": "integer"
+          },
           "o": {
             "description": "The open price for the symbol in the given time period.",
             "format": "double",
@@ -3714,6 +3756,10 @@
             "description": "Whether or not this aggregate is for an OTC ticker. This field will be left off if false.",
             "type": "boolean"
           },
+          "t": {
+            "description": "The Unix Msec timestamp for the start of the aggregate window.",
+            "type": "integer"
+          },
           "v": {
             "description": "The trading volume of the symbol in the given time period.",
             "format": "double",
@@ -3732,7 +3778,9 @@
           "l",
           "c",
           "v",
-          "vw"
+          "vw",
+          "t",
+          "n"
         ],
         "type": "object"
       },
@@ -3887,6 +3935,10 @@
                     "format": "double",
                     "type": "number"
                   },
+                  "n": {
+                    "description": "The number of transactions in the aggregate window.",
+                    "type": "integer"
+                  },
                   "o": {
                     "description": "The open price for the symbol in the given time period.",
                     "format": "double",
@@ -3896,6 +3948,10 @@
                     "description": "Whether or not this aggregate is for an OTC ticker. This field will be left off if false.",
                     "type": "boolean"
                   },
+                  "t": {
+                    "description": "The Unix Msec timestamp for the start of the aggregate window.",
+                    "type": "integer"
+                  },
                   "v": {
                     "description": "The trading volume of the symbol in the given time period.",
                     "format": "double",
@@ -3914,7 +3970,9 @@
                   "l",
                   "c",
                   "v",
-                  "vw"
+                  "vw",
+                  "t",
+                  "n"
                 ],
                 "type": "object"
               },
@@ -4142,6 +4200,10 @@
                       "format": "double",
                       "type": "number"
                     },
+                    "n": {
+                      "description": "The number of transactions in the aggregate window.",
+                      "type": "integer"
+                    },
                     "o": {
                       "description": "The open price for the symbol in the given time period.",
                       "format": "double",
@@ -4151,6 +4213,10 @@
                       "description": "Whether or not this aggregate is for an OTC ticker. This field will be left off if false.",
                       "type": "boolean"
                     },
+                    "t": {
+                      "description": "The Unix Msec timestamp for the start of the aggregate window.",
+                      "type": "integer"
+                    },
                     "v": {
                       "description": "The trading volume of the symbol in the given time period.",
                       "format": "double",
@@ -4169,7 +4235,9 @@
                     "l",
                     "c",
                     "v",
-                    "vw"
+                    "vw",
+                    "t",
+                    "n"
                   ],
                   "type": "object"
                 },
@@ -5132,6 +5200,12 @@
                           }
                         }
                       },
+                      "required": [
+                        "exchange",
+                        "timestamp",
+                        "ask",
+                        "bid"
+                      ],
                       "type": "object",
                       "x-polygon-go-type": {
                         "name": "LastQuoteCurrencies"
@@ -5154,6 +5228,15 @@
                       "type": "string"
                     }
                   },
+                  "required": [
+                    "status",
+                    "request_id",
+                    "from",
+                    "to",
+                    "symbol",
+                    "initialAmount",
+                    "converted"
+                  ],
                   "type": "object"
                 }
               },
@@ -5589,7 +5672,7 @@
         "parameters": [
           {
             "description": "The ticker symbol for which to get exponential moving average (EMA) data.",
-            "example": "X:BTC-USD",
+            "example": "X:BTCUSD",
             "in": "path",
             "name": "cryptoTicker",
             "required": true,
@@ -7162,7 +7245,7 @@
         "parameters": [
           {
             "description": "The ticker symbol for which to get MACD data.",
-            "example": "X:BTC-USD",
+            "example": "X:BTCUSD",
             "in": "path",
             "name": "cryptoTicker",
             "required": true,
@@ -8955,7 +9038,7 @@
         "parameters": [
           {
             "description": "The ticker symbol for which to get relative strength index (RSI) data.",
-            "example": "X:BTC-USD",
+            "example": "X:BTCUSD",
             "in": "path",
             "name": "cryptoTicker",
             "required": true,
@@ -10528,7 +10611,7 @@
         "parameters": [
           {
             "description": "The ticker symbol for which to get simple moving average (SMA) data.",
-            "example": "X:BTC-USD",
+            "example": "X:BTCUSD",
             "in": "path",
             "name": "cryptoTicker",
             "required": true,
@@ -12265,6 +12348,12 @@
                           }
                         }
                       },
+                      "required": [
+                        "exchange",
+                        "price",
+                        "size",
+                        "timestamp"
+                      ],
                       "type": "object",
                       "x-polygon-go-type": {
                         "name": "LastTradeCrypto"
@@ -12283,6 +12372,11 @@
                       "type": "string"
                     }
                   },
+                  "required": [
+                    "status",
+                    "request_id",
+                    "symbol"
+                  ],
                   "type": "object"
                 }
               },
@@ -12381,6 +12475,12 @@
                           }
                         }
                       },
+                      "required": [
+                        "ask",
+                        "bid",
+                        "exchange",
+                        "timestamp"
+                      ],
                       "type": "object",
                       "x-polygon-go-type": {
                         "name": "LastQuoteCurrencies"
@@ -12399,6 +12499,11 @@
                       "type": "string"
                     }
                   },
+                  "required": [
+                    "status",
+                    "request_id",
+                    "symbol"
+                  ],
                   "type": "object"
                 }
               },
@@ -14235,7 +14340,7 @@
         "operationId": "SnapshotSummary",
         "parameters": [
           {
-            "description": "Comma separated list of tickers. This API currently supports Stocks/Equities, Crypto, Options, and Forex. See <a rel=\"nofollow\" target=\"_blank\" href=\"https://polygon.io/docs/stocks/get_v3_reference_tickers\">the tickers endpoint</a> for more details on supported tickers. If no tickers are passed then no results will be returned.",
+            "description": "Comma separated list of tickers. This API currently supports Stocks/Equities, Crypto, Options, and Forex. See <a rel=\"nofollow\" target=\"_blank\" href=\"https://polygon.io/docs/stocks/get_v3_reference_tickers\">the tickers endpoint</a> for more details on supported tickers. If no tickers are passed then no results will be returned.\n\nWarning: The maximum number of characters allowed in a URL are subject to your technology stack.",
             "example": "NCLH,O:SPY250321C00380000,C:EURUSD,X:BTCUSD",
             "in": "query",
             "name": "ticker.any_of",
@@ -14256,6 +14361,7 @@
                         "icon_url": "https://api.polygon.io/icon.png",
                         "logo_url": "https://api.polygon.io/logo.svg"
                       },
+                      "last_updated": 1679597116344223500,
                       "market_status": "closed",
                       "name": "Norwegian Cruise Lines",
                       "price": 22.3,
@@ -14277,6 +14383,7 @@
                       "type": "stock"
                     },
                     {
+                      "last_updated": 1679597116344223500,
                       "market_status": "closed",
                       "name": "NCLH $5 Call",
                       "options": {
@@ -14306,6 +14413,7 @@
                       "type": "options"
                     },
                     {
+                      "last_updated": 1679597116344223500,
                       "market_status": "open",
                       "name": "Euro - United States Dollar",
                       "price": 0.97989,
@@ -14326,6 +14434,7 @@
                         "icon_url": "https://api.polygon.io/icon.png",
                         "logo_url": "https://api.polygon.io/logo.svg"
                       },
+                      "last_updated": 1679597116344223500,
                       "market_status": "open",
                       "name": "Bitcoin - United States Dollar",
                       "price": 32154.68,
@@ -14377,6 +14486,15 @@
                             "description": "The error while looking for this ticker.",
                             "type": "string"
                           },
+                          "last_updated": {
+                            "description": "The nanosecond timestamp of when this information was updated.",
+                            "format": "int64",
+                            "type": "integer",
+                            "x-polygon-go-type": {
+                              "name": "INanoseconds",
+                              "path": "github.com/polygon-io/ptime"
+                            }
+                          },
                           "market_status": {
                             "description": "The market status for the market that trades this ticker.",
                             "type": "string"
@@ -14551,7 +14669,8 @@
                           "market_status",
                           "type",
                           "session",
-                          "options"
+                          "options",
+                          "last_updated"
                         ],
                         "type": "object",
                         "x-polygon-go-type": {
@@ -16325,7 +16444,6 @@
                       "c": "4,048.42",
                       "h": "4,050.00",
                       "l": "3,980.31",
-                      "n": 1,
                       "o": "4,048.26",
                       "t": 1678221133236
                     },
@@ -16333,7 +16451,6 @@
                       "c": "4,048.42",
                       "h": "4,050.00",
                       "l": "3,980.31",
-                      "n": 1,
                       "o": "4,048.26",
                       "t": 1678221139690
                     }
@@ -17481,6 +17598,12 @@
                           "type": "integer"
                         }
                       },
+                      "required": [
+                        "T",
+                        "t",
+                        "y",
+                        "q"
+                      ],
                       "type": "object",
                       "x-polygon-go-type": {
                         "name": "LastQuoteResult"
@@ -17491,6 +17614,10 @@
                       "type": "string"
                     }
                   },
+                  "required": [
+                    "status",
+                    "request_id"
+                  ],
                   "type": "object"
                 }
               },
@@ -17644,6 +17771,15 @@
                           "type": "integer"
                         }
                       },
+                      "required": [
+                        "T",
+                        "t",
+                        "y",
+                        "q",
+                        "i",
+                        "p",
+                        "x"
+                      ],
                       "type": "object",
                       "x-polygon-go-type": {
                         "name": "LastTradeResult"
@@ -17654,6 +17790,10 @@
                       "type": "string"
                     }
                   },
+                  "required": [
+                    "status",
+                    "request_id"
+                  ],
                   "type": "object"
                 }
               },
@@ -17811,6 +17951,15 @@
                           "type": "integer"
                         }
                       },
+                      "required": [
+                        "T",
+                        "t",
+                        "y",
+                        "q",
+                        "i",
+                        "p",
+                        "x"
+                      ],
                       "type": "object",
                       "x-polygon-go-type": {
                         "name": "LastTradeResult"
@@ -17821,6 +17970,10 @@
                       "type": "string"
                     }
                   },
+                  "required": [
+                    "status",
+                    "request_id"
+                  ],
                   "type": "object"
                 }
               },
@@ -18457,11 +18610,19 @@
                                     "format": "double",
                                     "type": "number"
                                   },
+                                  "n": {
+                                    "description": "The number of transactions in the aggregate window.",
+                                    "type": "integer"
+                                  },
                                   "o": {
                                     "description": "The open price for the symbol in the given time period.",
                                     "format": "double",
                                     "type": "number"
                                   },
+                                  "t": {
+                                    "description": "The Unix Msec timestamp for the start of the aggregate window.",
+                                    "type": "integer"
+                                  },
                                   "v": {
                                     "description": "The trading volume of the symbol in the given time period.",
                                     "format": "double",
@@ -18479,7 +18635,9 @@
                                   "l",
                                   "c",
                                   "v",
-                                  "vw"
+                                  "vw",
+                                  "t",
+                                  "n"
                                 ],
                                 "type": "object"
                               },
@@ -18806,11 +18964,19 @@
                                   "format": "double",
                                   "type": "number"
                                 },
+                                "n": {
+                                  "description": "The number of transactions in the aggregate window.",
+                                  "type": "integer"
+                                },
                                 "o": {
                                   "description": "The open price for the symbol in the given time period.",
                                   "format": "double",
                                   "type": "number"
                                 },
+                                "t": {
+                                  "description": "The Unix Msec timestamp for the start of the aggregate window.",
+                                  "type": "integer"
+                                },
                                 "v": {
                                   "description": "The trading volume of the symbol in the given time period.",
                                   "format": "double",
@@ -18828,7 +18989,9 @@
                                 "l",
                                 "c",
                                 "v",
-                                "vw"
+                                "vw",
+                                "t",
+                                "n"
                               ],
                               "type": "object"
                             },
@@ -19327,11 +19490,19 @@
                                     "format": "double",
                                     "type": "number"
                                   },
+                                  "n": {
+                                    "description": "The number of transactions in the aggregate window.",
+                                    "type": "integer"
+                                  },
                                   "o": {
                                     "description": "The open price for the symbol in the given time period.",
                                     "format": "double",
                                     "type": "number"
                                   },
+                                  "t": {
+                                    "description": "The Unix Msec timestamp for the start of the aggregate window.",
+                                    "type": "integer"
+                                  },
                                   "v": {
                                     "description": "The trading volume of the symbol in the given time period.",
                                     "format": "double",
@@ -19349,7 +19515,9 @@
                                   "l",
                                   "c",
                                   "v",
-                                  "vw"
+                                  "vw",
+                                  "t",
+                                  "n"
                                 ],
                                 "type": "object"
                               },
@@ -19637,24 +19805,25 @@
                                     "format": "double",
                                     "type": "number"
                                   },
+                                  "n": {
+                                    "description": "The number of transactions in the aggregate window.",
+                                    "type": "integer"
+                                  },
                                   "o": {
                                     "description": "The open price for the symbol in the given time period.",
                                     "format": "double",
                                     "type": "number"
                                   },
+                                  "t": {
+                                    "description": "The Unix Msec timestamp for the start of the aggregate window.",
+                                    "type": "integer"
+                                  },
                                   "v": {
                                     "description": "The trading volume of the symbol in the given time period.",
                                     "format": "double",
                                     "type": "number"
                                   }
                                 },
-                                "required": [
-                                  "o",
-                                  "h",
-                                  "l",
-                                  "c",
-                                  "v"
-                                ],
                                 "type": "object"
                               },
                               "prevDay": {
@@ -19951,24 +20109,25 @@
                                   "format": "double",
                                   "type": "number"
                                 },
+                                "n": {
+                                  "description": "The number of transactions in the aggregate window.",
+                                  "type": "integer"
+                                },
                                 "o": {
                                   "description": "The open price for the symbol in the given time period.",
                                   "format": "double",
                                   "type": "number"
                                 },
+                                "t": {
+                                  "description": "The Unix Msec timestamp for the start of the aggregate window.",
+                                  "type": "integer"
+                                },
                                 "v": {
                                   "description": "The trading volume of the symbol in the given time period.",
                                   "format": "double",
                                   "type": "number"
                                 }
                               },
-                              "required": [
-                                "o",
-                                "h",
-                                "l",
-                                "c",
-                                "v"
-                              ],
                               "type": "object"
                             },
                             "prevDay": {
@@ -20256,24 +20404,25 @@
                                     "format": "double",
                                     "type": "number"
                                   },
+                                  "n": {
+                                    "description": "The number of transactions in the aggregate window.",
+                                    "type": "integer"
+                                  },
                                   "o": {
                                     "description": "The open price for the symbol in the given time period.",
                                     "format": "double",
                                     "type": "number"
                                   },
+                                  "t": {
+                                    "description": "The Unix Msec timestamp for the start of the aggregate window.",
+                                    "type": "integer"
+                                  },
                                   "v": {
                                     "description": "The trading volume of the symbol in the given time period.",
                                     "format": "double",
                                     "type": "number"
                                   }
                                 },
-                                "required": [
-                                  "o",
-                                  "h",
-                                  "l",
-                                  "c",
-                                  "v"
-                                ],
                                 "type": "object"
                               },
                               "prevDay": {
@@ -20651,6 +20789,10 @@
                                     "format": "double",
                                     "type": "number"
                                   },
+                                  "n": {
+                                    "description": "The number of transactions in the aggregate window.",
+                                    "type": "integer"
+                                  },
                                   "o": {
                                     "description": "The open price for the symbol in the given time period.",
                                     "format": "double",
@@ -20660,6 +20802,10 @@
                                     "description": "Whether or not this aggregate is for an OTC ticker. This field will be left off if false.",
                                     "type": "boolean"
                                   },
+                                  "t": {
+                                    "description": "The Unix Msec timestamp for the start of the aggregate window.",
+                                    "type": "integer"
+                                  },
                                   "v": {
                                     "description": "The trading volume of the symbol in the given time period.",
                                     "format": "double",
@@ -20678,7 +20824,9 @@
                                   "l",
                                   "c",
                                   "v",
-                                  "vw"
+                                  "vw",
+                                  "t",
+                                  "n"
                                 ],
                                 "type": "object"
                               },
@@ -21045,6 +21193,10 @@
                                   "format": "double",
                                   "type": "number"
                                 },
+                                "n": {
+                                  "description": "The number of transactions in the aggregate window.",
+                                  "type": "integer"
+                                },
                                 "o": {
                                   "description": "The open price for the symbol in the given time period.",
                                   "format": "double",
@@ -21054,6 +21206,10 @@
                                   "description": "Whether or not this aggregate is for an OTC ticker. This field will be left off if false.",
                                   "type": "boolean"
                                 },
+                                "t": {
+                                  "description": "The Unix Msec timestamp for the start of the aggregate window.",
+                                  "type": "integer"
+                                },
                                 "v": {
                                   "description": "The trading volume of the symbol in the given time period.",
                                   "format": "double",
@@ -21072,7 +21228,9 @@
                                 "l",
                                 "c",
                                 "v",
-                                "vw"
+                                "vw",
+                                "t",
+                                "n"
                               ],
                               "type": "object"
                             },
@@ -21438,6 +21596,10 @@
                                     "format": "double",
                                     "type": "number"
                                   },
+                                  "n": {
+                                    "description": "The number of transactions in the aggregate window.",
+                                    "type": "integer"
+                                  },
                                   "o": {
                                     "description": "The open price for the symbol in the given time period.",
                                     "format": "double",
@@ -21447,6 +21609,10 @@
                                     "description": "Whether or not this aggregate is for an OTC ticker. This field will be left off if false.",
                                     "type": "boolean"
                                   },
+                                  "t": {
+                                    "description": "The Unix Msec timestamp for the start of the aggregate window.",
+                                    "type": "integer"
+                                  },
                                   "v": {
                                     "description": "The trading volume of the symbol in the given time period.",
                                     "format": "double",
@@ -21465,7 +21631,9 @@
                                   "l",
                                   "c",
                                   "v",
-                                  "vw"
+                                  "vw",
+                                  "t",
+                                  "n"
                                 ],
                                 "type": "object"
                               },
@@ -22380,6 +22548,9 @@
                             }
                           }
                         },
+                        "required": [
+                          "participant_timestamp"
+                        ],
                         "type": "object"
                       },
                       "type": "array"
@@ -22389,6 +22560,9 @@
                       "type": "string"
                     }
                   },
+                  "required": [
+                    "status"
+                  ],
                   "type": "object"
                 }
               },
@@ -22620,6 +22794,10 @@
                             }
                           }
                         },
+                        "required": [
+                          "sip_timestamp",
+                          "sequence_number"
+                        ],
                         "type": "object"
                       },
                       "type": "array"
@@ -22629,6 +22807,9 @@
                       "type": "string"
                     }
                   },
+                  "required": [
+                    "status"
+                  ],
                   "type": "object"
                 }
               },
@@ -22910,7 +23091,15 @@
                             }
                           }
                         },
-                        "type": "object"
+                        "required": [
+                          "participant_timestamp",
+                          "sequence_number",
+                          "sip_timestamp"
+                        ],
+                        "type": "object",
+                        "x-polygon-go-type": {
+                          "name": "CommonQuote"
+                        }
                       },
                       "type": "array"
                     },
@@ -22919,6 +23108,9 @@
                       "type": "string"
                     }
                   },
+                  "required": [
+                    "status"
+                  ],
                   "type": "object"
                 }
               },
@@ -26524,7 +26716,7 @@
         "operationId": "IndicesSnapshot",
         "parameters": [
           {
-            "description": "Comma separated list of tickers",
+            "description": "Comma separated list of tickers.\n\nWarning: The maximum number of characters allowed in a URL are subject to your technology stack.",
             "example": "I:SPX",
             "in": "query",
             "name": "ticker.any_of",
@@ -26541,6 +26733,7 @@
                   "request_id": "6a7e466379af0a71039d60cc78e72282",
                   "results": [
                     {
+                      "last_updated": 1679597116344223500,
                       "market_status": "closed",
                       "name": "S&P 500",
                       "session": {
@@ -26553,6 +26746,7 @@
                         "previous_close": 3812.19
                       },
                       "ticker": "I:SPX",
+                      "timeframe": "REAL-TIME",
                       "type": "indices",
                       "value": 3822.39
                     },
@@ -26581,6 +26775,15 @@
                             "description": "The error while looking for this ticker.",
                             "type": "string"
                           },
+                          "last_updated": {
+                            "description": "The nanosecond timestamp of when this information was updated.",
+                            "format": "int64",
+                            "type": "integer",
+                            "x-polygon-go-type": {
+                              "name": "INanoseconds",
+                              "path": "github.com/polygon-io/ptime"
+                            }
+                          },
                           "market_status": {
                             "description": "The market status for the market that trades this ticker.",
                             "type": "string"
@@ -26640,6 +26843,14 @@
                             "description": "Ticker of asset queried.",
                             "type": "string"
                           },
+                          "timeframe": {
+                            "description": "The time relevance of the data.",
+                            "enum": [
+                              "DELAYED",
+                              "REAL-TIME"
+                            ],
+                            "type": "string"
+                          },
                           "type": {
                             "description": "The indices market.",
                             "enum": [
@@ -26653,7 +26864,9 @@
                           }
                         },
                         "required": [
-                          "ticker"
+                          "ticker",
+                          "timeframe",
+                          "last_updated"
                         ],
                         "type": "object",
                         "x-polygon-go-type": {
@@ -26884,7 +27097,7 @@
                         "expiration_date": "2022-01-21",
                         "shares_per_contract": 100,
                         "strike_price": 150,
-                        "ticker": "AAPL211022C000150000"
+                        "ticker": "O:AAPL211022C000150000"
                       },
                       "greeks": {
                         "delta": 1,
@@ -28025,6 +28238,12 @@
                             "type": "number"
                           }
                         },
+                        "required": [
+                          "exchange",
+                          "price",
+                          "size",
+                          "id"
+                        ],
                         "type": "object"
                       },
                       "type": "array"
@@ -28034,6 +28253,9 @@
                       "type": "string"
                     }
                   },
+                  "required": [
+                    "status"
+                  ],
                   "type": "object"
                 }
               },
@@ -28268,6 +28490,12 @@
                             "type": "number"
                           }
                         },
+                        "required": [
+                          "exchange",
+                          "price",
+                          "sip_timestamp",
+                          "size"
+                        ],
                         "type": "object"
                       },
                       "type": "array"
@@ -28277,6 +28505,9 @@
                       "type": "string"
                     }
                   },
+                  "required": [
+                    "status"
+                  ],
                   "type": "object"
                 }
               },
@@ -28542,7 +28773,19 @@
                             }
                           }
                         },
-                        "type": "object"
+                        "required": [
+                          "exchange",
+                          "id",
+                          "price",
+                          "sequence_number",
+                          "sip_timestamp",
+                          "participant_timestamp",
+                          "size"
+                        ],
+                        "type": "object",
+                        "x-polygon-go-type": {
+                          "name": "CommonTrade"
+                        }
                       },
                       "type": "array"
                     },
@@ -28551,6 +28794,9 @@
                       "type": "string"
                     }
                   },
+                  "required": [
+                    "status"
+                  ],
                   "type": "object"
                 }
               },
justinpolygon commented 1 year ago

Closing - the majority of this should be cleared up shortly. Some via https://github.com/polygon-io/client-python/pull/434 and others via a bug fix in the upstream spec file that's outside of the scope of this library.