lidp commited on
Commit
2083caf
·
1 Parent(s): 6dc139b

Fix volcengine yfinance confliction (#2386)

Browse files

### What problem does this PR solve?

#2379

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

agent/component/yahoofinance.py CHANGED
@@ -62,15 +62,8 @@ class YahooFinance(ComponentBase, ABC):
62
  yohoo_res.append({"content": "info:\n" + pd.Series(msft.info).to_markdown() + "\n"})
63
  if self._param.history:
64
  yohoo_res.append({"content": "history:\n" + msft.history().to_markdown() + "\n"})
65
- if self._param.count:
66
- yohoo_res.append({"content": "count:\n" + msft.get_shares_full().to_markdown() + "\n"})
67
  if self._param.financials:
68
- yohoo_res.append({"content": "calendar:\n" + pd.DataFrame(msft.calendar).to_markdown + "\n"})
69
- yohoo_res.append({"content": "sec_filings:\n" + pd.DataFrame(msft.sec_filings).to_markdown() + "\n"})
70
- if self._param.income_stmt:
71
- yohoo_res.append({"content": "income statement:\n" + msft.income_stmt.to_markdown() + "\n"})
72
- yohoo_res.append(
73
- {"content": "quarterly income statement:\n" + msft.quarterly_income_stmt.to_markdown() + "\n"})
74
  if self._param.balance_sheet:
75
  yohoo_res.append({"content": "balance sheet:\n" + msft.balance_sheet.to_markdown() + "\n"})
76
  yohoo_res.append(
 
62
  yohoo_res.append({"content": "info:\n" + pd.Series(msft.info).to_markdown() + "\n"})
63
  if self._param.history:
64
  yohoo_res.append({"content": "history:\n" + msft.history().to_markdown() + "\n"})
 
 
65
  if self._param.financials:
66
+ yohoo_res.append({"content": "calendar:\n" + pd.DataFrame(msft.calendar).to_markdown() + "\n"})
 
 
 
 
 
67
  if self._param.balance_sheet:
68
  yohoo_res.append({"content": "balance sheet:\n" + msft.balance_sheet.to_markdown() + "\n"})
69
  yohoo_res.append(
requirements.txt CHANGED
@@ -101,5 +101,5 @@ wikipedia==1.4.0
101
  word2number==1.1
102
  xgboost==2.1.0
103
  xpinyin==0.7.6
104
- yfinance==0.2.43
105
  zhipuai==2.0.1
 
101
  word2number==1.1
102
  xgboost==2.1.0
103
  xpinyin==0.7.6
104
+ yfinance==0.1.96
105
  zhipuai==2.0.1
requirements_arm.txt CHANGED
@@ -168,7 +168,7 @@ deepl==1.18.0
168
  psycopg2-binary==2.9.9
169
  tabulate==0.9.0
170
  vertexai==1.64.0
171
- yfinance==0.2.43
172
  pywencai==0.12.2
173
  akshare==1.14.72
174
  ranx==0.3.20
 
168
  psycopg2-binary==2.9.9
169
  tabulate==0.9.0
170
  vertexai==1.64.0
171
+ yfinance==0.1.96
172
  pywencai==0.12.2
173
  akshare==1.14.72
174
  ranx==0.3.20