quantplay 2.0.54__tar.gz → 2.0.55__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.54 → quantplay-2.0.55}/PKG-INFO +1 -1
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/broker/broker_factory.py +8 -5
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay.egg-info/PKG-INFO +1 -1
- {quantplay-2.0.54 → quantplay-2.0.55}/setup.py +1 -1
- {quantplay-2.0.54 → quantplay-2.0.55}/README.md +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/pyproject.toml +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/__init__.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/broker/__init__.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/broker/aliceblue.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/broker/angelone.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/broker/auto_login/__init__.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/broker/auto_login/aliceblue.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/broker/dhan.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/broker/finvasia_utils/__init__.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/broker/finvasia_utils/fa_noren.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/broker/five_paisa.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/broker/flattrade.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/broker/ft_utils/__init__.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/broker/ft_utils/flattrade_utils.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/broker/ft_utils/ft_noren.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/broker/generics/__init__.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/broker/generics/broker.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/broker/iifl_xts.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/broker/kite_utils.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/broker/kotak.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/broker/motilal.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/broker/noren.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/broker/shoonya.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/broker/uplink/__init__.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/broker/uplink/uplink_utils.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/broker/upstox.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/broker/xts.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/broker/xts_utils/Connect.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/broker/xts_utils/Exception.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/broker/xts_utils/InteractiveSocketClient.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/broker/xts_utils/__init__.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/broker/zerodha.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/exception/__init__.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/exception/exceptions.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/model/__init__.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/model/broker.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/model/generics.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/model/instrument_data.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/model/order_event.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/py.typed +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/utils/__init__.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/utils/caching.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/utils/constant.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/utils/exchange.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/utils/number_utils.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/utils/pickle_utils.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/utils/selenium_utils.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/wrapper/__init__.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/wrapper/aws/__init__.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay/wrapper/aws/s3.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay.egg-info/SOURCES.txt +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay.egg-info/dependency_links.txt +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay.egg-info/requires.txt +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/quantplay.egg-info/top_level.txt +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/setup.cfg +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/tests/__init__.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/tests/conftest.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/tests/wrapper/__init__.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/tests/wrapper/aws/__init__.py +0 -0
- {quantplay-2.0.54 → quantplay-2.0.55}/tests/wrapper/aws/s3_test.py +0 -0
|
@@ -90,14 +90,16 @@ broker_required_args = {
|
|
|
90
90
|
|
|
91
91
|
broker_generate_args = {
|
|
92
92
|
Broker.ZERODHA: set(["user_id", "api_key", "api_secret", "password", "totp"]),
|
|
93
|
-
Broker.
|
|
94
|
-
Broker.FLATTRADE: set(["user_id", "user_token"]),
|
|
93
|
+
Broker.FLATTRADE: set(["user_id" "api_secret", "password", "totp_key", "api_key"]),
|
|
95
94
|
Broker.IIFL_XTS: set(["user_id", "wrapper", "md_wrapper"]),
|
|
96
95
|
Broker.MOTILAL: set(["user_id", "password", "api_key", "two_fa", "totp"]),
|
|
97
96
|
Broker.ALICEBLUE: set(["user_id", "api_key"]),
|
|
98
97
|
Broker.DHAN: set(["user_id", "access_token"]),
|
|
99
98
|
Broker.FIVEPAISA_OPENAPI: set(["user_id", "client"]),
|
|
100
99
|
Broker.ANGELONE: set(["user_id", "api_key", "mpin", "totp"]),
|
|
100
|
+
Broker.FINVASIA: set(
|
|
101
|
+
["api_secret", "imei", "password", "totp_key", "user_id", "vendor_code"]
|
|
102
|
+
),
|
|
101
103
|
Broker.KOTAK: set(
|
|
102
104
|
["consumer_key", "consumer_secret", "mobilenumber", "password", "mpin"]
|
|
103
105
|
),
|
|
@@ -305,6 +307,8 @@ class BrokerFactory:
|
|
|
305
307
|
username = broker_info["username"]
|
|
306
308
|
nickname = broker_info["nickname"]
|
|
307
309
|
|
|
310
|
+
self.validate_broker_args(broker_info)
|
|
311
|
+
|
|
308
312
|
broker_key = self.get_broker_key(username, nickname)
|
|
309
313
|
|
|
310
314
|
broker_data = broker_info["broker_data"]
|
|
@@ -318,14 +322,14 @@ class BrokerFactory:
|
|
|
318
322
|
load_instrument=load_instrument,
|
|
319
323
|
)
|
|
320
324
|
|
|
321
|
-
|
|
325
|
+
elif broker == Broker.DHAN:
|
|
322
326
|
broker_client = Dhan(
|
|
323
327
|
user_id=broker_data["user_id"],
|
|
324
328
|
access_token=broker_data["access_token"],
|
|
325
329
|
load_instrument=load_instrument,
|
|
326
330
|
)
|
|
327
331
|
|
|
328
|
-
|
|
332
|
+
elif broker == Broker.KOTAK:
|
|
329
333
|
broker_client = Kotak(
|
|
330
334
|
configuration=broker_data["configuration"],
|
|
331
335
|
load_instrument=load_instrument,
|
|
@@ -413,7 +417,6 @@ class BrokerFactory:
|
|
|
413
417
|
if broker_key in self.client_broker_data:
|
|
414
418
|
return self.client_broker_data[broker_key]
|
|
415
419
|
|
|
416
|
-
self.validate_broker_args(broker_info)
|
|
417
420
|
broker_client = self.store_broker_client(broker_info, load_instrument=False)
|
|
418
421
|
|
|
419
422
|
if broker_client is not None:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|