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.
- {massive-2.3.1 → massive-2.3.2}/PKG-INFO +1 -1
- {massive-2.3.1 → massive-2.3.2}/massive/rest/base.py +4 -2
- {massive-2.3.1 → massive-2.3.2}/pyproject.toml +2 -2
- {massive-2.3.1 → massive-2.3.2}/LICENSE +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/__init__.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/exceptions.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/logging.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/modelclass.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/__init__.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/aggs.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/benzinga.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/economy.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/etf_global.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/financials.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/futures.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/indicators.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/models/__init__.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/models/aggs.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/models/benzinga.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/models/common.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/models/conditions.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/models/contracts.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/models/dividends.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/models/economy.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/models/etf_global.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/models/exchanges.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/models/financials.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/models/futures.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/models/indicators.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/models/markets.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/models/quotes.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/models/request.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/models/snapshot.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/models/splits.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/models/summaries.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/models/tickers.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/models/tmx.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/models/trades.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/quotes.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/reference.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/snapshot.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/summaries.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/tmx.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/trades.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/rest/vX.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/websocket/__init__.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/websocket/models/__init__.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/websocket/models/common.py +0 -0
- {massive-2.3.1 → massive-2.3.2}/massive/websocket/models/models.py +0 -0
|
@@ -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.
|
|
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 = "^
|
|
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
|
|
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
|
|
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
|
|
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
|