quantplay 2.1.69__tar.gz → 2.1.71__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.69 → quantplay-2.1.71}/PKG-INFO +1 -1
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/aliceblue.py +1 -1
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/icici_direct.py +9 -2
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/kotak.py +5 -1
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay.egg-info/PKG-INFO +1 -1
- {quantplay-2.1.69 → quantplay-2.1.71}/setup.py +1 -1
- {quantplay-2.1.69 → quantplay-2.1.71}/README.md +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/pyproject.toml +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/__init__.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/__init__.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/angelone.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/angelone_utils/__init__.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/angelone_utils/angeloneWS.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/auto_login/__init__.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/auto_login/aliceblue.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/breeze/__init__.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/breeze/breeze_utils.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/broker_factory.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/dhan.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/finvasia_utils/__init__.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/finvasia_utils/fa_noren.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/five_paisa.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/flattrade.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/ft_utils/__init__.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/ft_utils/flattrade_utils.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/ft_utils/ft_noren.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/generics/__init__.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/generics/broker.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/iifl_xts.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/jainam_xts.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/kite_utils.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/kotak_utils/__init__.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/kotak_utils/kotak_ws.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/kotak_utils/kotak_ws_lib.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/motilal.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/noren.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/shoonya.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/uplink/__init__.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/uplink/uplink_utils.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/upstox.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/xts.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/xts_utils/Connect.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/xts_utils/Exception.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/xts_utils/InteractiveSocketClient.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/xts_utils/__init__.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/xts_utils_v2/ConnectV2.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/xts_utils_v2/InteractiveSocketClientV2.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/xts_utils_v2/__init__.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/broker/zerodha.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/core/__init__.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/core/strategy.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/exception/__init__.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/exception/exceptions.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/indicator/__init__.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/indicator/iv.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/model/__init__.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/model/broker.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/model/broker_response.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/model/generics.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/model/instrument_data.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/model/order_event.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/py.typed +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/strategy/__init__.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/strategy/iv_spike.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/strategy/obuy.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/utils/__init__.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/utils/caching.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/utils/constant.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/utils/exchange.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/utils/number_utils.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/utils/pickle_utils.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/utils/selenium_utils.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/wrapper/__init__.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/wrapper/aws/__init__.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/wrapper/aws/s3.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay/wrapper/redis.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay.egg-info/SOURCES.txt +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay.egg-info/dependency_links.txt +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay.egg-info/requires.txt +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/quantplay.egg-info/top_level.txt +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/setup.cfg +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/tests/__init__.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/tests/conftest.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/tests/wrapper/__init__.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/tests/wrapper/aws/__init__.py +0 -0
- {quantplay-2.1.69 → quantplay-2.1.71}/tests/wrapper/aws/s3_test.py +0 -0
|
@@ -662,7 +662,7 @@ class Aliceblue(Broker):
|
|
|
662
662
|
try:
|
|
663
663
|
out_order: OrderUpdateEvent = {
|
|
664
664
|
"placed_by": order["actid"],
|
|
665
|
-
"tag": order["
|
|
665
|
+
"tag": order["remarks"],
|
|
666
666
|
"order_id": order["norenordno"],
|
|
667
667
|
"exchange": order["exch"],
|
|
668
668
|
"tradingsymbol": order["tsym"],
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
import urllib.error
|
|
1
2
|
from collections.abc import Callable
|
|
2
3
|
from datetime import date, datetime, timedelta
|
|
3
4
|
from typing import Any, Dict, Literal
|
|
4
5
|
|
|
5
6
|
import polars as pl
|
|
6
|
-
|
|
7
|
+
|
|
8
|
+
try:
|
|
9
|
+
from breeze_connect import BreezeConnect # type: ignore
|
|
10
|
+
except urllib.error.URLError:
|
|
11
|
+
BreezeConnect = None
|
|
12
|
+
pass
|
|
13
|
+
|
|
7
14
|
|
|
8
15
|
from quantplay.broker.breeze.breeze_utils import BreezeUtils
|
|
9
16
|
from quantplay.broker.generics.broker import Broker
|
|
@@ -67,7 +74,7 @@ class ICICI(Broker):
|
|
|
67
74
|
else:
|
|
68
75
|
self.session_token = session_token
|
|
69
76
|
|
|
70
|
-
if api_key and api_secret and self.session_token:
|
|
77
|
+
if api_key and api_secret and self.session_token and BreezeConnect:
|
|
71
78
|
self.wrapper = BreezeConnect(api_key) # type:ignore
|
|
72
79
|
self.wrapper.generate_session(api_secret, self.session_token) # type: ignore
|
|
73
80
|
else:
|
|
@@ -177,6 +177,10 @@ class Kotak(Broker):
|
|
|
177
177
|
}
|
|
178
178
|
),
|
|
179
179
|
)
|
|
180
|
+
|
|
181
|
+
if not view_token_resp.ok:
|
|
182
|
+
raise InvalidArgumentException(json.loads(session_init.content))
|
|
183
|
+
|
|
180
184
|
view_token = json.loads(view_token_resp.text)
|
|
181
185
|
|
|
182
186
|
view_token_val = view_token.get("data").get("token")
|
|
@@ -684,7 +688,7 @@ class Kotak(Broker):
|
|
|
684
688
|
return place_order_resp["nOrdNo"]
|
|
685
689
|
|
|
686
690
|
def cancel_order(self, order_id: str, variety: str | None = None) -> None:
|
|
687
|
-
body = {"on": order_id, "am": "
|
|
691
|
+
body = {"on": order_id, "am": "NO"}
|
|
688
692
|
|
|
689
693
|
self.request("cancel_order", body=body)
|
|
690
694
|
|
|
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.69 → quantplay-2.1.71}/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
|