massive 2.3.1__tar.gz → 2.3.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. {massive-2.3.1 → massive-2.3.2}/PKG-INFO +1 -1
  2. {massive-2.3.1 → massive-2.3.2}/massive/rest/base.py +4 -2
  3. {massive-2.3.1 → massive-2.3.2}/pyproject.toml +2 -2
  4. {massive-2.3.1 → massive-2.3.2}/LICENSE +0 -0
  5. {massive-2.3.1 → massive-2.3.2}/massive/__init__.py +0 -0
  6. {massive-2.3.1 → massive-2.3.2}/massive/exceptions.py +0 -0
  7. {massive-2.3.1 → massive-2.3.2}/massive/logging.py +0 -0
  8. {massive-2.3.1 → massive-2.3.2}/massive/modelclass.py +0 -0
  9. {massive-2.3.1 → massive-2.3.2}/massive/rest/__init__.py +0 -0
  10. {massive-2.3.1 → massive-2.3.2}/massive/rest/aggs.py +0 -0
  11. {massive-2.3.1 → massive-2.3.2}/massive/rest/benzinga.py +0 -0
  12. {massive-2.3.1 → massive-2.3.2}/massive/rest/economy.py +0 -0
  13. {massive-2.3.1 → massive-2.3.2}/massive/rest/etf_global.py +0 -0
  14. {massive-2.3.1 → massive-2.3.2}/massive/rest/financials.py +0 -0
  15. {massive-2.3.1 → massive-2.3.2}/massive/rest/futures.py +0 -0
  16. {massive-2.3.1 → massive-2.3.2}/massive/rest/indicators.py +0 -0
  17. {massive-2.3.1 → massive-2.3.2}/massive/rest/models/__init__.py +0 -0
  18. {massive-2.3.1 → massive-2.3.2}/massive/rest/models/aggs.py +0 -0
  19. {massive-2.3.1 → massive-2.3.2}/massive/rest/models/benzinga.py +0 -0
  20. {massive-2.3.1 → massive-2.3.2}/massive/rest/models/common.py +0 -0
  21. {massive-2.3.1 → massive-2.3.2}/massive/rest/models/conditions.py +0 -0
  22. {massive-2.3.1 → massive-2.3.2}/massive/rest/models/contracts.py +0 -0
  23. {massive-2.3.1 → massive-2.3.2}/massive/rest/models/dividends.py +0 -0
  24. {massive-2.3.1 → massive-2.3.2}/massive/rest/models/economy.py +0 -0
  25. {massive-2.3.1 → massive-2.3.2}/massive/rest/models/etf_global.py +0 -0
  26. {massive-2.3.1 → massive-2.3.2}/massive/rest/models/exchanges.py +0 -0
  27. {massive-2.3.1 → massive-2.3.2}/massive/rest/models/financials.py +0 -0
  28. {massive-2.3.1 → massive-2.3.2}/massive/rest/models/futures.py +0 -0
  29. {massive-2.3.1 → massive-2.3.2}/massive/rest/models/indicators.py +0 -0
  30. {massive-2.3.1 → massive-2.3.2}/massive/rest/models/markets.py +0 -0
  31. {massive-2.3.1 → massive-2.3.2}/massive/rest/models/quotes.py +0 -0
  32. {massive-2.3.1 → massive-2.3.2}/massive/rest/models/request.py +0 -0
  33. {massive-2.3.1 → massive-2.3.2}/massive/rest/models/snapshot.py +0 -0
  34. {massive-2.3.1 → massive-2.3.2}/massive/rest/models/splits.py +0 -0
  35. {massive-2.3.1 → massive-2.3.2}/massive/rest/models/summaries.py +0 -0
  36. {massive-2.3.1 → massive-2.3.2}/massive/rest/models/tickers.py +0 -0
  37. {massive-2.3.1 → massive-2.3.2}/massive/rest/models/tmx.py +0 -0
  38. {massive-2.3.1 → massive-2.3.2}/massive/rest/models/trades.py +0 -0
  39. {massive-2.3.1 → massive-2.3.2}/massive/rest/quotes.py +0 -0
  40. {massive-2.3.1 → massive-2.3.2}/massive/rest/reference.py +0 -0
  41. {massive-2.3.1 → massive-2.3.2}/massive/rest/snapshot.py +0 -0
  42. {massive-2.3.1 → massive-2.3.2}/massive/rest/summaries.py +0 -0
  43. {massive-2.3.1 → massive-2.3.2}/massive/rest/tmx.py +0 -0
  44. {massive-2.3.1 → massive-2.3.2}/massive/rest/trades.py +0 -0
  45. {massive-2.3.1 → massive-2.3.2}/massive/rest/vX.py +0 -0
  46. {massive-2.3.1 → massive-2.3.2}/massive/websocket/__init__.py +0 -0
  47. {massive-2.3.1 → massive-2.3.2}/massive/websocket/models/__init__.py +0 -0
  48. {massive-2.3.1 → massive-2.3.2}/massive/websocket/models/common.py +0 -0
  49. {massive-2.3.1 → massive-2.3.2}/massive/websocket/models/models.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: massive
3
- Version: 2.3.1
3
+ Version: 2.3.2
4
4
  Summary: Official Massive (formerly Polygon.io) REST and Websocket client.
5
5
  License: MIT
6
6
  License-File: LICENSE
@@ -68,6 +68,9 @@ class BaseClient:
68
68
  backoff_factor=0.1, # [0.0s, 0.2s, 0.4s, 0.8s, 1.6s, ...]
69
69
  )
70
70
 
71
+ # https://urllib3.readthedocs.io/en/stable/reference/urllib3.util.html#urllib3.util.Timeout
72
+ self.timeout = urllib3.Timeout(connect=connect_timeout, read=read_timeout)
73
+
71
74
  # https://urllib3.readthedocs.io/en/stable/reference/urllib3.poolmanager.html
72
75
  # https://urllib3.readthedocs.io/en/stable/reference/urllib3.connectionpool.html#urllib3.HTTPConnectionPool
73
76
  self.client = urllib3.PoolManager(
@@ -76,10 +79,9 @@ class BaseClient:
76
79
  ca_certs=certifi.where(),
77
80
  cert_reqs="CERT_REQUIRED",
78
81
  retries=retry_strategy, # use the customized Retry instance
82
+ timeout=self.timeout, # set timeout for each request
79
83
  )
80
84
 
81
- self.timeout = urllib3.Timeout(connect=connect_timeout, read=read_timeout)
82
-
83
85
  if verbose:
84
86
  logger.setLevel(logging.DEBUG)
85
87
  self.trace = trace
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "massive"
3
- version = "2.3.1"
3
+ version = "2.3.2"
4
4
  description = "Official Massive (formerly Polygon.io) REST and Websocket client."
5
5
  authors = ["massive.com"]
6
6
  license = "MIT"
@@ -38,7 +38,7 @@ sphinx-rtd-theme = "^3.1.0"
38
38
  # keep this in sync with docs/requirements.txt for readthedocs.org
39
39
  sphinx-autodoc-typehints = "^2.3.0"
40
40
  types-certifi = "^2021.10.8"
41
- types-setuptools = "^80.9.0"
41
+ types-setuptools = "^81.0.0"
42
42
  pook = "^2.1.4"
43
43
  orjson = "^3.11.5"
44
44
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes