瀏覽代碼

Fix volcengine yfinance confliction (#2386)

### What problem does this PR solve?

#2379 

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.11.0
lidp 1 年之前
父節點
當前提交
88f8c8ed86
沒有連結到貢獻者的電子郵件帳戶。
共有 3 個檔案被更改,包括 3 行新增10 行删除
  1. 1
    8
      agent/component/yahoofinance.py
  2. 1
    1
      requirements.txt
  3. 1
    1
      requirements_arm.txt

+ 1
- 8
agent/component/yahoofinance.py 查看文件

@@ -62,15 +62,8 @@ class YahooFinance(ComponentBase, ABC):
yohoo_res.append({"content": "info:\n" + pd.Series(msft.info).to_markdown() + "\n"})
if self._param.history:
yohoo_res.append({"content": "history:\n" + msft.history().to_markdown() + "\n"})
if self._param.count:
yohoo_res.append({"content": "count:\n" + msft.get_shares_full().to_markdown() + "\n"})
if self._param.financials:
yohoo_res.append({"content": "calendar:\n" + pd.DataFrame(msft.calendar).to_markdown + "\n"})
yohoo_res.append({"content": "sec_filings:\n" + pd.DataFrame(msft.sec_filings).to_markdown() + "\n"})
if self._param.income_stmt:
yohoo_res.append({"content": "income statement:\n" + msft.income_stmt.to_markdown() + "\n"})
yohoo_res.append(
{"content": "quarterly income statement:\n" + msft.quarterly_income_stmt.to_markdown() + "\n"})
yohoo_res.append({"content": "calendar:\n" + pd.DataFrame(msft.calendar).to_markdown() + "\n"})
if self._param.balance_sheet:
yohoo_res.append({"content": "balance sheet:\n" + msft.balance_sheet.to_markdown() + "\n"})
yohoo_res.append(

+ 1
- 1
requirements.txt 查看文件

@@ -101,5 +101,5 @@ wikipedia==1.4.0
word2number==1.1
xgboost==2.1.0
xpinyin==0.7.6
yfinance==0.2.43
yfinance==0.1.96
zhipuai==2.0.1

+ 1
- 1
requirements_arm.txt 查看文件

@@ -168,7 +168,7 @@ deepl==1.18.0
psycopg2-binary==2.9.9
tabulate==0.9.0
vertexai==1.64.0
yfinance==0.2.43
yfinance==0.1.96
pywencai==0.12.2
akshare==1.14.72
ranx==0.3.20

Loading…
取消
儲存