Fix yf FA quarterly issue (#2017)

* Fixed issue with yf

* Added todo
This commit is contained in:
Colin Delahunty
2022-06-29 19:09:37 -04:00
committed by GitHub
parent 248deed202
commit 282132f059

View File

@@ -543,6 +543,10 @@ class FundamentalAnalysisController(StockBaseController):
limit=5,
)
if ns_parser:
# TODO: Switch to actually getting data
if ns_parser.source == "yf" and ns_parser.b_quarter:
text = "Quarterly data currently unavailable for yfinance"
console.print(f"[red]{text}, showing yearly.[/red]\n")
if ns_parser.source == "av":
av_view.display_income_statement(
ticker=self.ticker,
@@ -612,6 +616,10 @@ class FundamentalAnalysisController(StockBaseController):
limit=5,
)
if ns_parser:
# TODO: Switch to actually getting data
if ns_parser.source == "yf" and ns_parser.b_quarter:
text = "Quarterly data currently unavailable for yfinance"
console.print(f"[red]{text}, showing yearly.[/red]\n")
if ns_parser.source == "av":
av_view.display_balance_sheet(
ticker=self.ticker,
@@ -687,6 +695,10 @@ class FundamentalAnalysisController(StockBaseController):
export_allowed=EXPORT_ONLY_RAW_DATA_ALLOWED,
)
if ns_parser:
# TODO: Switch to actually getting data
if ns_parser.source == "yf" and ns_parser.b_quarter:
text = "Quarterly data currently unavailable for yfinance"
console.print(f"[red]{text}, showing yearly.[/red]\n")
if ns_parser.source == "av":
av_view.display_cash_flow(
ticker=self.ticker,