quantplay 2.0.149__tar.gz → 2.0.151__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.0.149 → quantplay-2.0.151}/PKG-INFO +6 -6
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/broker_factory.py +28 -28
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/icici_direct.py +2 -4
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay.egg-info/PKG-INFO +6 -6
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay.egg-info/requires.txt +5 -5
- {quantplay-2.0.149 → quantplay-2.0.151}/setup.py +1 -1
- {quantplay-2.0.149 → quantplay-2.0.151}/README.md +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/pyproject.toml +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/__init__.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/__init__.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/aliceblue.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/angelone.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/auto_login/__init__.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/auto_login/aliceblue.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/breeze/__init__.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/breeze/breeze_utils.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/dhan.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/finvasia_utils/__init__.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/finvasia_utils/fa_noren.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/five_paisa.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/flattrade.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/ft_utils/__init__.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/ft_utils/flattrade_utils.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/ft_utils/ft_noren.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/generics/__init__.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/generics/broker.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/iifl_xts.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/jainam_xts.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/kite_utils.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/kotak.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/motilal.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/noren.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/shoonya.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/uplink/__init__.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/uplink/uplink_utils.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/upstox.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/xts.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/xts_utils/Connect.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/xts_utils/Exception.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/xts_utils/InteractiveSocketClient.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/xts_utils/__init__.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/broker/zerodha.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/exception/__init__.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/exception/exceptions.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/model/__init__.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/model/broker.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/model/broker_response.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/model/generics.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/model/instrument_data.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/model/order_event.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/py.typed +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/utils/__init__.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/utils/caching.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/utils/constant.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/utils/exchange.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/utils/number_utils.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/utils/pickle_utils.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/utils/selenium_utils.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/wrapper/__init__.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/wrapper/aws/__init__.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay/wrapper/aws/s3.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay.egg-info/SOURCES.txt +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay.egg-info/dependency_links.txt +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/quantplay.egg-info/top_level.txt +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/setup.cfg +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/tests/__init__.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/tests/conftest.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/tests/wrapper/__init__.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/tests/wrapper/aws/__init__.py +0 -0
- {quantplay-2.0.149 → quantplay-2.0.151}/tests/wrapper/aws/s3_test.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: quantplay
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.151
|
|
4
4
|
Summary: This python package will be stored in AWS CodeArtifact
|
|
5
5
|
Home-page:
|
|
6
6
|
Author:
|
|
@@ -14,18 +14,18 @@ Requires-Dist: boto3
|
|
|
14
14
|
Requires-Dist: s3fs
|
|
15
15
|
Requires-Dist: numpy
|
|
16
16
|
Requires-Dist: websocket-client
|
|
17
|
-
Requires-Dist: smartapi-python
|
|
17
|
+
Requires-Dist: smartapi-python==1.5.0
|
|
18
18
|
Requires-Dist: logzero
|
|
19
19
|
Requires-Dist: selenium
|
|
20
20
|
Requires-Dist: requests
|
|
21
21
|
Requires-Dist: pandas
|
|
22
22
|
Requires-Dist: pyarrow
|
|
23
23
|
Requires-Dist: polars
|
|
24
|
-
Requires-Dist: breeze_connect
|
|
24
|
+
Requires-Dist: breeze_connect==1.0.57
|
|
25
25
|
Requires-Dist: kiteconnect
|
|
26
|
-
Requires-Dist: pya3
|
|
27
|
-
Requires-Dist: py5paisa
|
|
28
|
-
Requires-Dist: upstox-python-sdk
|
|
26
|
+
Requires-Dist: pya3==1.0.29
|
|
27
|
+
Requires-Dist: py5paisa==0.7.19
|
|
28
|
+
Requires-Dist: upstox-python-sdk==2.6.0
|
|
29
29
|
Requires-Dist: undetected-chromedriver
|
|
30
30
|
Requires-Dist: cachetools
|
|
31
31
|
Requires-Dist: py_vollib
|
|
@@ -10,7 +10,7 @@ from quantplay.broker.angelone import AngelOne
|
|
|
10
10
|
from quantplay.broker.dhan import Dhan
|
|
11
11
|
from quantplay.broker.five_paisa import FivePaisa
|
|
12
12
|
from quantplay.broker.flattrade import FlatTrade
|
|
13
|
-
|
|
13
|
+
from quantplay.broker.icici_direct import ICICI
|
|
14
14
|
from quantplay.broker.iifl_xts import IIFL as IIFL_XTS
|
|
15
15
|
from quantplay.broker.jainam_xts import Jainam
|
|
16
16
|
from quantplay.broker.kotak import Kotak
|
|
@@ -35,7 +35,7 @@ BrokerType = (
|
|
|
35
35
|
| Kotak
|
|
36
36
|
| Dhan
|
|
37
37
|
| Jainam
|
|
38
|
-
|
|
38
|
+
| ICICI
|
|
39
39
|
)
|
|
40
40
|
|
|
41
41
|
instrument_cache = InstrumentCache()
|
|
@@ -261,25 +261,25 @@ class BrokerFactory:
|
|
|
261
261
|
broker_client.api.close_websocket()
|
|
262
262
|
broker_data["user_token"] = broker_client.user_token
|
|
263
263
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
264
|
+
elif broker == Broker.ICICI:
|
|
265
|
+
if "password" in broker_data:
|
|
266
|
+
broker_client = ICICI(
|
|
267
|
+
api_key=broker_data["api_key"],
|
|
268
|
+
api_secret=broker_data["api_secret"],
|
|
269
|
+
user_id=broker_data["user_id"],
|
|
270
|
+
password=broker_data["password"],
|
|
271
|
+
totp=broker_data["totp"],
|
|
272
|
+
session_token=broker_data["session_token"],
|
|
273
|
+
load_instrument=False,
|
|
274
|
+
)
|
|
275
|
+
else:
|
|
276
|
+
broker_client = ICICI(
|
|
277
|
+
api_key=broker_data["api_key"],
|
|
278
|
+
api_secret=broker_data["api_secret"],
|
|
279
|
+
session_token=broker_data["session_token"],
|
|
280
|
+
load_instrument=False,
|
|
281
|
+
)
|
|
282
|
+
broker_data["session_token"] = broker_client.session_token
|
|
283
283
|
|
|
284
284
|
elif broker == Broker.FLATTRADE:
|
|
285
285
|
broker_client = FlatTrade(
|
|
@@ -425,13 +425,13 @@ class BrokerFactory:
|
|
|
425
425
|
load_instrument=load_instrument,
|
|
426
426
|
)
|
|
427
427
|
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
428
|
+
elif broker == Broker.ICICI:
|
|
429
|
+
broker_client = ICICI(
|
|
430
|
+
api_key=broker_data["api_key"],
|
|
431
|
+
api_secret=broker_data["api_secret"],
|
|
432
|
+
session_token=broker_data["session_token"],
|
|
433
|
+
load_instrument=load_instrument,
|
|
434
|
+
)
|
|
435
435
|
|
|
436
436
|
elif broker == Broker.FLATTRADE:
|
|
437
437
|
broker_client = FlatTrade(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from collections.abc import Callable
|
|
2
2
|
from datetime import datetime, date, timedelta
|
|
3
3
|
from typing import Any, Literal, Dict
|
|
4
|
-
from breeze_connect
|
|
4
|
+
from breeze_connect import BreezeConnect # type: ignore
|
|
5
5
|
|
|
6
6
|
from quantplay.broker.breeze.breeze_utils import BreezeUtils
|
|
7
7
|
from quantplay.exception import QuantplayOrderPlacementException, InvalidArgumentException
|
|
@@ -135,8 +135,6 @@ class ICICI(Broker):
|
|
|
135
135
|
strike_price=str(strike_price),
|
|
136
136
|
)
|
|
137
137
|
|
|
138
|
-
print(data)
|
|
139
|
-
|
|
140
138
|
if data is None or len(data) == 0:
|
|
141
139
|
raise NoDataException(f"Historical Data For {data}")
|
|
142
140
|
|
|
@@ -454,7 +452,7 @@ class ICICI(Broker):
|
|
|
454
452
|
|
|
455
453
|
raise Exception(data["Error"])
|
|
456
454
|
|
|
457
|
-
return data
|
|
455
|
+
return data.get("Success", None)
|
|
458
456
|
|
|
459
457
|
except Exception as e:
|
|
460
458
|
raise (e)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: quantplay
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.151
|
|
4
4
|
Summary: This python package will be stored in AWS CodeArtifact
|
|
5
5
|
Home-page:
|
|
6
6
|
Author:
|
|
@@ -14,18 +14,18 @@ Requires-Dist: boto3
|
|
|
14
14
|
Requires-Dist: s3fs
|
|
15
15
|
Requires-Dist: numpy
|
|
16
16
|
Requires-Dist: websocket-client
|
|
17
|
-
Requires-Dist: smartapi-python
|
|
17
|
+
Requires-Dist: smartapi-python==1.5.0
|
|
18
18
|
Requires-Dist: logzero
|
|
19
19
|
Requires-Dist: selenium
|
|
20
20
|
Requires-Dist: requests
|
|
21
21
|
Requires-Dist: pandas
|
|
22
22
|
Requires-Dist: pyarrow
|
|
23
23
|
Requires-Dist: polars
|
|
24
|
-
Requires-Dist: breeze_connect
|
|
24
|
+
Requires-Dist: breeze_connect==1.0.57
|
|
25
25
|
Requires-Dist: kiteconnect
|
|
26
|
-
Requires-Dist: pya3
|
|
27
|
-
Requires-Dist: py5paisa
|
|
28
|
-
Requires-Dist: upstox-python-sdk
|
|
26
|
+
Requires-Dist: pya3==1.0.29
|
|
27
|
+
Requires-Dist: py5paisa==0.7.19
|
|
28
|
+
Requires-Dist: upstox-python-sdk==2.6.0
|
|
29
29
|
Requires-Dist: undetected-chromedriver
|
|
30
30
|
Requires-Dist: cachetools
|
|
31
31
|
Requires-Dist: py_vollib
|
|
@@ -6,18 +6,18 @@ boto3
|
|
|
6
6
|
s3fs
|
|
7
7
|
numpy
|
|
8
8
|
websocket-client
|
|
9
|
-
smartapi-python
|
|
9
|
+
smartapi-python==1.5.0
|
|
10
10
|
logzero
|
|
11
11
|
selenium
|
|
12
12
|
requests
|
|
13
13
|
pandas
|
|
14
14
|
pyarrow
|
|
15
15
|
polars
|
|
16
|
-
breeze_connect
|
|
16
|
+
breeze_connect==1.0.57
|
|
17
17
|
kiteconnect
|
|
18
|
-
pya3
|
|
19
|
-
py5paisa
|
|
20
|
-
upstox-python-sdk
|
|
18
|
+
pya3==1.0.29
|
|
19
|
+
py5paisa==0.7.19
|
|
20
|
+
upstox-python-sdk==2.6.0
|
|
21
21
|
undetected-chromedriver
|
|
22
22
|
cachetools
|
|
23
23
|
py_vollib
|
|
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.0.149 → quantplay-2.0.151}/quantplay/broker/xts_utils/InteractiveSocketClient.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
|