quantplay 2.0.66__tar.gz → 2.0.68__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.66 → quantplay-2.0.68}/PKG-INFO +1 -26
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/broker/dhan.py +5 -2
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/broker/flattrade.py +7 -12
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay.egg-info/PKG-INFO +1 -26
- {quantplay-2.0.66 → quantplay-2.0.68}/setup.py +1 -1
- {quantplay-2.0.66 → quantplay-2.0.68}/README.md +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/pyproject.toml +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/__init__.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/broker/__init__.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/broker/aliceblue.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/broker/angelone.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/broker/auto_login/__init__.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/broker/auto_login/aliceblue.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/broker/broker_factory.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/broker/finvasia_utils/__init__.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/broker/finvasia_utils/fa_noren.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/broker/five_paisa.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/broker/ft_utils/__init__.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/broker/ft_utils/flattrade_utils.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/broker/ft_utils/ft_noren.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/broker/generics/__init__.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/broker/generics/broker.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/broker/iifl_xts.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/broker/kite_utils.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/broker/kotak.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/broker/motilal.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/broker/noren.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/broker/shoonya.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/broker/uplink/__init__.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/broker/uplink/uplink_utils.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/broker/upstox.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/broker/xts.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/broker/xts_utils/Connect.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/broker/xts_utils/Exception.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/broker/xts_utils/InteractiveSocketClient.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/broker/xts_utils/__init__.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/broker/zerodha.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/exception/__init__.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/exception/exceptions.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/model/__init__.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/model/broker.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/model/generics.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/model/instrument_data.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/model/order_event.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/py.typed +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/utils/__init__.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/utils/caching.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/utils/constant.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/utils/exchange.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/utils/number_utils.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/utils/pickle_utils.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/utils/selenium_utils.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/wrapper/__init__.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/wrapper/aws/__init__.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay/wrapper/aws/s3.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay.egg-info/SOURCES.txt +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay.egg-info/dependency_links.txt +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay.egg-info/requires.txt +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/quantplay.egg-info/top_level.txt +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/setup.cfg +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/tests/__init__.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/tests/conftest.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/tests/wrapper/__init__.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/tests/wrapper/aws/__init__.py +0 -0
- {quantplay-2.0.66 → quantplay-2.0.68}/tests/wrapper/aws/s3_test.py +0 -0
|
@@ -1,36 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: quantplay
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.68
|
|
4
4
|
Summary: This python package will be stored in AWS CodeArtifact
|
|
5
5
|
Home-page:
|
|
6
6
|
Author:
|
|
7
7
|
Author-email:
|
|
8
8
|
License: MIT
|
|
9
|
-
Requires-Dist: setuptools
|
|
10
|
-
Requires-Dist: path
|
|
11
|
-
Requires-Dist: pyotp
|
|
12
|
-
Requires-Dist: retrying
|
|
13
|
-
Requires-Dist: boto3
|
|
14
|
-
Requires-Dist: numpy
|
|
15
|
-
Requires-Dist: websocket-client
|
|
16
|
-
Requires-Dist: smartapi-python
|
|
17
|
-
Requires-Dist: logzero
|
|
18
|
-
Requires-Dist: selenium
|
|
19
|
-
Requires-Dist: requests
|
|
20
|
-
Requires-Dist: pandas
|
|
21
|
-
Requires-Dist: pyarrow
|
|
22
|
-
Requires-Dist: polars
|
|
23
|
-
Requires-Dist: kiteconnect
|
|
24
|
-
Requires-Dist: pya3
|
|
25
|
-
Requires-Dist: py5paisa
|
|
26
|
-
Requires-Dist: upstox-python-sdk
|
|
27
|
-
Requires-Dist: undetected-chromedriver
|
|
28
|
-
Requires-Dist: cachetools
|
|
29
|
-
Requires-Dist: py_vollib
|
|
30
|
-
Requires-Dist: python-engineio
|
|
31
|
-
Requires-Dist: python-socketio
|
|
32
|
-
Requires-Dist: six
|
|
33
|
-
Requires-Dist: dhanhq
|
|
34
9
|
|
|
35
10
|
# Quantplay Alpha playground
|
|
36
11
|
|
|
@@ -272,7 +272,6 @@ class Dhan(Broker):
|
|
|
272
272
|
|
|
273
273
|
def orders(self, tag: str | None = None, add_ltp: bool = True) -> pl.DataFrame:
|
|
274
274
|
orders = self.invoke_dhan_api(self.dhan.get_order_list)
|
|
275
|
-
|
|
276
275
|
if not orders or "data" not in orders or not isinstance(orders["data"], list):
|
|
277
276
|
return pl.DataFrame(schema=self.orders_schema)
|
|
278
277
|
|
|
@@ -295,7 +294,6 @@ class Dhan(Broker):
|
|
|
295
294
|
"orderType": "order_type",
|
|
296
295
|
}
|
|
297
296
|
)
|
|
298
|
-
|
|
299
297
|
orders_df = orders_df.with_columns(
|
|
300
298
|
pl.when(pl.col("product") == "INTRADAY").then(pl.lit("MIS")).alias("product"),
|
|
301
299
|
pl.when(pl.col("exchange") == "NSE_FNO")
|
|
@@ -306,14 +304,19 @@ class Dhan(Broker):
|
|
|
306
304
|
.then(pl.lit("NSE"))
|
|
307
305
|
.when(pl.col("exchange") == "BSE_EQ")
|
|
308
306
|
.then(pl.lit("BSE"))
|
|
307
|
+
.otherwise(pl.col("exchange"))
|
|
309
308
|
.alias("exchange"),
|
|
310
309
|
pl.when(pl.col("order_type") == "STOP_LOSS_MARKET")
|
|
311
310
|
.then(pl.lit("SL-M"))
|
|
312
311
|
.when(pl.col("order_type") == "STOP_LOSS")
|
|
313
312
|
.then(pl.lit("SL"))
|
|
313
|
+
.otherwise(pl.col("order_type"))
|
|
314
314
|
.alias("order_type"),
|
|
315
315
|
pl.when(pl.col("status") == "TRADED")
|
|
316
316
|
.then(pl.lit("COMPLETE"))
|
|
317
|
+
.when(pl.col("status") == "PENDING")
|
|
318
|
+
.then(pl.lit("OPEN"))
|
|
319
|
+
.otherwise(pl.col("status"))
|
|
317
320
|
.alias("status"),
|
|
318
321
|
)
|
|
319
322
|
|
|
@@ -32,12 +32,6 @@ class FlatTrade(Noren):
|
|
|
32
32
|
try:
|
|
33
33
|
if user_token and user_id:
|
|
34
34
|
self.api.set_session(userid=user_id, usertoken=user_token)
|
|
35
|
-
response = {
|
|
36
|
-
"susertoken": user_token,
|
|
37
|
-
"actid": user_id,
|
|
38
|
-
"email": None,
|
|
39
|
-
"uname": None,
|
|
40
|
-
}
|
|
41
35
|
|
|
42
36
|
elif user_id and password and totp and api_key and api_secret:
|
|
43
37
|
token = self.login(
|
|
@@ -49,16 +43,17 @@ class FlatTrade(Noren):
|
|
|
49
43
|
)
|
|
50
44
|
|
|
51
45
|
self.api.set_session(userid=user_id, usertoken=token)
|
|
52
|
-
response = {
|
|
53
|
-
"susertoken": token,
|
|
54
|
-
"actid": user_id,
|
|
55
|
-
"email": None,
|
|
56
|
-
"uname": None,
|
|
57
|
-
}
|
|
58
46
|
|
|
59
47
|
else:
|
|
60
48
|
raise InvalidArgumentException("Missing Arguments")
|
|
61
49
|
|
|
50
|
+
response = {
|
|
51
|
+
"susertoken": user_token,
|
|
52
|
+
"actid": user_id,
|
|
53
|
+
"email": None,
|
|
54
|
+
"uname": None,
|
|
55
|
+
}
|
|
56
|
+
|
|
62
57
|
except InvalidArgumentException:
|
|
63
58
|
raise
|
|
64
59
|
except binascii.Error:
|
|
@@ -1,36 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: quantplay
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.68
|
|
4
4
|
Summary: This python package will be stored in AWS CodeArtifact
|
|
5
5
|
Home-page:
|
|
6
6
|
Author:
|
|
7
7
|
Author-email:
|
|
8
8
|
License: MIT
|
|
9
|
-
Requires-Dist: setuptools
|
|
10
|
-
Requires-Dist: path
|
|
11
|
-
Requires-Dist: pyotp
|
|
12
|
-
Requires-Dist: retrying
|
|
13
|
-
Requires-Dist: boto3
|
|
14
|
-
Requires-Dist: numpy
|
|
15
|
-
Requires-Dist: websocket-client
|
|
16
|
-
Requires-Dist: smartapi-python
|
|
17
|
-
Requires-Dist: logzero
|
|
18
|
-
Requires-Dist: selenium
|
|
19
|
-
Requires-Dist: requests
|
|
20
|
-
Requires-Dist: pandas
|
|
21
|
-
Requires-Dist: pyarrow
|
|
22
|
-
Requires-Dist: polars
|
|
23
|
-
Requires-Dist: kiteconnect
|
|
24
|
-
Requires-Dist: pya3
|
|
25
|
-
Requires-Dist: py5paisa
|
|
26
|
-
Requires-Dist: upstox-python-sdk
|
|
27
|
-
Requires-Dist: undetected-chromedriver
|
|
28
|
-
Requires-Dist: cachetools
|
|
29
|
-
Requires-Dist: py_vollib
|
|
30
|
-
Requires-Dist: python-engineio
|
|
31
|
-
Requires-Dist: python-socketio
|
|
32
|
-
Requires-Dist: six
|
|
33
|
-
Requires-Dist: dhanhq
|
|
34
9
|
|
|
35
10
|
# Quantplay Alpha playground
|
|
36
11
|
|
|
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
|
|
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
|