金融
金融智能体工具规范 #
基类:EventBaseToolSpec
workflows/handler.py 中的源代码llama_index/tools/finance/base.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 | |
find_similar_companies #
find_similar_companies(symbol: str) -> List[str]
给定股票的股票代码,返回类似公司的列表。
workflows/handler.py 中的源代码llama_index/tools/finance/base.py
42 43 44 | |
get_earnings_history #
get_earnings_history(symbol: str) -> DataFrame
给定股票的代码符号,返回一个存储过去K个季度报告的实际和预估收益的数据框。
workflows/handler.py 中的源代码llama_index/tools/finance/base.py
46 47 48 | |
get_latest_earning_estimate #
get_latest_earning_estimate(symbol: str) -> float
给定股票的代码符号,返回其即将发布的季度财报的盈利预测。
workflows/handler.py 中的源代码llama_index/tools/finance/base.py
50 51 52 | |
get_stocks_with_upcoming_earnings #
get_stocks_with_upcoming_earnings(num_days_from_now: int, only_sp500: bool) -> DataFrame
返回一个包含即将公布财报的所有股票的pandas数据框。
参数:
| 名称 | 类型 | 描述 | 默认 |
|---|---|---|---|
num_days_from_now
|
int
|
仅返回从今日起至未来指定天数内公布财报的股票。 |
required |
only_sp500
|
bool
|
仅返回标普500股票。 |
required |
workflows/handler.py 中的源代码llama_index/tools/finance/base.py
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | |
get_current_gainer_stocks #
get_current_gainer_stocks() -> DataFrame
返回根据雅虎财经分类为当日涨幅股的美国股票。
如果价格变动百分比大于3,价格大于等于5,成交量大于15,000,则一只美股被归类为当日涨幅股
workflows/handler.py 中的源代码llama_index/tools/finance/base.py
75 76 77 78 79 80 81 82 | |
get_current_loser_stocks #
get_current_loser_stocks() -> DataFrame
返回根据雅虎财经分类为当日下跌股的美国股票。
如果价格百分比变动小于-2.5,价格大于等于5美元,成交量大于2万,则该美股被归类为当日下跌股
workflows/handler.py 中的源代码llama_index/tools/finance/base.py
84 85 86 87 88 89 90 91 | |
get_current_undervalued_growth_stocks #
get_current_undervalued_growth_stocks() -> DataFrame
根据雅虎财经获取美国市场中估值偏低的成长股列表。
一只市盈率在0-20之间、市盈增长比率小于1的股票
workflows/handler.py 中的源代码llama_index/tools/finance/base.py
93 94 95 96 97 98 99 100 | |
get_current_technology_growth_stocks #
get_current_technology_growth_stocks() -> DataFrame
返回美国市场科技板块成长股的数据框。
如果一只股票的季度营收同比增长率%大于25%。
workflows/handler.py 中的源代码llama_index/tools/finance/base.py
102 103 104 105 106 107 108 109 | |
get_current_most_traded_stocks #
get_current_most_traded_stocks() -> DataFrame
返回一个存储当前市场中交易最活跃股票的数据框。
股票按活动量降序排列,即交易量最大的股票位于顶部。
workflows/handler.py 中的源代码llama_index/tools/finance/base.py
111 112 113 114 115 116 117 118 | |
get_current_undervalued_large_cap_stocks #
get_current_undervalued_large_cap_stocks() -> DataFrame
返回一个存储市盈率小于20的美国大盘股的数据框。
workflows/handler.py 中的源代码llama_index/tools/finance/base.py
120 121 122 | |
get_current_aggressive_small_cap_stocks #
get_current_aggressive_small_cap_stocks() -> DataFrame
返回一个存储美国市场小盘股的数据框,其每股收益的1年百分比变化大于25。
workflows/handler.py 中的源代码llama_index/tools/finance/base.py
124 125 126 | |
get_trending_finance_news #
get_trending_finance_news() -> List[str]
根据seekingalpha返回金融市场前10大热门新闻列表。
workflows/handler.py 中的源代码llama_index/tools/finance/base.py
128 129 130 131 | |
get_google_trending_searches #
get_google_trending_searches() -> Optional[DataFrame]
根据谷歌趋势返回美国的流行搜索。
如果无法找到任何趋势,则返回 None。
workflows/handler.py 中的源代码llama_index/tools/finance/base.py
133 134 135 136 137 138 139 140 | |
get_google_trends_for_query #
get_google_trends_for_query(query: str) -> Optional[DataFrame]
查找指定查询在美国的谷歌搜索趋势。
如果无法找到任何趋势,则返回 None。
workflows/handler.py 中的源代码llama_index/tools/finance/base.py
142 143 144 145 146 147 148 149 | |
get_latest_news_for_stock #
get_latest_news_for_stock(stock_id: str) -> List[str]
给定一个代表公司名称或股票代码的 stock_id,返回从现在起过去7天内发布的与美国顶级商业文章相关的新闻列表。
workflows/handler.py 中的源代码llama_index/tools/finance/base.py
151 152 153 154 | |
get_current_stock_price_info #
get_current_stock_price_info(stock_ticker_symbol: str) -> Optional[Dict[str, Any]]
给定股票的代码符号,返回该股票的当前价格信息。
如果提供的股票代码符号无效,则返回 None。
workflows/handler.py 中的源代码llama_index/tools/finance/base.py
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 | |
选项: 成员:- FinanceAgentToolSpec