Update terminal.py

This commit is contained in:
buzzCraft
2021-03-15 17:55:20 +01:00
parent 0fc1073303
commit b39706d873

View File

@@ -119,17 +119,21 @@ def main():
main_cmd = True
elif ns_known_args.opt == "candle":
if s_ticker:
candle(
s_ticker, (datetime.now() - timedelta(days=180)).strftime("%Y-%m-%d")
)
else:
print("No ticker selected. Use 'load ticker' to load the ticker you want to look at.")
main_cmd = True
elif ns_known_args.opt == "view":
if s_ticker:
view(l_args, s_ticker, s_start, s_interval, df_stock)
else:
print("No ticker selected. Use 'load ticker' to load the ticker you want to look at.")
main_cmd = True