quantplay 2.0.3__tar.gz → 2.0.4__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.3 → quantplay-2.0.4}/PKG-INFO +1 -1
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/broker/aliceblue.py +1 -1
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/broker/generics/broker.py +2 -2
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/broker/motilal.py +1 -1
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/broker/noren.py +1 -1
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/broker/upstox.py +1 -1
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/broker/xts.py +1 -1
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay.egg-info/PKG-INFO +1 -1
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay.egg-info/SOURCES.txt +1 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/setup.py +2 -1
- quantplay-2.0.4/tests/wrapper/aws/__init__.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/README.md +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/pyproject.toml +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/__init__.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/broker/__init__.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/broker/angelone.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/broker/auto_login/__init__.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/broker/auto_login/aliceblue.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/broker/finvasia_utils/__init__.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/broker/finvasia_utils/fa_noren.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/broker/five_paisa.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/broker/flattrade.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/broker/ft_utils/__init__.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/broker/ft_utils/flattrade_utils.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/broker/ft_utils/ft_noren.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/broker/generics/__init__.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/broker/iifl_xts.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/broker/kite_utils.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/broker/shoonya.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/broker/uplink/__init__.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/broker/uplink/uplink_utils.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/broker/xts_utils/Connect.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/broker/xts_utils/Exception.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/broker/xts_utils/InteractiveSocketClient.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/broker/xts_utils/__init__.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/broker/zerodha.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/exception/__init__.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/exception/exceptions.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/model/__init__.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/model/broker/__init__.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/model/broker/generics.py +0 -0
- /quantplay-2.0.3/quantplay/strategies/__init__.py → /quantplay-2.0.4/quantplay/py.typed +0 -0
- {quantplay-2.0.3/quantplay/strategies/equities → quantplay-2.0.4/quantplay/strategies}/__init__.py +0 -0
- {quantplay-2.0.3/quantplay/strategies/equities/intraday → quantplay-2.0.4/quantplay/strategies/equities}/__init__.py +0 -0
- {quantplay-2.0.3/quantplay/strategies/equities/overnight → quantplay-2.0.4/quantplay/strategies/equities/intraday}/__init__.py +0 -0
- {quantplay-2.0.3/quantplay/strategies/futures → quantplay-2.0.4/quantplay/strategies/equities/overnight}/__init__.py +0 -0
- {quantplay-2.0.3/quantplay/strategies/futures/overnight → quantplay-2.0.4/quantplay/strategies/futures}/__init__.py +0 -0
- {quantplay-2.0.3/quantplay/strategies/options → quantplay-2.0.4/quantplay/strategies/futures/overnight}/__init__.py +0 -0
- {quantplay-2.0.3/quantplay/strategies/options/intraday → quantplay-2.0.4/quantplay/strategies/options}/__init__.py +0 -0
- {quantplay-2.0.3/quantplay/utils → quantplay-2.0.4/quantplay/strategies/options/intraday}/__init__.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/strategies/options/intraday/ladder.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/strategies/options/intraday/musk.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/strategies/options/intraday/short_straddle.py +0 -0
- {quantplay-2.0.3/quantplay/wrapper → quantplay-2.0.4/quantplay/utils}/__init__.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/utils/constant.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/utils/exchange.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/utils/number_utils.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/utils/pickle_utils.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/utils/selenium_utils.py +0 -0
- {quantplay-2.0.3/quantplay/wrapper/aws → quantplay-2.0.4/quantplay/wrapper}/__init__.py +0 -0
- {quantplay-2.0.3/tests → quantplay-2.0.4/quantplay/wrapper/aws}/__init__.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay/wrapper/aws/s3.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay.egg-info/dependency_links.txt +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay.egg-info/requires.txt +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/quantplay.egg-info/top_level.txt +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/setup.cfg +0 -0
- {quantplay-2.0.3/tests/wrapper → quantplay-2.0.4/tests}/__init__.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/tests/conftest.py +0 -0
- {quantplay-2.0.3/tests/wrapper/aws → quantplay-2.0.4/tests/wrapper}/__init__.py +0 -0
- {quantplay-2.0.3 → quantplay-2.0.4}/tests/wrapper/aws/s3_test.py +0 -0
|
@@ -278,7 +278,7 @@ class Aliceblue(Broker):
|
|
|
278
278
|
|
|
279
279
|
self.modify_order(data) # type: ignore
|
|
280
280
|
|
|
281
|
-
def cancel_order(self, order_id: str) -> None:
|
|
281
|
+
def cancel_order(self, order_id: str, variety=None) -> None:
|
|
282
282
|
self.invoke_aliceblue_api(self.alice.cancel_order, nestordernmbr=order_id)
|
|
283
283
|
|
|
284
284
|
def profile(self):
|
|
@@ -897,7 +897,7 @@ class Broker:
|
|
|
897
897
|
return 25
|
|
898
898
|
|
|
899
899
|
def square_off_by_tag(
|
|
900
|
-
self, tag, dry_run=True, sleep_time=0.05
|
|
900
|
+
self, tag: str, dry_run=True, sleep_time=0.05
|
|
901
901
|
) -> List[Dict[str, Any]]:
|
|
902
902
|
self.exit_all_trigger_orders(tag=tag)
|
|
903
903
|
orders = self.orders(tag=tag)
|
|
@@ -1237,7 +1237,7 @@ class Broker:
|
|
|
1237
1237
|
"""
|
|
1238
1238
|
raise NotImplementedError
|
|
1239
1239
|
|
|
1240
|
-
def cancel_order(self, order_id: str) -> None:
|
|
1240
|
+
def cancel_order(self, order_id: str, variety: str | None = None) -> None:
|
|
1241
1241
|
"""Cancels order for the given order_id
|
|
1242
1242
|
|
|
1243
1243
|
Args:
|
|
@@ -340,7 +340,7 @@ class Motilal(Broker):
|
|
|
340
340
|
stop_max_attempt_number=2,
|
|
341
341
|
retry_on_exception=retry_exception,
|
|
342
342
|
)
|
|
343
|
-
def cancel_order(self, order_id: str) -> None:
|
|
343
|
+
def cancel_order(self, order_id: str, variety=None) -> None:
|
|
344
344
|
data = {"uniqueorderid": order_id}
|
|
345
345
|
|
|
346
346
|
try:
|
|
@@ -319,7 +319,7 @@ class Noren(Broker):
|
|
|
319
319
|
raise e
|
|
320
320
|
|
|
321
321
|
@timeit(MetricName="Finvasia:cancel_order")
|
|
322
|
-
def cancel_order(self, order_id):
|
|
322
|
+
def cancel_order(self, order_id, variety=None):
|
|
323
323
|
self.api.cancel_order(order_id) # type:ignore
|
|
324
324
|
|
|
325
325
|
def stream_order_data(self):
|
|
@@ -189,7 +189,7 @@ class Upstox(Broker):
|
|
|
189
189
|
return order_to_modify["order_id"]
|
|
190
190
|
|
|
191
191
|
@timeit(MetricName="Upstox:cancel_order")
|
|
192
|
-
def cancel_order(self, order_id: str) -> None:
|
|
192
|
+
def cancel_order(self, order_id: str, variety=None) -> None:
|
|
193
193
|
api_instance = upstox_client.OrderApi(self.api_client)
|
|
194
194
|
|
|
195
195
|
try:
|
|
@@ -583,7 +583,7 @@ class XTS(Broker):
|
|
|
583
583
|
|
|
584
584
|
return api_response["result"]["AppOrderID"]
|
|
585
585
|
|
|
586
|
-
def cancel_order(self, order_id):
|
|
586
|
+
def cancel_order(self, order_id, variety=None):
|
|
587
587
|
orders = self.orders()
|
|
588
588
|
|
|
589
589
|
order_data = orders.filter(pl.col("order_id").eq(str(order_id)))
|
|
@@ -21,12 +21,13 @@ requirements = [
|
|
|
21
21
|
setup(
|
|
22
22
|
name="quantplay",
|
|
23
23
|
long_description=Path("README.md").read_text(),
|
|
24
|
-
version="2.0.
|
|
24
|
+
version="2.0.4",
|
|
25
25
|
setup_requires=["pytest-runner"],
|
|
26
26
|
install_requires=requirements,
|
|
27
27
|
tests_require=[],
|
|
28
28
|
packages=find_packages(),
|
|
29
29
|
url="",
|
|
30
|
+
package_data={"quantplay": ["py.typed"]},
|
|
30
31
|
license="MIT",
|
|
31
32
|
author="",
|
|
32
33
|
author_email="",
|
|
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.3/quantplay/strategies/equities → quantplay-2.0.4/quantplay/strategies}/__init__.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
|