removed while loop and fixed indent

This commit is contained in:
Deel18
2021-04-22 20:48:12 +01:00
parent 5d24c08248
commit f4715ff5d7
4 changed files with 16 additions and 15 deletions

View File

@@ -6,20 +6,7 @@ degiro = degiroapi.DeGiro()
def login():
while True:
login_prefr = input("Do you have 2FA activated? - y/n> ")
if login_prefr == "q":
break
elif login_prefr == "y":
topt = input("Enter TOPT> ")
degiro.login(user, pw, topt)
break
elif login_prefr == "n":
degiro.login(user, pw)
break
else:
print("Invalid input. Try again.")
input("Press enter to continue...")
degiro.login(user, pw)
def logout():

View File

@@ -75,7 +75,7 @@ class PortfolioController:
print("Ally:")
print(" allyhold view ally holdings")
print("Degiro:")
print(" dghold view dg holdings")
print(" dghold view dg holdings")
print("\nMerge:")
print(" hold view net holdings across all logins")
print("")

13
poetry.lock generated
View File

@@ -449,6 +449,14 @@ category = "main"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
[[package]]
name = "degiroapi"
version = "0.9.5"
description = "An unofficial API for the trading platform Degiro written in Python"
category = "main"
optional = false
python-versions = ">=3.6"
[[package]]
name = "deprecated"
version = "1.2.12"
@@ -2963,6 +2971,7 @@ prediction = ["fbprophet", "tensorflow", "pmdarima", "transformers", "flair", "t
lock-version = "1.1"
python-versions = "^3.6.8"
content-hash = "2b31cd4c709b83d1a6f1d516036c84dc611cc487ae5d499905658454fa8dba40"
content-hash = "9e1df0f5345f370f01ae7bf253636eb67fa5e089d659f7fcc4f83b0d231c30eb"
[metadata.files]
absl-py = [
@@ -3257,6 +3266,10 @@ defusedxml = [
{file = "defusedxml-0.7.1-py2.py3-none-any.whl", hash = "sha256:a352e7e428770286cc899e2542b6cdaedb2b4953ff269a210103ec58f6198a61"},
{file = "defusedxml-0.7.1.tar.gz", hash = "sha256:1bb3032db185915b62d7c6209c5a8792be6a32ab2fedacc84e01b52c51aa3e69"},
]
degiroapi = [
{file = "degiroapi-0.9.5-py3-none-any.whl", hash = "sha256:b8da984f9d066ce8c8ae1319f43b1883db36e893d37bf431b3a6737256fea2b1"},
{file = "degiroapi-0.9.5.tar.gz", hash = "sha256:439557333aff551aa7550e2e1be96db73ff792a86529ef73c775ff61d5addc57"},
]
deprecated = [
{file = "Deprecated-1.2.12-py2.py3-none-any.whl", hash = "sha256:08452d69b6b5bc66e8330adde0a4f8642e969b9e1702904d137eeb29c8ffc771"},
{file = "Deprecated-1.2.12.tar.gz", hash = "sha256:6d2de2de7931a968874481ef30208fd4e08da39177d61d3d4ebdf4366e7dbca1"},

View File

@@ -60,6 +60,7 @@ pyportfolioopt = "^1.4.1"
selenium = "^3.141.0"
python-coinmarketcap = "^0.2"
oandapyV20 = "^0.6.3"
degiroapi = "^0.9.5"
[tool.poetry.dev-dependencies]
pytest = "^6.2.2"