filinglens

v0.1.0
io.github.CloudCorpRecords/filinglens Checked 2 days ago Published 29 days ago

SEC-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.

ParameterTypeDescription
symbol *stringStock ticker symbol (e.g., 'AAPL', 'MSFT', 'TSLA') for which to retrieve daily data
datatypestringResponse data type.
end_datestringOptional end date filter in YYYY-MM-DD format (inclusive).
max_data_pointsintegerMaximum number of time series data points to return.
outputsizestringData output size.
start_datestringOptional 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.

ParameterTypeDescription
symbol *stringStock ticker symbol (e.g., 'AAPL', 'MSFT', 'TSLA') for which to retrieve weekly data
datatypestringResponse data type.
end_datestringOptional end date filter in YYYY-MM-DD format (inclusive).
max_data_pointsintegerMaximum number of time series data points to return.
start_datestringOptional 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.

ParameterTypeDescription
symbol *stringStock ticker symbol (e.g., 'AAPL', 'MSFT', 'TSLA') for which to retrieve monthly data
datatypestringResponse data type.
end_datestringOptional end date filter in YYYY-MM-DD format (inclusive).
max_data_pointsintegerMaximum number of time series data points to return.
start_datestringOptional 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').

ParameterTypeDescription
keywords *stringKeywords 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.

ParameterTypeDescription
symbol *stringStock 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.

ParameterTypeDescription
tickers *stringComma-separated list of ticker symbols to filter news articles.
datatypestringResponse data type.
limitintegerMaximum number of news articles to return (1-200).
sortstringSort order for results.
time_fromstringStart time for news articles in YYYYMMDDTHHMM format (e.g., '20240101T0000')
time_tostringEnd time for news articles in YYYYMMDDTHHMM format (e.g., '20240131T2359')
topicsstringOptional 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.

ParameterTypeDescription
symbol *stringStock 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.

ParameterTypeDescription
symbol *stringStock 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.

ParameterTypeDescription
symbol *stringStock 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.

ParameterTypeDescription
symbol *stringStock 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.

ParameterTypeDescription
symbol *stringStock 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.

ParameterTypeDescription
from_currency *stringSource currency code (e.g., 'USD', 'EUR', 'GBP') to convert from
to_currency *stringTarget 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.

ParameterTypeDescription
interval *stringTime interval for data points.
symbol *stringStock ticker symbol (e.g., 'AAPL', 'MSFT', 'TSLA') for which to calculate Simple Moving Average
time_period *integerNumber of data points to use for moving average calculation (e.g., 20 for 20-day SMA)
datatypestringResponse data type.
end_datestringOptional end date filter in YYYY-MM-DD format (e.g., '2024-12-31').
max_data_pointsintegerMaximum number of time series data points to return.
series_typestringPrice data to use for calculation.
start_datestringOptional 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.

ParameterTypeDescription
interval *stringTime interval for data points.
symbol *stringStock ticker symbol (e.g., 'AAPL', 'MSFT', 'TSLA') for which to calculate Exponential Moving Average
time_period *integerNumber of data points to use for moving average calculation (e.g., 12 for 12-period EMA)
datatypestringResponse data type.
end_datestringOptional end date filter in YYYY-MM-DD format (e.g., '2024-12-31').
max_data_pointsintegerMaximum number of time series data points to return.
series_typestringPrice data to use for calculation.
start_datestringOptional 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.

ParameterTypeDescription
interval *stringTime interval for data points.
symbol *stringStock ticker symbol (e.g., 'AAPL', 'MSFT', 'TSLA') for which to calculate MACD
datatypestringResponse data type.
end_datestringOptional end date filter in YYYY-MM-DD format (e.g., '2024-12-31').
fastperiodintegerFast EMA period for MACD calculation (default: 12)
max_data_pointsintegerMaximum number of time series data points to return.
series_typestringPrice data to use for calculation.
signalperiodintegerSignal line EMA period for MACD calculation (default: 9)
slowperiodintegerSlow EMA period for MACD calculation (default: 26)
start_datestringOptional 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.

ParameterTypeDescription
interval *stringTime interval for data points.
symbol *stringStock ticker symbol (e.g., 'AAPL', 'MSFT', 'TSLA') for which to calculate RSI
datatypestringResponse data type.
end_datestringOptional end date filter in YYYY-MM-DD format (e.g., '2024-12-31').
max_data_pointsintegerMaximum number of time series data points to return.
series_typestringPrice data to use for calculation.
start_datestringOptional start date filter in YYYY-MM-DD format (e.g., '2024-01-01').
time_periodintegerNumber 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).

ParameterTypeDescription
interval *stringTime interval for data points.
symbol *stringStock ticker symbol (e.g., 'AAPL', 'MSFT', 'TSLA') for which to calculate Bollinger Bands
datatypestringResponse data type.
end_datestringOptional end date filter in YYYY-MM-DD format (e.g., '2024-12-31').
max_data_pointsintegerMaximum number of time series data points to return.
nbdevdnintegerNumber of standard deviations for lower band (typically 2)
nbdevupintegerNumber of standard deviations for upper band (typically 2)
series_typestringPrice data to use for calculation.
start_datestringOptional start date filter in YYYY-MM-DD format (e.g., '2024-01-01').
time_periodintegerNumber 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…

ParameterTypeDescription
symbol *stringStock 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…

ParameterTypeDescription
symbols *array2 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.

ParameterTypeDescription
company *stringTicker (e.g. 'AAPL') or SEC CIK
concept *stringLine 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_ofOptional date: return the figure as it was on file then (before any later restatement)
periodstring'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…

ParameterTypeDescription
company *stringTicker (e.g. 'AAPL') or SEC CIK
as_ofOptional date: the statement as it was on file then
limitintegerNumber of periods, 1 to 8
period_typestring'annual' or 'quarterly'
statementstring'income', 'balance' or 'cashflow'