mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
Small tweaks to DCF and add thepassiveinvestor to requirements (#894)
* Add the Finance Database to the ETF menu * Add the Finance Database to the stocks/discovery menu * Update website with Finance Database info * Update website sections of the Finance Database * Update Finance Database functions to match layout of controller modules * Merge website links * Add missing thepassiveinvestor dependency * Fix website bug * Name change * Update website with include exchanges parameter * Add include_exchanges, make searching less case sensitive, change market cap to millions and minor improvements * Change help message a bit * Adjust industry name if needed due to adjustments in the financedatabase creation * Make export path more robust which otherwise breaks when you rename the GST folder * Make path selection robust to also work when you run the terminal from a different directory * Make finding the right folder more elegant
This commit is contained in:
@@ -220,6 +220,9 @@ def others_in_sector(ticker: str, sector: str, industry: str) -> List[str]:
|
||||
tickers : List[str]
|
||||
List of tickers in the same sector
|
||||
"""
|
||||
industry = industry.replace("—", " - ")
|
||||
industry = industry.replace("/", " ")
|
||||
|
||||
sister_ticks = list(
|
||||
fd.select_equities(country="United States", sector=sector, industry=industry)
|
||||
)
|
||||
|
||||
@@ -77,8 +77,7 @@ class CreateExcelFA:
|
||||
self.run_audit()
|
||||
|
||||
trypath = os.path.join(
|
||||
"..",
|
||||
"GamestonkTerminal",
|
||||
os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "..")),
|
||||
"exports",
|
||||
"excel",
|
||||
f"{self.ticker} {self.now}.xlsx",
|
||||
|
||||
1
requirements-full.txt
vendored
1
requirements-full.txt
vendored
@@ -224,6 +224,7 @@ termcolor==1.1.0
|
||||
terminado==0.12.1; python_version >= "3.6"
|
||||
testpath==0.5.0; python_version >= "3.7"
|
||||
textwrap3==0.9.2; python_version >= "3.6"
|
||||
thepassiveinvestor==1.0.9
|
||||
threadpoolctl==3.0.0; python_version >= "3.7"
|
||||
timeseries-cv==0.1.4; python_version >= "3.6" and python_version < "4.0"
|
||||
tokenize-rt==4.2.1; python_full_version >= "3.6.1"
|
||||
|
||||
1
requirements.txt
vendored
1
requirements.txt
vendored
@@ -201,6 +201,7 @@ termcolor==1.1.0
|
||||
terminado==0.12.1; python_version >= "3.6"
|
||||
testpath==0.5.0; python_version >= "3.7"
|
||||
textwrap3==0.9.2; python_version >= "3.6"
|
||||
thepassiveinvestor==1.0.9
|
||||
threadpoolctl==3.0.0; python_version >= "3.7"
|
||||
timeseries-cv==0.1.4; python_version >= "3.6" and python_version < "4.0"
|
||||
tokenize-rt==4.2.1; python_full_version >= "3.6.1"
|
||||
|
||||
Reference in New Issue
Block a user