quantplay 2.1.84__tar.gz → 2.1.85__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.
- {quantplay-2.1.84 → quantplay-2.1.85}/PKG-INFO +1 -1
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/jainam_xts.py +15 -10
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay.egg-info/PKG-INFO +1 -1
- {quantplay-2.1.84 → quantplay-2.1.85}/setup.py +1 -1
- {quantplay-2.1.84 → quantplay-2.1.85}/README.md +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/pyproject.toml +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/__init__.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/__init__.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/aliceblue.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/angelone.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/angelone_utils/__init__.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/angelone_utils/angeloneWS.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/auto_login/__init__.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/auto_login/aliceblue.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/breeze/__init__.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/breeze/breeze_utils.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/broker_factory.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/dhan.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/finvasia_utils/__init__.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/finvasia_utils/fa_noren.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/five_paisa.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/flattrade.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/ft_utils/__init__.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/ft_utils/flattrade_utils.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/ft_utils/ft_noren.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/generics/__init__.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/generics/broker.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/icici_direct.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/iifl_xts.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/kite_utils.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/kotak.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/kotak_utils/__init__.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/kotak_utils/kotak_ws.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/kotak_utils/kotak_ws_lib.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/motilal.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/noren.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/shoonya.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/uplink/__init__.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/uplink/uplink_utils.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/upstox.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/xts.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/xts_utils/Connect.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/xts_utils/Exception.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/xts_utils/InteractiveSocketClient.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/xts_utils/__init__.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/xts_utils_v2/ConnectV2.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/xts_utils_v2/InteractiveSocketClientV2.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/xts_utils_v2/__init__.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/zerodha.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/core/__init__.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/core/strategy.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/exception/__init__.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/exception/exceptions.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/indicator/__init__.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/indicator/iv.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/model/__init__.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/model/broker.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/model/broker_response.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/model/generics.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/model/instrument_data.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/model/order_event.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/py.typed +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/strategy/__init__.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/strategy/iv_spike.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/strategy/obuy.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/utils/__init__.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/utils/caching.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/utils/constant.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/utils/exchange.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/utils/number_utils.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/utils/pickle_utils.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/utils/selenium_utils.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/wrapper/__init__.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/wrapper/aws/__init__.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/wrapper/aws/s3.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay/wrapper/redis.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay.egg-info/SOURCES.txt +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay.egg-info/dependency_links.txt +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay.egg-info/requires.txt +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/quantplay.egg-info/top_level.txt +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/setup.cfg +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/tests/__init__.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/tests/conftest.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/tests/wrapper/__init__.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/tests/wrapper/aws/__init__.py +0 -0
- {quantplay-2.1.84 → quantplay-2.1.85}/tests/wrapper/aws/s3_test.py +0 -0
|
@@ -11,6 +11,19 @@ from quantplay.broker.xts_utils_v2.InteractiveSocketClientV2 import (
|
|
|
11
11
|
from quantplay.exception.exceptions import InvalidArgumentException, TokenException
|
|
12
12
|
|
|
13
13
|
|
|
14
|
+
XTS_ROOT_URL_MAP = {
|
|
15
|
+
"A": "http://ctrade.jainam.in:3000",
|
|
16
|
+
"B": "https://smpc.jainam.in:14543",
|
|
17
|
+
"TEMP": "http://ctrade.jainam.in:3001",
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
XTS_LOGIN_URL_MAP = {
|
|
21
|
+
"http://ctrade.jainam.in:3000": "http://ctrade.jainam.in:4000",
|
|
22
|
+
"https://smpc.jainam.in:14543": "https://smpc.jainam.in:4003",
|
|
23
|
+
"http://ctrade.jainam.in:3001": "http://ctrade.jainam.in:4001",
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
14
27
|
class Jainam(XTS):
|
|
15
28
|
def __init__(
|
|
16
29
|
self,
|
|
@@ -26,11 +39,7 @@ class Jainam(XTS):
|
|
|
26
39
|
XTS_type: Literal["A", "B"] = "A",
|
|
27
40
|
) -> None:
|
|
28
41
|
super().__init__(
|
|
29
|
-
root_url=
|
|
30
|
-
"http://ctrade.jainam.in:3000"
|
|
31
|
-
if XTS_type == "A"
|
|
32
|
-
else "https://smpc.jainam.in:14543"
|
|
33
|
-
),
|
|
42
|
+
root_url=XTS_ROOT_URL_MAP[XTS_type],
|
|
34
43
|
api_key=api_key,
|
|
35
44
|
api_secret=api_secret,
|
|
36
45
|
md_api_key=md_api_key,
|
|
@@ -57,11 +66,7 @@ class Jainam(XTS):
|
|
|
57
66
|
root=self.root_url,
|
|
58
67
|
)
|
|
59
68
|
|
|
60
|
-
root =
|
|
61
|
-
"http://ctrade.jainam.in:4000"
|
|
62
|
-
if self.root_url == "http://ctrade.jainam.in:3000"
|
|
63
|
-
else "https://smpc.jainam.in:4003"
|
|
64
|
-
)
|
|
69
|
+
root = XTS_LOGIN_URL_MAP[self.root_url]
|
|
65
70
|
|
|
66
71
|
xt_core_response = self.invoke_xts_api(self.wrapper.session_login, root=root)
|
|
67
72
|
|
|
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
|
{quantplay-2.1.84 → quantplay-2.1.85}/quantplay/broker/xts_utils_v2/InteractiveSocketClientV2.py
RENAMED
|
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
|