[US Stock Info] Get a snapshot of the overall US market: major indices (S&P 500, NASDAQ, Dow), the VIX volatility index, US Treasury yields, commodities (gold, WTI crude), and the USD/KRW rate.
Use this for questions about the market as a whole rather than a single company, e.g. "how is the US market doing", "what happened overnight", "is the market up today".
Takes no arguments. Also reports whether the US regular session is currently open, so a closed-market response can be described as the last trading day's close.
无需输入参数。
get_historical_stock_prices
[US Stock Info] Get historical stock prices for a given ticker symbol. Include the following information: Date, Open, High, Low, Close, Volume, Adj Close.
Args:
ticker: str
The ticker symbol of the stock to get historical prices for, e.g. "AAPL"
period : str
Valid periods: 1d,5d,1mo,3mo,6mo,1y,2y,5y,10y,ytd,max
Either Use period parameter or use start and end
Default is "1mo"
interval : str
Valid intervals: 1m,2m,5m,15m,30m,60m,90m,1h,1d,5d,1wk,1mo,3mo
Intraday data cannot extend last 60 days
Default is "1d"
输入参数periodticker必填interval
[US Stock Info] Get a summary of key information for a given ticker symbol: price and trading range, market cap, valuation multiples, profitability and growth, dividend, analyst target and rating, beta, and a short business description.
For detailed financial statements use get_financial_statement.
Args:
ticker: str
The ticker symbol of the stock to get information for, e.g. "AAPL"
输入参数ticker必填
[US Stock Info] Get news for a given ticker symbol.
Args:
ticker: str
The ticker symbol of the stock to get news for, e.g. "AAPL"
输入参数ticker必填
[US Stock Info] Get financial statement for a given ticker symbol. You can choose from the following financial statement types: income_stmt, quarterly_income_stmt, balance_sheet, quarterly_balance_sheet, cashflow, quarterly_cashflow.
Args:
ticker: str
The ticker symbol of the stock to get financial statement for, e.g. "AAPL"
financial_type: str
The type of financial statement to get. You can choose from the following financial statement types: income_stmt, quarterly_income_stmt, balance_sheet, quarterly_balance_sheet, cashflow, quarterly_cashflow.
输入参数ticker必填financial_type必填
[US Stock Info] Get recommendations or upgrades/downgrades for a given ticker symbol. You can also specify the number of months back to get upgrades/downgrades for, default is 12.
Args:
ticker: str
The ticker symbol of the stock to get recommendations for, e.g. "AAPL"
recommendation_type: str
The type of recommendation to get. You can choose from the following recommendation types: recommendations, upgrades_downgrades.
months_back: int
The number of months back to get upgrades/downgrades for, default is 12.
输入参数ticker必填months_backrecommendation_type必填