vortex-api 2.0.3__tar.gz → 2.0.5__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.0.3/vortex_api.egg-info → vortex_api-2.0.5}/PKG-INFO +1 -1
- {vortex_api-2.0.3 → vortex_api-2.0.5}/vortex_api/__version__.py +1 -1
- {vortex_api-2.0.3 → vortex_api-2.0.5}/vortex_api/vortex_feed.py +4 -1
- {vortex_api-2.0.3 → vortex_api-2.0.5/vortex_api.egg-info}/PKG-INFO +1 -1
- {vortex_api-2.0.3 → vortex_api-2.0.5}/LICENSE +0 -0
- {vortex_api-2.0.3 → vortex_api-2.0.5}/README.md +0 -0
- {vortex_api-2.0.3 → vortex_api-2.0.5}/pyproject.toml +0 -0
- {vortex_api-2.0.3 → vortex_api-2.0.5}/setup.cfg +0 -0
- {vortex_api-2.0.3 → vortex_api-2.0.5}/setup.py +0 -0
- {vortex_api-2.0.3 → vortex_api-2.0.5}/vortex_api/__init__.py +0 -0
- {vortex_api-2.0.3 → vortex_api-2.0.5}/vortex_api/api.py +0 -0
- {vortex_api-2.0.3 → vortex_api-2.0.5}/vortex_api.egg-info/SOURCES.txt +0 -0
- {vortex_api-2.0.3 → vortex_api-2.0.5}/vortex_api.egg-info/dependency_links.txt +0 -0
- {vortex_api-2.0.3 → vortex_api-2.0.5}/vortex_api.egg-info/requires.txt +0 -0
- {vortex_api-2.0.3 → vortex_api-2.0.5}/vortex_api.egg-info/top_level.txt +0 -0
|
@@ -2,7 +2,7 @@ __name__ = "vortex_api"
|
|
|
2
2
|
__description__ = "Vortex APIs to place orders in Rupeezy application"
|
|
3
3
|
__url__ = "https://vortex.rupeezy.in"
|
|
4
4
|
__download_url__ = "https://github.com/RupeezyTech/pyvortex"
|
|
5
|
-
__version__ = "2.0.
|
|
5
|
+
__version__ = "2.0.5"
|
|
6
6
|
__author__ = "Astha Credit & Securities Pvt Ltd."
|
|
7
7
|
__author_email__ = "tech@rupeezy.in"
|
|
8
8
|
__license__ = "MIT"
|
|
@@ -5,6 +5,7 @@ import json
|
|
|
5
5
|
import struct
|
|
6
6
|
import logging
|
|
7
7
|
import threading
|
|
8
|
+
import os
|
|
8
9
|
from twisted.internet import reactor, ssl
|
|
9
10
|
from twisted.python import log as twisted_log
|
|
10
11
|
from twisted.internet.protocol import ReconnectingClientFactory
|
|
@@ -313,7 +314,9 @@ class VortexFeed:
|
|
|
313
314
|
# Set SSL context
|
|
314
315
|
context_factory = None
|
|
315
316
|
if self.factory.isSecure and not disable_ssl_verification:
|
|
316
|
-
|
|
317
|
+
from urllib.parse import urlparse
|
|
318
|
+
hostname = urlparse(self.socket_url).hostname
|
|
319
|
+
context_factory = ssl.optionsForClientTLS(hostname)
|
|
317
320
|
|
|
318
321
|
# Establish WebSocket connection to a server
|
|
319
322
|
connectWS(self.factory, contextFactory=context_factory, timeout=self.connect_timeout)
|
|
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
|