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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vortex_api
3
- Version: 2.0.3
3
+ Version: 2.0.5
4
4
  Summary: Vortex APIs to place orders in Rupeezy application
5
5
  Home-page: https://vortex.rupeezy.in
6
6
  Download-URL: https://github.com/RupeezyTech/pyvortex
@@ -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.3"
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
- context_factory = ssl.ClientContextFactory()
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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vortex_api
3
- Version: 2.0.3
3
+ Version: 2.0.5
4
4
  Summary: Vortex APIs to place orders in Rupeezy application
5
5
  Home-page: https://vortex.rupeezy.in
6
6
  Download-URL: https://github.com/RupeezyTech/pyvortex
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes