quantplay 2.1.87__tar.gz → 2.1.89__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.87 → quantplay-2.1.89}/PKG-INFO +1 -1
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/auto_login/aliceblue.py +9 -12
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay.egg-info/PKG-INFO +1 -1
- {quantplay-2.1.87 → quantplay-2.1.89}/setup.py +1 -1
- {quantplay-2.1.87 → quantplay-2.1.89}/README.md +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/pyproject.toml +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/__init__.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/__init__.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/aliceblue.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/angelone.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/angelone_utils/__init__.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/angelone_utils/angeloneWS.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/auto_login/__init__.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/breeze/__init__.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/breeze/breeze_utils.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/broker_factory.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/dhan.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/finvasia_utils/__init__.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/finvasia_utils/fa_noren.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/five_paisa.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/flattrade.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/ft_utils/__init__.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/ft_utils/flattrade_utils.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/ft_utils/ft_noren.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/generics/__init__.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/generics/broker.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/icici_direct.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/iifl_xts.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/jainam_xts.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/kite_utils.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/kotak.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/kotak_utils/__init__.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/kotak_utils/kotak_ws.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/kotak_utils/kotak_ws_lib.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/motilal.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/noren.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/shoonya.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/uplink/__init__.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/uplink/uplink_utils.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/upstox.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/xts.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/xts_utils/Connect.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/xts_utils/Exception.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/xts_utils/InteractiveSocketClient.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/xts_utils/__init__.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/xts_utils_v2/ConnectV2.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/xts_utils_v2/InteractiveSocketClientV2.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/xts_utils_v2/__init__.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/broker/zerodha.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/core/__init__.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/core/strategy.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/exception/__init__.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/exception/exceptions.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/indicator/__init__.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/indicator/iv.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/model/__init__.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/model/broker.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/model/broker_response.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/model/generics.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/model/instrument_data.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/model/order_event.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/py.typed +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/strategy/__init__.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/strategy/iv_spike.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/strategy/obuy.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/utils/__init__.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/utils/caching.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/utils/constant.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/utils/exchange.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/utils/number_utils.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/utils/pickle_utils.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/utils/selenium_utils.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/wrapper/__init__.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/wrapper/aws/__init__.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/wrapper/aws/s3.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay/wrapper/redis.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay.egg-info/SOURCES.txt +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay.egg-info/dependency_links.txt +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay.egg-info/requires.txt +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/quantplay.egg-info/top_level.txt +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/setup.cfg +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/tests/__init__.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/tests/conftest.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/tests/wrapper/__init__.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/tests/wrapper/aws/__init__.py +0 -0
- {quantplay-2.1.87 → quantplay-2.1.89}/tests/wrapper/aws/s3_test.py +0 -0
|
@@ -34,38 +34,34 @@ class AliceblueLogin:
|
|
|
34
34
|
raise InvalidArgumentException("Invalid API Key")
|
|
35
35
|
|
|
36
36
|
@staticmethod
|
|
37
|
-
def
|
|
38
|
-
login = '//*[@id="
|
|
37
|
+
def click_on_next(driver: Chrome):
|
|
38
|
+
login = '//*[@id="buttonLabel_Next"]'
|
|
39
39
|
login = driver.find_element("xpath", login)
|
|
40
40
|
login.click()
|
|
41
41
|
|
|
42
42
|
@staticmethod
|
|
43
43
|
def enter_user_id(driver: Chrome, user_id: str):
|
|
44
44
|
time.sleep(0.5)
|
|
45
|
-
user_id_xpath = '//*[@id="
|
|
45
|
+
user_id_xpath = '//*[@id="new_login_userId"]'
|
|
46
46
|
driver.find_element("xpath", user_id_xpath).send_keys(user_id) # type: ignore
|
|
47
47
|
|
|
48
48
|
time.sleep(0.5)
|
|
49
|
-
next_xpath = '//*[@id="userId_btn_label"]'
|
|
50
|
-
driver.find_element("xpath", next_xpath).click()
|
|
51
49
|
|
|
52
50
|
@staticmethod
|
|
53
51
|
def enter_password(driver: Chrome, password: str):
|
|
54
52
|
time.sleep(0.5)
|
|
55
|
-
password_xpath = '//*[@id="
|
|
53
|
+
password_xpath = '//*[@id="new_login_password"]'
|
|
56
54
|
driver.find_element("xpath", password_xpath).send_keys(password) # type: ignore
|
|
57
55
|
|
|
58
56
|
time.sleep(0.5)
|
|
59
|
-
next_xpath = '//*[@id="password_btn"]'
|
|
60
|
-
driver.find_element("xpath", next_xpath).click()
|
|
61
57
|
|
|
62
58
|
@staticmethod
|
|
63
59
|
def enter_totp(driver: Chrome, totp: str):
|
|
64
60
|
time.sleep(1.5)
|
|
65
|
-
totp_xpath = '//*[@id="
|
|
61
|
+
totp_xpath = '//*[@id="new_login_otp"]'
|
|
66
62
|
driver.find_element("xpath", totp_xpath).send_keys(totp) # type: ignore
|
|
67
63
|
|
|
68
|
-
|
|
64
|
+
time.sleep(0.5)
|
|
69
65
|
# next_xpath = '//*[@id="totp_btn"]'
|
|
70
66
|
# driver.find_element("xpath", next_xpath).click()
|
|
71
67
|
|
|
@@ -80,11 +76,12 @@ class AliceblueLogin:
|
|
|
80
76
|
driver = Selenium().get_browser(headless=True)
|
|
81
77
|
|
|
82
78
|
driver.get("https://ant.aliceblueonline.com/")
|
|
83
|
-
|
|
79
|
+
|
|
84
80
|
AliceblueLogin.enter_user_id(driver, user_id)
|
|
85
81
|
AliceblueLogin.enter_password(driver, password)
|
|
82
|
+
AliceblueLogin.click_on_next(driver)
|
|
86
83
|
AliceblueLogin.enter_totp(driver, pyotp.TOTP(str(totp)).now())
|
|
87
|
-
|
|
84
|
+
AliceblueLogin.click_on_next(driver)
|
|
88
85
|
except binascii.Error:
|
|
89
86
|
raise InvalidArgumentException("Invalid TOTP key provided")
|
|
90
87
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
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.87 → quantplay-2.1.89}/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
|