Spaces:
Running
Running
Merge branch 'main' of https://huggingface.co/spaces/RobertCastagna/Fin_Research
Browse files- pages/1_Fundamentals.py +2 -1
- requirements.txt +6 -10
pages/1_Fundamentals.py
CHANGED
|
@@ -52,7 +52,8 @@ def get_company_metrics(ticker):
|
|
| 52 |
|
| 53 |
def get_equity_gains(ticker, period):
|
| 54 |
sp = yf.Ticker(f"{ticker}")
|
| 55 |
-
sp_hist = sp.history(period=f'{period}d')
|
|
|
|
| 56 |
sp500 = sp_hist.reset_index()
|
| 57 |
|
| 58 |
todays_close = sp500.iloc[-1]
|
|
|
|
| 52 |
|
| 53 |
def get_equity_gains(ticker, period):
|
| 54 |
sp = yf.Ticker(f"{ticker}")
|
| 55 |
+
sp_hist = sp.history(period=f'{period}d')
|
| 56 |
+
print(sp_hist)#[['Close','Dividends']]
|
| 57 |
sp500 = sp_hist.reset_index()
|
| 58 |
|
| 59 |
todays_close = sp500.iloc[-1]
|
requirements.txt
CHANGED
|
@@ -1,25 +1,21 @@
|
|
| 1 |
sqlalchemy
|
| 2 |
psycopg2-binary
|
| 3 |
openbb==4.1.4
|
|
|
|
| 4 |
riskfolio-lib==5.0.1
|
| 5 |
transformers==4.36.2
|
| 6 |
#pathos==0.2.9
|
|
|
|
| 7 |
pandas==1.5.3
|
| 8 |
-
tqdm==4.42.1
|
| 9 |
-
beautifulsoup4==4.12.3
|
| 10 |
-
click==7.0
|
| 11 |
-
cssutils==1.0.2
|
| 12 |
numpy==1.24.4
|
| 13 |
-
#lxml==4.9.1
|
| 14 |
requests>=2.31.0
|
| 15 |
-
urllib3>=1.26.7
|
| 16 |
-
pandas>=1.5.3
|
| 17 |
plotly==5.14.1
|
| 18 |
-
requests==2.32.3
|
| 19 |
pygwalker==0.3.9
|
| 20 |
-
streamlit>=1.27.0
|
| 21 |
regex==2024.5.15
|
| 22 |
yfinance==0.2.28
|
| 23 |
-
python-dotenv==1.0.1
|
| 24 |
asyncio==3.4.3
|
| 25 |
nest_asyncio==1.6.0
|
|
|
|
| 1 |
sqlalchemy
|
| 2 |
psycopg2-binary
|
| 3 |
openbb==4.1.4
|
| 4 |
+
torch==2.3.1
|
| 5 |
riskfolio-lib==5.0.1
|
| 6 |
transformers==4.36.2
|
| 7 |
#pathos==0.2.9
|
| 8 |
+
matplotlib==3.7.3
|
| 9 |
pandas==1.5.3
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
numpy==1.24.4
|
| 11 |
+
##lxml==4.9.1
|
| 12 |
requests>=2.31.0
|
|
|
|
|
|
|
| 13 |
plotly==5.14.1
|
| 14 |
+
#requests==2.32.3
|
| 15 |
pygwalker==0.3.9
|
| 16 |
+
#streamlit>=1.27.0
|
| 17 |
regex==2024.5.15
|
| 18 |
yfinance==0.2.28
|
| 19 |
+
#python-dotenv==1.0.1
|
| 20 |
asyncio==3.4.3
|
| 21 |
nest_asyncio==1.6.0
|