vortex-api 2.1.5__tar.gz → 2.1.6__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.
- {vortex_api-2.1.5/vortex_api.egg-info → vortex_api-2.1.6}/PKG-INFO +1 -1
- {vortex_api-2.1.5 → vortex_api-2.1.6}/pyproject.toml +1 -1
- vortex_api-2.1.6/vortex_api/__version__.py +1 -0
- {vortex_api-2.1.5 → vortex_api-2.1.6}/vortex_api/api.py +10 -1
- {vortex_api-2.1.5 → vortex_api-2.1.6/vortex_api.egg-info}/PKG-INFO +1 -1
- vortex_api-2.1.5/vortex_api/__version__.py +0 -1
- {vortex_api-2.1.5 → vortex_api-2.1.6}/LICENSE +0 -0
- {vortex_api-2.1.5 → vortex_api-2.1.6}/README.md +0 -0
- {vortex_api-2.1.5 → vortex_api-2.1.6}/setup.cfg +0 -0
- {vortex_api-2.1.5 → vortex_api-2.1.6}/vortex_api/__init__.py +0 -0
- {vortex_api-2.1.5 → vortex_api-2.1.6}/vortex_api/backtest/__init__.py +0 -0
- {vortex_api-2.1.5 → vortex_api-2.1.6}/vortex_api/backtest/_backtestingpy.py +0 -0
- {vortex_api-2.1.5 → vortex_api-2.1.6}/vortex_api/backtest/_backtrader.py +0 -0
- {vortex_api-2.1.5 → vortex_api-2.1.6}/vortex_api/backtest/_common.py +0 -0
- {vortex_api-2.1.5 → vortex_api-2.1.6}/vortex_api/backtest/_vectorbt.py +0 -0
- {vortex_api-2.1.5 → vortex_api-2.1.6}/vortex_api/vortex_feed.py +0 -0
- {vortex_api-2.1.5 → vortex_api-2.1.6}/vortex_api.egg-info/SOURCES.txt +0 -0
- {vortex_api-2.1.5 → vortex_api-2.1.6}/vortex_api.egg-info/dependency_links.txt +0 -0
- {vortex_api-2.1.5 → vortex_api-2.1.6}/vortex_api.egg-info/requires.txt +0 -0
- {vortex_api-2.1.5 → vortex_api-2.1.6}/vortex_api.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.1.6"
|
|
@@ -216,7 +216,16 @@ class VortexAPI:
|
|
|
216
216
|
response = requests.request(method, url, headers=headers, json=data,params=params)
|
|
217
217
|
if self.enable_logging:
|
|
218
218
|
logging.debug(f"Response received from {url} , body: {response.json()}")
|
|
219
|
-
response.
|
|
219
|
+
if not response.ok:
|
|
220
|
+
try:
|
|
221
|
+
error_body = response.json()
|
|
222
|
+
error_message = error_body.get("message", response.text)
|
|
223
|
+
except Exception:
|
|
224
|
+
error_message = response.text
|
|
225
|
+
raise requests.exceptions.HTTPError(
|
|
226
|
+
f"{response.status_code} {response.reason}: {error_message}",
|
|
227
|
+
response=response,
|
|
228
|
+
)
|
|
220
229
|
return response.json()
|
|
221
230
|
|
|
222
231
|
def _make_unauth_request(self, method: str, endpoint: str, data: dict = None, params: dict = None) -> dict:
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.1.5"
|
|
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
|