filinglens
v0.1.0SEC-filed company financials with citations, plus market data and technical indicators.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
fetch_time_series_daily
[Personal research only] Fetch daily stock data with OHLCV (Open, High, Low, Close, Volume) information for each trading day.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock ticker symbol (e.g., 'AAPL', 'MSFT', 'TSLA') for which to retrieve daily data |
datatype | string | Response data type. |
end_date | string | Optional end date filter in YYYY-MM-DD format (inclusive). |
max_data_points | integer | Maximum number of time series data points to return. |
outputsize | string | Data output size. |
start_date | string | Optional start date filter in YYYY-MM-DD format (inclusive). |
fetch_time_series_weekly
[Personal research only] Fetch weekly stock data with OHLCV (Open, High, Low, Close, Volume) aggregated by week.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock ticker symbol (e.g., 'AAPL', 'MSFT', 'TSLA') for which to retrieve weekly data |
datatype | string | Response data type. |
end_date | string | Optional end date filter in YYYY-MM-DD format (inclusive). |
max_data_points | integer | Maximum number of time series data points to return. |
start_date | string | Optional start date filter in YYYY-MM-DD format (inclusive). |
fetch_time_series_monthly
[Personal research only] Fetch monthly stock data with OHLCV (Open, High, Low, Close, Volume) aggregated by month.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock ticker symbol (e.g., 'AAPL', 'MSFT', 'TSLA') for which to retrieve monthly data |
datatype | string | Response data type. |
end_date | string | Optional end date filter in YYYY-MM-DD format (inclusive). |
max_data_points | integer | Maximum number of time series data points to return. |
start_date | string | Optional start date filter in YYYY-MM-DD format (inclusive). |
search_endpoint
[Personal research only] Searches for stock symbols and company names based on keywords (e.g., 'Tesla', 'Microsoft Corp').
| Parameter | Type | Description |
|---|---|---|
keywords * | string | Keywords to search for company names or stock symbols (e.g., 'Tesla', 'Microsoft Corp', 'AAPL') |
fetch_quote
[Personal research only] Fetches the latest price and trading information for a stock ticker symbol.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock ticker symbol (e.g., 'AAPL', 'MSFT', 'TSLA') for which to fetch the latest price and trading… |
fetch_news_sentiment
[Personal research only] Fetch news sentiment analysis data with sentiment scores, relevance scores, and article metadata.
| Parameter | Type | Description |
|---|---|---|
tickers * | string | Comma-separated list of ticker symbols to filter news articles. |
datatype | string | Response data type. |
limit | integer | Maximum number of news articles to return (1-200). |
sort | string | Sort order for results. |
time_from | string | Start time for news articles in YYYYMMDDTHHMM format (e.g., '20240101T0000') |
time_to | string | End time for news articles in YYYYMMDDTHHMM format (e.g., '20240131T2359') |
topics | string | Optional news topics filter. |
fetch_company_overview
[Personal research only] Fetch comprehensive company overview including business description, financial ratios, market capitalization, dividend information, and key financial metrics.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock ticker symbol (e.g., 'AAPL', 'MSFT', 'TSLA') for which to retrieve comprehensive company over… |
fetch_income_statement
[Personal research only] Fetch annual and quarterly income statement data including revenue, expenses, net income, EPS, and other profit & loss metrics.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock ticker symbol (e.g., 'AAPL', 'MSFT', 'GOOGL') for which to retrieve annual and quarterly inco… |
fetch_balance_sheet
[Personal research only] Fetch annual and quarterly balance sheet data including assets, liabilities, shareholders' equity, and other financial position metrics.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock ticker symbol (e.g., 'AAPL', 'MSFT', 'GOOGL') for which to retrieve annual and quarterly bala… |
fetch_cash_flow
[Personal research only] Fetch annual and quarterly cash flow statement data including operating, investing, and financing cash flows.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock ticker symbol (e.g., 'AAPL', 'MSFT', 'GOOGL') for which to retrieve annual and quarterly cash… |
fetch_earnings
[Personal research only] Fetch annual and quarterly earnings data including EPS (earnings per share) estimates vs actual results, surprise percentages, and earnings growth trends.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock ticker symbol (e.g., 'AAPL', 'MSFT', 'GOOGL') for which to retrieve annual and quarterly earn… |
fetch_exchange_rate
[Personal research only] Fetch real-time currency exchange rates between two currencies with bid/ask prices and conversion rates.
| Parameter | Type | Description |
|---|---|---|
from_currency * | string | Source currency code (e.g., 'USD', 'EUR', 'GBP') to convert from |
to_currency * | string | Target currency code (e.g., 'USD', 'EUR', 'JPY') to convert to |
fetch_sma
[Personal research only] Fetch Simple Moving Average (SMA) technical indicator time series with customizable time periods.
| Parameter | Type | Description |
|---|---|---|
interval * | string | Time interval for data points. |
symbol * | string | Stock ticker symbol (e.g., 'AAPL', 'MSFT', 'TSLA') for which to calculate Simple Moving Average |
time_period * | integer | Number of data points to use for moving average calculation (e.g., 20 for 20-day SMA) |
datatype | string | Response data type. |
end_date | string | Optional end date filter in YYYY-MM-DD format (e.g., '2024-12-31'). |
max_data_points | integer | Maximum number of time series data points to return. |
series_type | string | Price data to use for calculation. |
start_date | string | Optional start date filter in YYYY-MM-DD format (e.g., '2024-01-01'). |
fetch_ema
[Personal research only] Fetch Exponential Moving Average (EMA) technical indicator time series with greater weight on recent prices.
| Parameter | Type | Description |
|---|---|---|
interval * | string | Time interval for data points. |
symbol * | string | Stock ticker symbol (e.g., 'AAPL', 'MSFT', 'TSLA') for which to calculate Exponential Moving Average |
time_period * | integer | Number of data points to use for moving average calculation (e.g., 12 for 12-period EMA) |
datatype | string | Response data type. |
end_date | string | Optional end date filter in YYYY-MM-DD format (e.g., '2024-12-31'). |
max_data_points | integer | Maximum number of time series data points to return. |
series_type | string | Price data to use for calculation. |
start_date | string | Optional start date filter in YYYY-MM-DD format (e.g., '2024-01-01'). |
fetch_macd
[Personal research only] Fetch MACD (Moving Average Convergence Divergence) technical indicator time series with signal line and histogram.
| Parameter | Type | Description |
|---|---|---|
interval * | string | Time interval for data points. |
symbol * | string | Stock ticker symbol (e.g., 'AAPL', 'MSFT', 'TSLA') for which to calculate MACD |
datatype | string | Response data type. |
end_date | string | Optional end date filter in YYYY-MM-DD format (e.g., '2024-12-31'). |
fastperiod | integer | Fast EMA period for MACD calculation (default: 12) |
max_data_points | integer | Maximum number of time series data points to return. |
series_type | string | Price data to use for calculation. |
signalperiod | integer | Signal line EMA period for MACD calculation (default: 9) |
slowperiod | integer | Slow EMA period for MACD calculation (default: 26) |
start_date | string | Optional start date filter in YYYY-MM-DD format (e.g., '2024-01-01'). |
fetch_rsi
[Personal research only] Fetch RSI (Relative Strength Index) momentum oscillator time series ranging from 0 to 100.
| Parameter | Type | Description |
|---|---|---|
interval * | string | Time interval for data points. |
symbol * | string | Stock ticker symbol (e.g., 'AAPL', 'MSFT', 'TSLA') for which to calculate RSI |
datatype | string | Response data type. |
end_date | string | Optional end date filter in YYYY-MM-DD format (e.g., '2024-12-31'). |
max_data_points | integer | Maximum number of time series data points to return. |
series_type | string | Price data to use for calculation. |
start_date | string | Optional start date filter in YYYY-MM-DD format (e.g., '2024-01-01'). |
time_period | integer | Number of periods for RSI calculation (typically 14) |
fetch_bbands
[Personal research only] Fetch Bollinger Bands technical indicator time series with upper band, lower band, and middle line (SMA).
| Parameter | Type | Description |
|---|---|---|
interval * | string | Time interval for data points. |
symbol * | string | Stock ticker symbol (e.g., 'AAPL', 'MSFT', 'TSLA') for which to calculate Bollinger Bands |
datatype | string | Response data type. |
end_date | string | Optional end date filter in YYYY-MM-DD format (e.g., '2024-12-31'). |
max_data_points | integer | Maximum number of time series data points to return. |
nbdevdn | integer | Number of standard deviations for lower band (typically 2) |
nbdevup | integer | Number of standard deviations for upper band (typically 2) |
series_type | string | Price data to use for calculation. |
start_date | string | Optional start date filter in YYYY-MM-DD format (e.g., '2024-01-01'). |
time_period | integer | Number of periods for moving average calculation (typically 20) |
analyze_stock
[Personal research only] One-call stock brief. `filed` holds fundamentals from SEC filings (TTM revenue and growth, gross and operating margin, net income, free cash flow, net debt; for banks net revenue, net interest income, efficiency ratio, PPNR, provisions, loans, deposits, ROE, ROTCE and tangible book; for broker-dealers efficiency ratio, pretax margin, compensation ratio and ROE; for insurers total revenues, premiums earned, net investment income, benefits and losses, a simple combined ratio for P&C insurers, ROE, and book value per share with and without AOCI), each filing cited by acce…
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock ticker, e.g. 'AAPL' |
compare_stocks
[Personal research only] Side-by-side comparison of 2-6 stocks as one table: TTM revenue and growth, pretax margin, net income growth and diluted EPS growth from SEC filings (each row's window ends on its ttm_to), net debt for standard layouts, delayed price, day change, distance from the 52-week high and trend, market cap, and P/E on filed diluted EPS LTM (FY + YTD - prior YTD). `order` lists each filed figure highest first, P/E lowest first. `comparability` says what revenue means per layout; cell_notes say what moves a figure. Filings are cited by accession in sources.edgar: open https://ww…
| Parameter | Type | Description |
|---|---|---|
symbols * | array | 2 to 6 tickers, e.g. ['NVDA', 'AMD'] |
get_fact
One reported figure from SEC filings, with its citation: filing accession number, form, filing date, XBRL tag, period and a link to the filing. Restated values are listed. A figure the company never reported comes back as missing, never estimated. Values are in units as filed (USD, shares, USD/shares). A value and its as_originally_reported version come only from financial statements (10-K, 10-Q, their amendments and transition reports, 20-F, 40-F), never a proxy or an 8-K.
| Parameter | Type | Description |
|---|---|---|
company * | string | Ticker (e.g. 'AAPL') or SEC CIK |
concept * | string | Line item such as 'revenue', 'net_income', 'eps_diluted', 'total_assets', 'operating_cash_flow', 'shares_outstanding', 'book_value_per_share', 'net_debt', 'dividend_payout_ratio', 'net_revenues', or a… |
as_of | Optional date: return the figure as it was on file then (before any later restatement) | |
period | string | 'latest', a fiscal year 'FY2025', a fiscal quarter 'FY2025 Q2', or a period end date '2025-06-28' |
financials
A financial statement from SEC filings, newest period first, every value traceable to its filing. Quarterly figures the company reported only year-to-date are derived (e.g. Q4 = FY - 9M) and marked; per-share values and share counts can't be derived that way and are null with reason not_derivable. A line the company tagged with its own element is null with reason custom_element. Common equity and the book values from it are null with reason pending when a preferred issue or redemption follows the last tagged liquidation preference. Every null carries a reason, in cell_notes or (when all of a r…
| Parameter | Type | Description |
|---|---|---|
company * | string | Ticker (e.g. 'AAPL') or SEC CIK |
as_of | Optional date: the statement as it was on file then | |
limit | integer | Number of periods, 1 to 8 |
period_type | string | 'annual' or 'quarterly' |
statement | string | 'income', 'balance' or 'cashflow' |