Livermore is an MCP server published by io.github.AAAZZZR, hosted at livermore.club. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 28 tools, including search, get_stock, get_stock_13f_holders, get_insider_trades, get_insider_lists.
US insider trades, 13F, 13D/G, Form 144, politician trades, financials, shorts; Taiwan stocks. Free.
4 connections through 4 shared values. Tap any node.
Find US stocks, 13F institutions (including the curated superinvestors, matched by fund or manager name, e.g. 'Buffett' or 'Pershing', and large asset managers matched by their common name, e.g. 'Fidelity' finds FMR LLC and 'Capital Group' its three 13F filers), corporate insiders (Form 4 reporting persons) and politicians (members of the U.S. Congress: House and Senate members who served in 2019 or later, by name, nickname, last name or bioguide ID; current members first) by ticker or name. Returns up to `limit` matches per group, best match first, with the identifier the other tools take: `ticker` for get_stock, get_insider_trades, get_stock_13f_holders, get_major_holders and the other stock filters; institution `cik` for get_institution and get_ownership_filings(filer_cik); insider `cik` for get_insider_trades(insider_cik) and get_form144_notices(seller_cik); politician `bioguide` for get_politician and get_politician_trades(politician). Names are SEC names in English (insiders appear as 'Cook Timothy D'); superinvestors and those asset managers also match their Chinese names. Tickers match exactly or by prefix; a CIK (e.g. 1067983) or a 9-character CUSIP (e.g. 037833100) matches exactly; names need at least 2 characters. Stocks carry the company in `name`; `detail` is the manager for superinvestors ('13F filer' for other institutions) and the latest title and company for insiders. Politicians have party (D, R, I), chamber (house or senate), state, district (House seats; 0 is at-large) and in_office. Every item has its livermore.club `url`.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum matches per group (1-20, default 5). |
| query * | string | Ticker, company, fund, manager, person or politician name, CIK or CUSIP. |
{
"name": "search",
"title": "Search stocks, institutions, insiders and politicians",
"description": "Find US stocks, 13F institutions (including the curated superinvestors, matched by fund or manager name, e.g. 'Buffett' or 'Pershing', and large asset managers matched by their common name, e.g. 'Fidelity' finds FMR LLC and 'Capital Group' its three 13F filers), corporate insiders (Form 4 reporting persons) and politicians (members of the U.S. Congress: House and Senate members who served in 2019 or later, by name, nickname, last name or bioguide ID; current members first) by ticker or name. Returns up to `limit` matches per group, best match first, with the identifier the other tools take: `ticker` for get_stock, get_insider_trades, get_stock_13f_holders, get_major_holders and the other stock filters; institution `cik` for get_institution and get_ownership_filings(filer_cik); insider `cik` for get_insider_trades(insider_cik) and get_form144_notices(seller_cik); politician `bioguide` for get_politician and get_politician_trades(politician). Names are SEC names in English (insiders appear as 'Cook Timothy D'); superinvestors and those asset managers also match their Chinese names. Tickers match exactly or by prefix; a CIK (e.g. 1067983) or a 9-character CUSIP (e.g. 037833100) matches exactly; names need at least 2 characters. Stocks carry the company in `name`; `detail` is the manager for superinvestors ('13F filer' for other institutions) and the latest title and company for insiders. Politicians have party (D, R, I), chamber (house or senate), state, district (House seats; 0 is at-large) and in_office. Every item has its livermore.club `url`.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"query"
],
"properties": {
"limit": {
"type": "integer",
"default": 5,
"maximum": 20,
"minimum": 1,
"description": "Maximum matches per group (1-20, default 5)."
},
"query": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "Ticker, company, fund, manager, person or politician name, CIK or CUSIP."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"query",
"stocks",
"institutions",
"insiders",
"politicians"
],
"properties": {
"query": {
"type": "string"
},
"stocks": {
"type": "array",
"items": {
"type": "object",
"required": [
"ticker",
"name",
"active",
"url"
],
"properties": {
"url": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
},
"active": {
"type": "boolean",
"description": "false when the ticker is no longer on the SEC's list of tickers (the company was delisted or changed its ticker); its page and history are still available."
},
"ticker": {
"type": "string"
}
},
"additionalProperties": false
}
},
"insiders": {
"type": "array",
"items": {
"type": "object",
"required": [
"cik",
"name",
"detail",
"url"
],
"properties": {
"cik": {
"type": "string"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"detail": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
},
"politicians": {
"type": "array",
"items": {
"type": "object",
"required": [
"bioguide",
"name",
"party",
"chamber",
"state",
"district",
"in_office",
"url"
],
"properties": {
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"party": {
"type": [
"string",
"null"
]
},
"state": {
"type": "string"
},
"chamber": {
"enum": [
"house",
"senate"
],
"type": "string"
},
"bioguide": {
"type": "string"
},
"district": {
"type": [
"number",
"null"
]
},
"in_office": {
"type": "boolean"
}
},
"additionalProperties": false
}
},
"institutions": {
"type": "array",
"items": {
"type": "object",
"required": [
"cik",
"name",
"detail",
"url"
],
"properties": {
"cik": {
"type": "string"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"detail": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Overview of one US-listed stock: company facts (SEC name, CIK, exchange, SIC industry, other share classes), open-market insider activity in the last 90 days (Form 4 codes P and S, non-derivative: number of filings and total USD), institutional ownership from 13F for the latest complete quarter (number of holders, total shares and market value in USD, and the previous quarter for comparison), and the curated superinvestors holding it (shares, market value, pct_of_portfolio = percent of that superinvestor's 13F portfolio). A quarter is complete once its 45-day filing deadline has passed and the data is loaded; in_progress_quarter is a newer quarter still being filed. Share classes (GOOG/GOOGL, BRK.A/BRK.B) are separate tickers because 13F reports each class separately. A ticker that is no longer on the SEC's list (active false; delisted true when the company has no listed common stock left, with the Form 25 delisting date in delisted_on when known) keeps its page, and its 13F figures are for its last quarter with a full set of 13F holders (f13.note). financials summarizes the latest fiscal year and quarter (revenue, net income, free cash flow and their year-over-year growth, in the reporting currency, which is not always USD) and short_interest the latest FINRA short interest (short shares, change, days to cover); each is null when there is no data. market_cap is the company's market cap in USD. Market cap is the latest daily closing price of the company's primary ticker times the shares outstanding on its latest SEC 10-K, 10-Q or 20-F cover page (shares_as_of), adjusted for stock splits since then (split_factor, 1 = none). When the cover page lists a share class under its own ticker, as Berkshire Hathaway does with BRK.A and BRK.B, that class is priced at its own close and the classes are added up (shares is then the total of all classes); classes without a ticker of their own count at the primary ticker's close. Form 20-F filers are included only when the cover page shows that the US ticker is ordinary shares, not ADSs (for example NBIS); their share count is updated once a year. It is recalculated every US trading day after the close; close_date is the trading day of the close used. No stock price is returned. When market_cap is null, market_cap_unavailable gives the reason: no_price or stale_price (no daily close in the last 7 days, for example OTC or halted stocks), no_shares or stale_shares (no cover-page share count within about 400 days, or 500 days for Form 20-F filers: no recent XBRL 10-K, 10-Q or 20-F, or a cover page that could not be read; a cover that lists several share classes, such as GOOGL/GOOG or META, counts as the classes added up), foreign_filer (a Form 20-F filer whose US listing is ADSs, or whose 20-F cover page does not show that its US ticker is ordinary shares: the ADS ratio is not in SEC data), shares_mismatch (the cover-page share count does not match the listed shares: 13F institutions report holding more than 1.5 times the cover-page shares, which points to several share classes or ADSs, or the company has two or more traded common lines whose latest closes differ by more than 1.25 times and that the cover page does not tie to share classes of their own, such as multi-fund ETP trusts like ProShares Trust II that share one cover-page share count) or out_of_range (an implausible value, including a market cap below $1 million); both are null when Livermore has no market cap row for the company. screen_stocks lists companies by market cap. Use get_insider_trades, get_stock_13f_holders, get_financials and get_short_interest for the full lists.
| Parameter | Type | Description |
|---|---|---|
| ticker * | string | Stock ticker, e.g. AAPL or BRK.B (share classes use a dot; BRK-B also works). |
{
"name": "get_stock",
"title": "Stock overview",
"description": "Overview of one US-listed stock: company facts (SEC name, CIK, exchange, SIC industry, other share classes), open-market insider activity in the last 90 days (Form 4 codes P and S, non-derivative: number of filings and total USD), institutional ownership from 13F for the latest complete quarter (number of holders, total shares and market value in USD, and the previous quarter for comparison), and the curated superinvestors holding it (shares, market value, pct_of_portfolio = percent of that superinvestor's 13F portfolio). A quarter is complete once its 45-day filing deadline has passed and the data is loaded; in_progress_quarter is a newer quarter still being filed. Share classes (GOOG/GOOGL, BRK.A/BRK.B) are separate tickers because 13F reports each class separately. A ticker that is no longer on the SEC's list (active false; delisted true when the company has no listed common stock left, with the Form 25 delisting date in delisted_on when known) keeps its page, and its 13F figures are for its last quarter with a full set of 13F holders (f13.note). financials summarizes the latest fiscal year and quarter (revenue, net income, free cash flow and their year-over-year growth, in the reporting currency, which is not always USD) and short_interest the latest FINRA short interest (short shares, change, days to cover); each is null when there is no data. market_cap is the company's market cap in USD. Market cap is the latest daily closing price of the company's primary ticker times the shares outstanding on its latest SEC 10-K, 10-Q or 20-F cover page (shares_as_of), adjusted for stock splits since then (split_factor, 1 = none). When the cover page lists a share class under its own ticker, as Berkshire Hathaway does with BRK.A and BRK.B, that class is priced at its own close and the classes are added up (shares is then the total of all classes); classes without a ticker of their own count at the primary ticker's close. Form 20-F filers are included only when the cover page shows that the US ticker is ordinary shares, not ADSs (for example NBIS); their share count is updated once a year. It is recalculated every US trading day after the close; close_date is the trading day of the close used. No stock price is returned. When market_cap is null, market_cap_unavailable gives the reason: no_price or stale_price (no daily close in the last 7 days, for example OTC or halted stocks), no_shares or stale_shares (no cover-page share count within about 400 days, or 500 days for Form 20-F filers: no recent XBRL 10-K, 10-Q or 20-F, or a cover page that could not be read; a cover that lists several share classes, such as GOOGL/GOOG or META, counts as the classes added up), foreign_filer (a Form 20-F filer whose US listing is ADSs, or whose 20-F cover page does not show that its US ticker is ordinary shares: the ADS ratio is not in SEC data), shares_mismatch (the cover-page share count does not match the listed shares: 13F institutions report holding more than 1.5 times the cover-page shares, which points to several share classes or ADSs, or the company has two or more traded common lines whose latest closes differ by more than 1.25 times and that the cover page does not tie to share classes of their own, such as multi-fund ETP trusts like ProShares Trust II that share one cover-page share count) or out_of_range (an implausible value, including a market cap below $1 million); both are null when Livermore has no market cap row for the company. screen_stocks lists companies by market cap. Use get_insider_trades, get_stock_13f_holders, get_financials and get_short_interest for the full lists.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"ticker"
],
"properties": {
"ticker": {
"type": "string",
"maxLength": 12,
"minLength": 1,
"description": "Stock ticker, e.g. AAPL or BRK.B (share classes use a dot; BRK-B also works)."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"ticker",
"name",
"cik",
"exchange",
"active",
"delisted",
"delisted_on",
"sic",
"industry",
"other_share_classes",
"url",
"insiders_url",
"holders_url",
"sec_filings_url",
"insider_activity",
"f13",
"superinvestors",
"financials",
"short_interest",
"market_cap",
"market_cap_unavailable"
],
"properties": {
"cik": {
"type": "string"
},
"f13": {
"anyOf": [
{
"type": "object",
"required": [
"quarter",
"period",
"latest_complete_quarter",
"in_progress_quarter",
"holders",
"shares",
"value_usd",
"previous",
"note",
"url"
],
"properties": {
"url": {
"type": "string"
},
"note": {
"type": [
"string",
"null"
],
"description": "Why the quarter is older than latest_complete_quarter (inactive tickers)."
},
"period": {
"type": "string"
},
"shares": {
"type": [
"number",
"null"
]
},
"holders": {
"type": "number"
},
"quarter": {
"type": "string"
},
"previous": {
"anyOf": [
{
"type": "object",
"required": [
"quarter",
"period",
"holders",
"shares",
"value_usd"
],
"properties": {
"period": {
"type": "string"
},
"shares": {
"type": [
"number",
"null"
]
},
"holders": {
"type": "number"
},
"quarter": {
"type": "string"
},
"value_usd": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"value_usd": {
"type": [
"number",
"null"
]
},
"in_progress_quarter": {
"type": [
"string",
"null"
]
},
"latest_complete_quarter": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"sic": {
"type": [
"string",
"null"
]
},
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"active": {
"type": "boolean",
"description": "false when the ticker is no longer on the SEC's list of tickers."
},
"ticker": {
"type": "string"
},
"delisted": {
"type": "boolean",
"description": "true when the ticker is inactive and the company has no active common-stock ticker left (delisted or acquired). An inactive ticker whose company still trades under another ticker (a ticker change) is not delisted."
},
"exchange": {
"type": [
"string",
"null"
]
},
"industry": {
"type": [
"string",
"null"
]
},
"financials": {
"anyOf": [
{
"type": "object",
"required": [
"currency",
"latest_annual",
"latest_quarter",
"url"
],
"properties": {
"url": {
"type": "string"
},
"currency": {
"type": "string",
"description": "Reporting currency of the latest period; amounts are in it, not USD."
},
"latest_annual": {
"anyOf": [
{
"type": "object",
"required": [
"fiscal_year",
"fiscal_period",
"period_end",
"currency",
"revenue",
"net_income",
"free_cash_flow",
"yoy_pct",
"form",
"filed_date",
"reported_date",
"usd_rate"
],
"properties": {
"form": {
"type": "string"
},
"revenue": {
"type": [
"number",
"null"
]
},
"yoy_pct": {
"type": "object",
"required": [
"revenue",
"net_income",
"free_cash_flow"
],
"properties": {
"revenue": {
"type": [
"number",
"null"
]
},
"net_income": {
"type": [
"number",
"null"
]
},
"free_cash_flow": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
},
"currency": {
"type": "string"
},
"usd_rate": {
"anyOf": [
{
"type": "object",
"required": [
"average",
"period_end"
],
"properties": {
"average": {
"type": [
"number",
"null"
]
},
"period_end": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "US dollars per 1 unit of the reporting currency (FRED H.10): average over the period (for income statement and cash flow amounts) and on the period-end date (for balance sheet amounts). null for companies reporting in USD."
},
"filed_date": {
"type": "string"
},
"net_income": {
"type": [
"number",
"null"
]
},
"period_end": {
"type": "string"
},
"fiscal_year": {
"type": "number"
},
"fiscal_period": {
"enum": [
"FY",
"Q1",
"Q2",
"Q3",
"Q4"
],
"type": "string"
},
"reported_date": {
"type": [
"string",
"null"
]
},
"free_cash_flow": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"latest_quarter": {
"anyOf": [
{
"type": "object",
"required": [
"fiscal_year",
"fiscal_period",
"period_end",
"currency",
"revenue",
"net_income",
"free_cash_flow",
"yoy_pct",
"form",
"filed_date",
"reported_date",
"usd_rate"
],
"properties": {
"form": {
"type": "string"
},
"revenue": {
"type": [
"number",
"null"
]
},
"yoy_pct": {
"type": "object",
"required": [
"revenue",
"net_income",
"free_cash_flow"
],
"properties": {
"revenue": {
"type": [
"number",
"null"
]
},
"net_income": {
"type": [
"number",
"null"
]
},
"free_cash_flow": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
},
"currency": {
"type": "string"
},
"usd_rate": {
"anyOf": [
{
"type": "object",
"required": [
"average",
"period_end"
],
"properties": {
"average": {
"type": [
"number",
"null"
]
},
"period_end": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "US dollars per 1 unit of the reporting currency (FRED H.10): average over the period (for income statement and cash flow amounts) and on the period-end date (for balance sheet amounts). null for companies reporting in USD."
},
"filed_date": {
"type": "string"
},
"net_income": {
"type": [
"number",
"null"
]
},
"period_end": {
"type": "string"
},
"fiscal_year": {
"type": "number"
},
"fiscal_period": {
"enum": [
"FY",
"Q1",
"Q2",
"Q3",
"Q4"
],
"type": "string"
},
"reported_date": {
"type": [
"string",
"null"
]
},
"free_cash_flow": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Latest fiscal year and latest quarter from the XBRL financial statements, in the reporting currency; null when there are none. get_financials has the full statements."
},
"market_cap": {
"anyOf": [
{
"type": "object",
"required": [
"usd",
"ticker",
"close_date",
"shares",
"shares_as_of",
"split_factor"
],
"properties": {
"usd": {
"type": "number"
},
"shares": {
"type": [
"number",
"null"
],
"description": "Cover-page shares outstanding, adjusted for later splits."
},
"ticker": {
"type": "string",
"description": "The ticker whose close was used (the company's primary ticker; other share classes share it)."
},
"close_date": {
"type": [
"string",
"null"
]
},
"shares_as_of": {
"type": [
"string",
"null"
],
"description": "Date of the share count on the 10-K or 10-Q cover page."
},
"split_factor": {
"type": [
"number",
"null"
],
"description": "Stock splits applied since shares_as_of (1 = none)."
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Market cap in USD: the latest close of the company's primary ticker times the cover-page shares outstanding (no price is returned); null when unavailable (see market_cap_unavailable)."
},
"delisted_on": {
"type": [
"string",
"null"
],
"description": "Delisting date (YYYY-MM-DD) of a delisted stock: the SEC filing date of the Form 25 that removed its common stock from the exchange. null when the stock is not delisted or no Form 25 was found (for example a company that kept trading over the counter)."
},
"holders_url": {
"type": "string"
},
"insiders_url": {
"type": "string"
},
"short_interest": {
"anyOf": [
{
"type": "object",
"required": [
"settlement_date",
"short_shares",
"change_shares",
"change_pct",
"avg_daily_volume",
"days_to_cover",
"dtc_capped",
"url"
],
"properties": {
"url": {
"type": "string"
},
"change_pct": {
"type": [
"number",
"null"
]
},
"dtc_capped": {
"type": "boolean"
},
"short_shares": {
"type": [
"number",
"null"
]
},
"change_shares": {
"type": [
"number",
"null"
]
},
"days_to_cover": {
"type": [
"number",
"null"
]
},
"settlement_date": {
"type": "string"
},
"avg_daily_volume": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Latest FINRA short interest (within the last year); null when there is none. get_short_interest has the history, short volume, fails-to-deliver and ATS volume."
},
"superinvestors": {
"type": "array",
"items": {
"type": "object",
"required": [
"cik",
"name",
"manager",
"shares",
"value_usd",
"pct_of_portfolio",
"url",
"holding_url"
],
"properties": {
"cik": {
"type": "string"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"shares": {
"type": [
"number",
"null"
]
},
"manager": {
"type": [
"string",
"null"
]
},
"value_usd": {
"type": [
"number",
"null"
]
},
"holding_url": {
"type": "string"
},
"pct_of_portfolio": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
}
},
"sec_filings_url": {
"type": "string"
},
"insider_activity": {
"type": "object",
"required": [
"window_days",
"buy_filings",
"buy_value_usd",
"sell_filings",
"sell_value_usd"
],
"properties": {
"buy_filings": {
"type": "number"
},
"window_days": {
"type": "number"
},
"sell_filings": {
"type": "number"
},
"buy_value_usd": {
"type": [
"number",
"null"
]
},
"sell_value_usd": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
},
"other_share_classes": {
"type": "array",
"items": {
"type": "string"
}
},
"market_cap_unavailable": {
"type": [
"string",
"null"
],
"description": "Why market_cap is null: no_price, stale_price, no_shares, stale_shares, foreign_filer, shares_mismatch, out_of_range. null when market_cap is set, or when Livermore has no market cap row for the company."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Institutions that reported holding a stock in their 13F-HR filings for one calendar quarter (default: the latest complete quarter, or for a ticker that is no longer listed its last quarter with a full set of 13F holders; 13F is filed up to 45 days after quarter end and covers long positions in US-listed securities only). Each row: institution, shares, market value in USD at quarter end as reported, pct_of_portfolio (percent of that institution's 13F portfolio), and the change versus the previous calendar quarter (action new/added/reduced/unchanged/sold_out, share_change, share_change_pct in percent). When the stock split between the two quarters, previous_shares is converted to this quarter's shares before comparing (split_factor = new shares per old share; the filed count is previous_shares / split_factor) and a change within 0.5% counts as unchanged; the previous totals are as filed. Institutions that held the stock last quarter and filed this quarter without it are listed after the holders as sold_out; institutions that held it last quarter but have not filed this quarter yet are listed at the very end as not_filed (not a sale, shares and value null). Totals (holders, shares, value_usd) cover all holders, not just this page. Multiple CUSIPs of the same ticker are combined. changes_available is false (and the change fields are null) when the previous quarter cannot be compared; `note` explains incomplete or still-filing quarters. At most 200 rows per call; use page.
| Parameter | Type | Description |
|---|---|---|
| page | integer | Page number starting at 1; each page has `limit` rows. Check has_more. |
| sort | string | value = largest market value first (default); shares = most shares; change = largest share increase first. Sold-out holders are always listed last. |
| limit | integer | Maximum rows to return (1-200, default 25). |
| ticker * | string | Stock ticker, e.g. AAPL or BRK.B (share classes use a dot; BRK-B also works). |
| quarter | string | Quarter to show, e.g. 2026-q2. Default: the latest complete quarter; for a ticker that is no longer listed, its last quarter with a full set of 13F holders. |
{
"name": "get_stock_13f_holders",
"title": "13F institutional holders of a stock",
"description": "Institutions that reported holding a stock in their 13F-HR filings for one calendar quarter (default: the latest complete quarter, or for a ticker that is no longer listed its last quarter with a full set of 13F holders; 13F is filed up to 45 days after quarter end and covers long positions in US-listed securities only). Each row: institution, shares, market value in USD at quarter end as reported, pct_of_portfolio (percent of that institution's 13F portfolio), and the change versus the previous calendar quarter (action new/added/reduced/unchanged/sold_out, share_change, share_change_pct in percent). When the stock split between the two quarters, previous_shares is converted to this quarter's shares before comparing (split_factor = new shares per old share; the filed count is previous_shares / split_factor) and a change within 0.5% counts as unchanged; the previous totals are as filed. Institutions that held the stock last quarter and filed this quarter without it are listed after the holders as sold_out; institutions that held it last quarter but have not filed this quarter yet are listed at the very end as not_filed (not a sale, shares and value null). Totals (holders, shares, value_usd) cover all holders, not just this page. Multiple CUSIPs of the same ticker are combined. changes_available is false (and the change fields are null) when the previous quarter cannot be compared; `note` explains incomplete or still-filing quarters. At most 200 rows per call; use page.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"ticker"
],
"properties": {
"page": {
"type": "integer",
"default": 1,
"maximum": 500,
"minimum": 1,
"description": "Page number starting at 1; each page has `limit` rows. Check has_more."
},
"sort": {
"enum": [
"value",
"shares",
"change"
],
"type": "string",
"default": "value",
"description": "value = largest market value first (default); shares = most shares; change = largest share increase first. Sold-out holders are always listed last."
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 200,
"minimum": 1,
"description": "Maximum rows to return (1-200, default 25)."
},
"ticker": {
"type": "string",
"maxLength": 12,
"minLength": 1,
"description": "Stock ticker, e.g. AAPL or BRK.B (share classes use a dot; BRK-B also works)."
},
"quarter": {
"type": "string",
"maxLength": 12,
"description": "Quarter to show, e.g. 2026-q2. Default: the latest complete quarter; for a ticker that is no longer listed, its last quarter with a full set of 13F holders."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"ticker",
"name",
"quarter",
"period",
"previous_quarter",
"latest_complete_quarter",
"in_progress_quarter",
"holders",
"shares",
"value_usd",
"previous",
"changes_available",
"split_factor",
"note",
"sort",
"page",
"limit",
"has_more",
"rows",
"url"
],
"properties": {
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"note": {
"type": [
"string",
"null"
]
},
"page": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"type": "object",
"required": [
"institution_cik",
"institution_name",
"superinvestor",
"shares",
"value_usd",
"pct_of_portfolio",
"previous_shares",
"share_change",
"share_change_pct",
"action",
"url",
"holding_url"
],
"properties": {
"url": {
"type": "string"
},
"action": {
"anyOf": [
{
"enum": [
"new",
"added",
"reduced",
"unchanged",
"sold_out",
"not_filed"
],
"type": "string"
},
{
"type": "null"
}
]
},
"shares": {
"type": [
"number",
"null"
]
},
"value_usd": {
"type": [
"number",
"null"
]
},
"holding_url": {
"type": "string"
},
"share_change": {
"type": [
"number",
"null"
]
},
"superinvestor": {
"type": [
"string",
"null"
]
},
"institution_cik": {
"type": "string"
},
"previous_shares": {
"type": [
"number",
"null"
]
},
"institution_name": {
"type": "string"
},
"pct_of_portfolio": {
"type": [
"number",
"null"
]
},
"share_change_pct": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
}
},
"sort": {
"type": "string"
},
"limit": {
"type": "number"
},
"period": {
"type": "string"
},
"shares": {
"type": [
"number",
"null"
]
},
"ticker": {
"type": "string"
},
"holders": {
"type": "number"
},
"quarter": {
"type": "string"
},
"has_more": {
"type": "boolean"
},
"previous": {
"anyOf": [
{
"type": "object",
"required": [
"quarter",
"period",
"holders",
"shares",
"value_usd"
],
"properties": {
"period": {
"type": "string"
},
"shares": {
"type": [
"number",
"null"
]
},
"holders": {
"type": "number"
},
"quarter": {
"type": "string"
},
"value_usd": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"value_usd": {
"type": [
"number",
"null"
]
},
"split_factor": {
"type": [
"number",
"null"
],
"description": "Stock split between previous_quarter and quarter: new shares per old share (10 = 10-for-1 split, 0.1 = 1-for-10 reverse split); null when there was none."
},
"previous_quarter": {
"type": "string"
},
"changes_available": {
"type": "boolean"
},
"in_progress_quarter": {
"type": [
"string",
"null"
]
},
"latest_complete_quarter": {
"type": "string"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Insider transactions from SEC Form 4 filings (coverage starts July 2021; updated daily). One row per filing and transaction type: same-day lots are combined, avg_price_usd is value-weighted, value_usd is the USD total, shares_owned_after is the holding after the last lot, ownership_change_pct is the change in the insider's holding in percent (null = new position or not computable). Filter by ticker, insider_cik, filing-date range, codes, the primary insider's role and minimum value. Without ticker or insider_cik the query is market-wide and limited to 30 days of filings (default: last 7 days). Codes: P = open-market or private purchase, S = sale, A = grant or award, D = disposition to the issuer, F = shares withheld for taxes, G = gift, M = option exercise under a company plan, X = in-the-money exercise, C = conversion, W = inheritance, J = other. Default codes P and S. Dates are YYYY-MM-DD; filed_at is ISO 8601 UTC and filed_date its US Eastern date; backfilled filings may only have the date (filed_at at midnight Eastern). price_outlier is true when the reported price or value is not reliable (a typo, a wrong unit or a foreign company's home-market shares priced in local currency instead of US dollars); avg_price_usd and value_usd are then as filed, and the site leaves these rows out of rankings and totals. carried_from is set on rows that a Form 4/A carried over from the original filing: an amendment that restates only some lines leaves the original's other transactions standing, so they are listed under the amendment's accession (amendment true), with the original's accession in carried_from and the original's filed_at and sec_url; it is null otherwise. rule_10b5_1 is null for filings before 2023. Each row links to livermore.club (url) and the SEC filing that reports the transaction (sec_url). At most 200 rows per call; use page for more.
| Parameter | Type | Description |
|---|---|---|
| to | string | Latest SEC filing date, YYYY-MM-DD, inclusive. |
| from | string | Earliest SEC filing date, YYYY-MM-DD (US Eastern). |
| page | integer | Page number starting at 1; each page has `limit` rows. Check has_more. |
| sort | string | filed = newest filing first (default); trade_date = most recent trade date first; value = largest USD value first (rows flagged as price outliers or duplicate filings are left out). |
| codes | any | Form 4 transaction codes to include, e.g. ["P"] for purchases only, or "all". Default ["P","S"] (open-market purchases and sales). |
| limit | integer | Maximum rows to return (1-200, default 25). |
| roles | array | Keep rows whose primary reporting owner has any of these roles: ceo, cfo, director, officer, owner10 (10% owner). Empty = any role. |
| ticker | string | Only this company's filings (all share classes of the issuer), e.g. AAPL or BRK.B. |
| insider_cik | string | Only filings on which this insider (reporting owner) appears, across all companies. Get the CIK from search. |
| min_value_usd | number | Minimum transaction value in USD (rows without a price are then excluded). |
{
"name": "get_insider_trades",
"title": "Insider trades (Form 4)",
"description": "Insider transactions from SEC Form 4 filings (coverage starts July 2021; updated daily). One row per filing and transaction type: same-day lots are combined, avg_price_usd is value-weighted, value_usd is the USD total, shares_owned_after is the holding after the last lot, ownership_change_pct is the change in the insider's holding in percent (null = new position or not computable). Filter by ticker, insider_cik, filing-date range, codes, the primary insider's role and minimum value. Without ticker or insider_cik the query is market-wide and limited to 30 days of filings (default: last 7 days). Codes: P = open-market or private purchase, S = sale, A = grant or award, D = disposition to the issuer, F = shares withheld for taxes, G = gift, M = option exercise under a company plan, X = in-the-money exercise, C = conversion, W = inheritance, J = other. Default codes P and S. Dates are YYYY-MM-DD; filed_at is ISO 8601 UTC and filed_date its US Eastern date; backfilled filings may only have the date (filed_at at midnight Eastern). price_outlier is true when the reported price or value is not reliable (a typo, a wrong unit or a foreign company's home-market shares priced in local currency instead of US dollars); avg_price_usd and value_usd are then as filed, and the site leaves these rows out of rankings and totals. carried_from is set on rows that a Form 4/A carried over from the original filing: an amendment that restates only some lines leaves the original's other transactions standing, so they are listed under the amendment's accession (amendment true), with the original's accession in carried_from and the original's filed_at and sec_url; it is null otherwise. rule_10b5_1 is null for filings before 2023. Each row links to livermore.club (url) and the SEC filing that reports the transaction (sec_url). At most 200 rows per call; use page for more.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"to": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Latest SEC filing date, YYYY-MM-DD, inclusive."
},
"from": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Earliest SEC filing date, YYYY-MM-DD (US Eastern)."
},
"page": {
"type": "integer",
"default": 1,
"maximum": 500,
"minimum": 1,
"description": "Page number starting at 1; each page has `limit` rows. Check has_more."
},
"sort": {
"enum": [
"filed",
"trade_date",
"value"
],
"type": "string",
"default": "filed",
"description": "filed = newest filing first (default); trade_date = most recent trade date first; value = largest USD value first (rows flagged as price outliers or duplicate filings are left out)."
},
"codes": {
"anyOf": [
{
"type": "string",
"const": "all"
},
{
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Za-z]$"
},
"maxItems": 20,
"minItems": 1
}
],
"default": [
"P",
"S"
],
"description": "Form 4 transaction codes to include, e.g. [\"P\"] for purchases only, or \"all\". Default [\"P\",\"S\"] (open-market purchases and sales)."
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 200,
"minimum": 1,
"description": "Maximum rows to return (1-200, default 25)."
},
"roles": {
"type": "array",
"items": {
"enum": [
"ceo",
"cfo",
"director",
"officer",
"owner10"
],
"type": "string"
},
"default": [],
"maxItems": 5,
"description": "Keep rows whose primary reporting owner has any of these roles: ceo, cfo, director, officer, owner10 (10% owner). Empty = any role."
},
"ticker": {
"type": "string",
"maxLength": 12,
"minLength": 1,
"description": "Only this company's filings (all share classes of the issuer), e.g. AAPL or BRK.B."
},
"insider_cik": {
"type": "string",
"pattern": "^(CIK)?\\d{1,10}$",
"description": "Only filings on which this insider (reporting owner) appears, across all companies. Get the CIK from search."
},
"min_value_usd": {
"type": "number",
"maximum": 10000000000000,
"minimum": 0,
"description": "Minimum transaction value in USD (rows without a price are then excluded)."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"scope",
"stock",
"insider",
"filters",
"note",
"page",
"limit",
"has_more",
"rows",
"url"
],
"properties": {
"url": {
"type": "string"
},
"note": {
"type": [
"string",
"null"
]
},
"page": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"type": "object",
"required": [
"accession",
"filed_at",
"filed_date",
"trade_date_first",
"trade_date_last",
"ticker",
"issuer_cik",
"issuer_name",
"insider_cik",
"insider_name",
"insider_roles",
"insider_title",
"reporting_owners",
"code",
"acquired_or_disposed",
"derivative",
"security_title",
"ownership",
"shares",
"avg_price_usd",
"value_usd",
"shares_owned_after",
"ownership_change_pct",
"lots",
"rule_10b5_1",
"amendment",
"carried_from",
"price_outlier",
"url",
"sec_url"
],
"properties": {
"url": {
"type": [
"string",
"null"
]
},
"code": {
"type": [
"string",
"null"
]
},
"lots": {
"type": "number"
},
"shares": {
"type": [
"number",
"null"
]
},
"ticker": {
"type": [
"string",
"null"
]
},
"sec_url": {
"type": "string"
},
"filed_at": {
"type": "string"
},
"accession": {
"type": "string"
},
"amendment": {
"type": "boolean"
},
"ownership": {
"anyOf": [
{
"enum": [
"direct",
"indirect"
],
"type": "string"
},
{
"type": "null"
}
]
},
"value_usd": {
"type": [
"number",
"null"
]
},
"derivative": {
"type": "boolean"
},
"filed_date": {
"type": "string"
},
"issuer_cik": {
"type": "string"
},
"insider_cik": {
"type": [
"string",
"null"
]
},
"issuer_name": {
"type": [
"string",
"null"
]
},
"rule_10b5_1": {
"type": [
"boolean",
"null"
]
},
"carried_from": {
"type": [
"string",
"null"
]
},
"insider_name": {
"type": [
"string",
"null"
]
},
"avg_price_usd": {
"type": [
"number",
"null"
]
},
"insider_roles": {
"type": "array",
"items": {
"enum": [
"director",
"officer",
"ten_percent_owner",
"other"
],
"type": "string"
}
},
"insider_title": {
"type": [
"string",
"null"
]
},
"price_outlier": {
"type": "boolean"
},
"security_title": {
"type": [
"string",
"null"
]
},
"trade_date_last": {
"type": [
"string",
"null"
]
},
"reporting_owners": {
"type": "number"
},
"trade_date_first": {
"type": [
"string",
"null"
]
},
"shares_owned_after": {
"type": [
"number",
"null"
]
},
"acquired_or_disposed": {
"anyOf": [
{
"enum": [
"acquired",
"disposed"
],
"type": "string"
},
{
"type": "null"
}
]
},
"ownership_change_pct": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
}
},
"limit": {
"type": "number"
},
"scope": {
"enum": [
"stock",
"insider",
"stock_and_insider",
"market"
],
"type": "string"
},
"stock": {
"anyOf": [
{
"type": "object",
"required": [
"ticker",
"name",
"cik",
"url"
],
"properties": {
"cik": {
"type": "string"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"ticker": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"filters": {
"type": "object",
"required": [
"codes",
"roles",
"min_value_usd",
"from",
"to",
"sort"
],
"properties": {
"to": {
"type": [
"string",
"null"
]
},
"from": {
"type": [
"string",
"null"
]
},
"sort": {
"type": "string"
},
"codes": {
"anyOf": [
{
"type": "string",
"const": "all"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"roles": {
"type": "array",
"items": {
"type": "string"
}
},
"min_value_usd": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
},
"insider": {
"anyOf": [
{
"type": "object",
"required": [
"cik",
"name",
"url"
],
"properties": {
"cik": {
"type": "string"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"has_more": {
"type": "boolean"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Ready-made insider trading screens, the same lists as livermore.club/en/insiders: cluster-buys (companies where 3 or more different insiders bought on the open market in the last 30 days, ranked by total value; returned in `companies`), ceo-cfo-buys (CEO or CFO open-market purchases of $25,000 or more in 30 days, newest first), top-buys-week and top-buys-month (largest open-market purchases filed in the last 7 or 30 days), top-sells-week and top-sells-month (largest open-market sales). Windows count back from now by SEC filing time. Non-derivative transactions only; rows flagged as price outliers, duplicate filings (the same trade reported again in a later filing) and issuers without a ticker are excluded. Trade rows have the same fields as get_insider_trades. Amounts in USD. At most 200 rows.
| Parameter | Type | Description |
|---|---|---|
| list * | string | cluster-buys, ceo-cfo-buys, top-buys-week, top-buys-month, top-sells-week or top-sells-month. |
| limit | integer | Maximum rows to return (1-200, default 25). |
{
"name": "get_insider_lists",
"title": "Insider trading screens",
"description": "Ready-made insider trading screens, the same lists as livermore.club/en/insiders: cluster-buys (companies where 3 or more different insiders bought on the open market in the last 30 days, ranked by total value; returned in `companies`), ceo-cfo-buys (CEO or CFO open-market purchases of $25,000 or more in 30 days, newest first), top-buys-week and top-buys-month (largest open-market purchases filed in the last 7 or 30 days), top-sells-week and top-sells-month (largest open-market sales). Windows count back from now by SEC filing time. Non-derivative transactions only; rows flagged as price outliers, duplicate filings (the same trade reported again in a later filing) and issuers without a ticker are excluded. Trade rows have the same fields as get_insider_trades. Amounts in USD. At most 200 rows.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"list"
],
"properties": {
"list": {
"enum": [
"cluster-buys",
"ceo-cfo-buys",
"top-buys-week",
"top-buys-month",
"top-sells-week",
"top-sells-month"
],
"type": "string",
"description": "cluster-buys, ceo-cfo-buys, top-buys-week, top-buys-month, top-sells-week or top-sells-month."
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 200,
"minimum": 1,
"description": "Maximum rows to return (1-200, default 25)."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"list",
"title",
"definition",
"window_days",
"url",
"companies",
"trades"
],
"properties": {
"url": {
"type": "string"
},
"list": {
"type": "string"
},
"title": {
"type": "string"
},
"trades": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"required": [
"accession",
"filed_at",
"filed_date",
"trade_date_first",
"trade_date_last",
"ticker",
"issuer_cik",
"issuer_name",
"insider_cik",
"insider_name",
"insider_roles",
"insider_title",
"reporting_owners",
"code",
"acquired_or_disposed",
"derivative",
"security_title",
"ownership",
"shares",
"avg_price_usd",
"value_usd",
"shares_owned_after",
"ownership_change_pct",
"lots",
"rule_10b5_1",
"amendment",
"carried_from",
"price_outlier",
"url",
"sec_url"
],
"properties": {
"url": {
"type": [
"string",
"null"
]
},
"code": {
"type": [
"string",
"null"
]
},
"lots": {
"type": "number"
},
"shares": {
"type": [
"number",
"null"
]
},
"ticker": {
"type": [
"string",
"null"
]
},
"sec_url": {
"type": "string"
},
"filed_at": {
"type": "string"
},
"accession": {
"type": "string"
},
"amendment": {
"type": "boolean"
},
"ownership": {
"anyOf": [
{
"enum": [
"direct",
"indirect"
],
"type": "string"
},
{
"type": "null"
}
]
},
"value_usd": {
"type": [
"number",
"null"
]
},
"derivative": {
"type": "boolean"
},
"filed_date": {
"type": "string"
},
"issuer_cik": {
"type": "string"
},
"insider_cik": {
"type": [
"string",
"null"
]
},
"issuer_name": {
"type": [
"string",
"null"
]
},
"rule_10b5_1": {
"type": [
"boolean",
"null"
]
},
"carried_from": {
"type": [
"string",
"null"
]
},
"insider_name": {
"type": [
"string",
"null"
]
},
"avg_price_usd": {
"type": [
"number",
"null"
]
},
"insider_roles": {
"type": "array",
"items": {
"enum": [
"director",
"officer",
"ten_percent_owner",
"other"
],
"type": "string"
}
},
"insider_title": {
"type": [
"string",
"null"
]
},
"price_outlier": {
"type": "boolean"
},
"security_title": {
"type": [
"string",
"null"
]
},
"trade_date_last": {
"type": [
"string",
"null"
]
},
"reporting_owners": {
"type": "number"
},
"trade_date_first": {
"type": [
"string",
"null"
]
},
"shares_owned_after": {
"type": [
"number",
"null"
]
},
"acquired_or_disposed": {
"anyOf": [
{
"enum": [
"acquired",
"disposed"
],
"type": "string"
},
{
"type": "null"
}
]
},
"ownership_change_pct": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
}
},
{
"type": "null"
}
]
},
"companies": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"required": [
"ticker",
"issuer_cik",
"issuer_name",
"insiders",
"value_usd",
"last_filed_at",
"last_filed_date",
"url"
],
"properties": {
"url": {
"type": "string"
},
"ticker": {
"type": "string"
},
"insiders": {
"type": "number"
},
"value_usd": {
"type": [
"number",
"null"
]
},
"issuer_cik": {
"type": "string"
},
"issuer_name": {
"type": "string"
},
"last_filed_at": {
"type": "string"
},
"last_filed_date": {
"type": "string"
}
},
"additionalProperties": false
}
},
{
"type": "null"
}
]
},
"definition": {
"type": "string"
},
"window_days": {
"type": "number"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}One 13F filer (an institution or a curated superinvestor) by SEC CIK: names (and the superinvestor's manager and style), the quarters it filed (newest 12, with quarters_total: number of positions, portfolio value in USD, filing time, amendments), and its holdings for one quarter (default: the latest it filed) with shares, market value in USD at quarter end, pct_of_portfolio (percent) and the change versus the previous calendar quarter (new/added/reduced/unchanged, share_change_pct in percent). When a stock split between the two quarters, previous_shares is converted to this quarter's shares before comparing (split_factor = new shares per old share) and a change within 0.5% counts as unchanged; a split that changed the CUSIP is shown as one row under the new CUSIP. Also returns the 10 largest positions sold out that quarter and the 10 largest option positions (put/call market value), each with its total count. Portfolio value counts long positions and excludes options. If the institution did not file the previous quarter, changes and sold-out positions are not reported. Securities without a ticker (bonds, some ETFs and foreign shares) have url null. At most 200 holdings per call; use page.
| Parameter | Type | Description |
|---|---|---|
| cik * | string | SEC CIK of the 13F filer, e.g. 0001067983 (Berkshire Hathaway). Get it from search. |
| page | integer | Page number starting at 1; each page has `limit` rows. Check has_more. |
| sort | string | value = largest market value first (default); shares; change = largest share increase first; pct = largest share of the portfolio first. |
| limit | integer | Maximum rows to return (1-200, default 25). |
| quarter | string | Quarter to show, e.g. 2026-q2. Default: the latest quarter this institution filed. |
{
"name": "get_institution",
"title": "13F institution and its holdings",
"description": "One 13F filer (an institution or a curated superinvestor) by SEC CIK: names (and the superinvestor's manager and style), the quarters it filed (newest 12, with quarters_total: number of positions, portfolio value in USD, filing time, amendments), and its holdings for one quarter (default: the latest it filed) with shares, market value in USD at quarter end, pct_of_portfolio (percent) and the change versus the previous calendar quarter (new/added/reduced/unchanged, share_change_pct in percent). When a stock split between the two quarters, previous_shares is converted to this quarter's shares before comparing (split_factor = new shares per old share) and a change within 0.5% counts as unchanged; a split that changed the CUSIP is shown as one row under the new CUSIP. Also returns the 10 largest positions sold out that quarter and the 10 largest option positions (put/call market value), each with its total count. Portfolio value counts long positions and excludes options. If the institution did not file the previous quarter, changes and sold-out positions are not reported. Securities without a ticker (bonds, some ETFs and foreign shares) have url null. At most 200 holdings per call; use page.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"cik"
],
"properties": {
"cik": {
"type": "string",
"pattern": "^(CIK)?\\d{1,10}$",
"description": "SEC CIK of the 13F filer, e.g. 0001067983 (Berkshire Hathaway). Get it from search."
},
"page": {
"type": "integer",
"default": 1,
"maximum": 500,
"minimum": 1,
"description": "Page number starting at 1; each page has `limit` rows. Check has_more."
},
"sort": {
"enum": [
"value",
"shares",
"change",
"pct"
],
"type": "string",
"default": "value",
"description": "value = largest market value first (default); shares; change = largest share increase first; pct = largest share of the portfolio first."
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 200,
"minimum": 1,
"description": "Maximum rows to return (1-200, default 25)."
},
"quarter": {
"type": "string",
"maxLength": 12,
"description": "Quarter to show, e.g. 2026-q2. Default: the latest quarter this institution filed."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"institution",
"quarters_total",
"quarters",
"quarter",
"period",
"previous_quarter",
"previous_quarter_filed",
"changes_available",
"note",
"summary",
"holdings",
"sold_out",
"options",
"url"
],
"properties": {
"url": {
"type": "string"
},
"note": {
"type": [
"string",
"null"
]
},
"period": {
"type": [
"string",
"null"
]
},
"options": {
"anyOf": [
{
"type": "object",
"required": [
"total",
"rows"
],
"properties": {
"rows": {
"type": "array",
"items": {
"type": "object",
"required": [
"ticker",
"cusip",
"name_of_issuer",
"title_of_class",
"put_value_usd",
"call_value_usd",
"url"
],
"properties": {
"url": {
"type": [
"string",
"null"
]
},
"cusip": {
"type": "string"
},
"ticker": {
"type": [
"string",
"null"
]
},
"put_value_usd": {
"type": [
"number",
"null"
]
},
"call_value_usd": {
"type": [
"number",
"null"
]
},
"name_of_issuer": {
"type": [
"string",
"null"
]
},
"title_of_class": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
},
"total": {
"type": "number"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"quarter": {
"type": [
"string",
"null"
]
},
"summary": {
"anyOf": [
{
"type": "object",
"required": [
"positions",
"value_usd",
"previous_value_usd",
"filed_at",
"amended"
],
"properties": {
"amended": {
"type": "boolean"
},
"filed_at": {
"type": "string"
},
"positions": {
"type": "number"
},
"value_usd": {
"type": "number"
},
"previous_value_usd": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"holdings": {
"anyOf": [
{
"type": "object",
"required": [
"sort",
"page",
"limit",
"has_more",
"rows"
],
"properties": {
"page": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"type": "object",
"required": [
"ticker",
"cusip",
"name_of_issuer",
"title_of_class",
"shares",
"value_usd",
"pct_of_portfolio",
"previous_shares",
"previous_value_usd",
"share_change",
"share_change_pct",
"split_factor",
"action",
"url",
"holding_history_url"
],
"properties": {
"url": {
"type": [
"string",
"null"
]
},
"cusip": {
"type": "string"
},
"action": {
"anyOf": [
{
"enum": [
"new",
"added",
"reduced",
"unchanged",
"sold_out",
"not_filed"
],
"type": "string"
},
{
"type": "null"
}
]
},
"shares": {
"type": [
"number",
"null"
]
},
"ticker": {
"type": [
"string",
"null"
]
},
"value_usd": {
"type": [
"number",
"null"
]
},
"share_change": {
"type": [
"number",
"null"
]
},
"split_factor": {
"type": [
"number",
"null"
],
"description": "Stock split between the two quarters: new shares per old share (10 = 10-for-1, 0.1 = 1-for-10 reverse split); previous_shares is converted by it. null when there was none."
},
"name_of_issuer": {
"type": [
"string",
"null"
]
},
"title_of_class": {
"type": [
"string",
"null"
]
},
"previous_shares": {
"type": [
"number",
"null"
]
},
"pct_of_portfolio": {
"type": [
"number",
"null"
]
},
"share_change_pct": {
"type": [
"number",
"null"
]
},
"previous_value_usd": {
"type": [
"number",
"null"
]
},
"holding_history_url": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
},
"sort": {
"type": "string"
},
"limit": {
"type": "number"
},
"has_more": {
"type": "boolean"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"quarters": {
"type": "array",
"items": {
"type": "object",
"required": [
"quarter",
"period",
"positions",
"value_usd",
"filed_at",
"filed_date",
"amended",
"url"
],
"properties": {
"url": {
"type": "string"
},
"period": {
"type": "string"
},
"amended": {
"type": "boolean"
},
"quarter": {
"type": "string"
},
"filed_at": {
"type": "string"
},
"positions": {
"type": "number"
},
"value_usd": {
"type": "number"
},
"filed_date": {
"type": "string"
}
},
"additionalProperties": false
}
},
"sold_out": {
"anyOf": [
{
"type": "object",
"required": [
"total",
"rows"
],
"properties": {
"rows": {
"type": "array",
"items": {
"type": "object",
"required": [
"ticker",
"cusip",
"name_of_issuer",
"title_of_class",
"shares",
"value_usd",
"pct_of_portfolio",
"previous_shares",
"previous_value_usd",
"share_change",
"share_change_pct",
"split_factor",
"action",
"url",
"holding_history_url"
],
"properties": {
"url": {
"type": [
"string",
"null"
]
},
"cusip": {
"type": "string"
},
"action": {
"anyOf": [
{
"enum": [
"new",
"added",
"reduced",
"unchanged",
"sold_out",
"not_filed"
],
"type": "string"
},
{
"type": "null"
}
]
},
"shares": {
"type": [
"number",
"null"
]
},
"ticker": {
"type": [
"string",
"null"
]
},
"value_usd": {
"type": [
"number",
"null"
]
},
"share_change": {
"type": [
"number",
"null"
]
},
"split_factor": {
"type": [
"number",
"null"
],
"description": "Stock split between the two quarters: new shares per old share (10 = 10-for-1, 0.1 = 1-for-10 reverse split); previous_shares is converted by it. null when there was none."
},
"name_of_issuer": {
"type": [
"string",
"null"
]
},
"title_of_class": {
"type": [
"string",
"null"
]
},
"previous_shares": {
"type": [
"number",
"null"
]
},
"pct_of_portfolio": {
"type": [
"number",
"null"
]
},
"share_change_pct": {
"type": [
"number",
"null"
]
},
"previous_value_usd": {
"type": [
"number",
"null"
]
},
"holding_history_url": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
},
"total": {
"type": "number"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"institution": {
"type": "object",
"required": [
"cik",
"name",
"sec_name",
"is_superinvestor",
"name_zh",
"manager",
"manager_zh",
"style",
"predecessors",
"successor",
"url",
"sec_filings_url"
],
"properties": {
"cik": {
"type": "string"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"style": {
"type": "array",
"items": {
"type": "string"
}
},
"manager": {
"type": [
"string",
"null"
]
},
"name_zh": {
"type": [
"string",
"null"
]
},
"sec_name": {
"type": "string"
},
"successor": {
"anyOf": [
{
"type": "object",
"required": [
"cik",
"name",
"url"
],
"properties": {
"cik": {
"type": "string"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"manager_zh": {
"type": [
"string",
"null"
]
},
"predecessors": {
"type": "array",
"items": {
"type": "object",
"required": [
"cik",
"name",
"url"
],
"properties": {
"cik": {
"type": "string"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
}
},
"additionalProperties": false
}
},
"sec_filings_url": {
"type": "string"
},
"is_superinvestor": {
"type": "boolean"
}
},
"additionalProperties": false
},
"quarters_total": {
"type": "number"
},
"previous_quarter": {
"type": [
"string",
"null"
]
},
"changes_available": {
"type": "boolean"
},
"previous_quarter_filed": {
"type": "boolean"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}The curated list of superinvestors (well-known long-term investors such as Warren Buffett's Berkshire Hathaway, Bill Ackman's Pershing Square, Li Lu's Himalaya Capital) with their latest 13F quarter: portfolio value in USD (long positions, excluding options), number of positions, filing date, and the 3 largest holdings with pct_of_portfolio (percent). Sorted by portfolio value. Names are in English with Chinese names in name_zh and manager_zh. source_cik is set when the latest quarter was filed under a predecessor CIK (pass it to get_institution to see that quarter). Use get_institution(cik) for full holdings and get_superinvestor_activity for what they bought and sold in a quarter.
No parameters.
{
"name": "list_superinvestors",
"title": "Curated superinvestors",
"description": "The curated list of superinvestors (well-known long-term investors such as Warren Buffett's Berkshire Hathaway, Bill Ackman's Pershing Square, Li Lu's Himalaya Capital) with their latest 13F quarter: portfolio value in USD (long positions, excluding options), number of positions, filing date, and the 3 largest holdings with pct_of_portfolio (percent). Sorted by portfolio value. Names are in English with Chinese names in name_zh and manager_zh. source_cik is set when the latest quarter was filed under a predecessor CIK (pass it to get_institution to see that quarter). Use get_institution(cik) for full holdings and get_superinvestor_activity for what they bought and sold in a quarter.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"count",
"superinvestors",
"url"
],
"properties": {
"url": {
"type": "string"
},
"count": {
"type": "number"
},
"superinvestors": {
"type": "array",
"items": {
"type": "object",
"required": [
"cik",
"name",
"name_zh",
"manager",
"manager_zh",
"style",
"quarter",
"value_usd",
"positions",
"filed_date",
"source_cik",
"top_holdings",
"url"
],
"properties": {
"cik": {
"type": "string"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"style": {
"type": "array",
"items": {
"type": "string"
}
},
"manager": {
"type": [
"string",
"null"
]
},
"name_zh": {
"type": [
"string",
"null"
]
},
"quarter": {
"type": [
"string",
"null"
]
},
"positions": {
"type": [
"number",
"null"
]
},
"value_usd": {
"type": [
"number",
"null"
]
},
"filed_date": {
"type": [
"string",
"null"
]
},
"manager_zh": {
"type": [
"string",
"null"
]
},
"source_cik": {
"type": [
"string",
"null"
]
},
"top_holdings": {
"type": "array",
"items": {
"type": "object",
"required": [
"ticker",
"name",
"pct_of_portfolio"
],
"properties": {
"name": {
"type": [
"string",
"null"
]
},
"ticker": {
"type": [
"string",
"null"
]
},
"pct_of_portfolio": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}What the curated superinvestors bought and sold in one quarter according to 13F, compared with the previous calendar quarter (default: the latest complete quarter). Without superinvestor_cik: most_bought (stocks the most superinvestors opened or added to), most_sold (reduced or sold out) and per-superinvestor counts of new/added/reduced/sold-out positions. With superinvestor_cik: that superinvestor's individual moves grouped by action, largest positions first (shares_change_pct in percent for added and reduced). Only superinvestors that filed both quarters are compared; added and reduced are decided by share count, not value, and when a stock split between the two quarters the previous share count is converted first (split_factor). Securities are merged by ticker (CUSIP when there is none). 13F is filed up to 45 days after quarter end.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum rows per list (1-50, default 25). |
| quarter | string | Quarter to compare with the previous calendar quarter, e.g. 2026-q2. Default: the latest complete quarter that can be compared. |
| superinvestor_cik | string | Show this superinvestor's individual moves instead of the cross-superinvestor summary. |
{
"name": "get_superinvestor_activity",
"title": "Superinvestor quarterly buys and sells",
"description": "What the curated superinvestors bought and sold in one quarter according to 13F, compared with the previous calendar quarter (default: the latest complete quarter). Without superinvestor_cik: most_bought (stocks the most superinvestors opened or added to), most_sold (reduced or sold out) and per-superinvestor counts of new/added/reduced/sold-out positions. With superinvestor_cik: that superinvestor's individual moves grouped by action, largest positions first (shares_change_pct in percent for added and reduced). Only superinvestors that filed both quarters are compared; added and reduced are decided by share count, not value, and when a stock split between the two quarters the previous share count is converted first (split_factor). Securities are merged by ticker (CUSIP when there is none). 13F is filed up to 45 days after quarter end.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"limit": {
"type": "integer",
"default": 25,
"maximum": 50,
"minimum": 1,
"description": "Maximum rows per list (1-50, default 25)."
},
"quarter": {
"type": "string",
"maxLength": 12,
"description": "Quarter to compare with the previous calendar quarter, e.g. 2026-q2. Default: the latest complete quarter that can be compared."
},
"superinvestor_cik": {
"type": "string",
"pattern": "^(CIK)?\\d{1,10}$",
"description": "Show this superinvestor's individual moves instead of the cross-superinvestor summary."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"quarter",
"period",
"previous_quarter",
"superinvestors_compared",
"url",
"most_bought",
"most_sold",
"by_superinvestor",
"superinvestor"
],
"properties": {
"url": {
"type": "string"
},
"period": {
"type": "string"
},
"quarter": {
"type": "string"
},
"most_sold": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"required": [
"ticker",
"cusip",
"name_of_issuer",
"title_of_class",
"url",
"superinvestors",
"reduced_positions",
"sold_out_positions"
],
"properties": {
"url": {
"type": [
"string",
"null"
]
},
"cusip": {
"type": "string"
},
"ticker": {
"type": [
"string",
"null"
]
},
"name_of_issuer": {
"type": [
"string",
"null"
]
},
"superinvestors": {
"type": "number"
},
"title_of_class": {
"type": [
"string",
"null"
]
},
"reduced_positions": {
"type": "number"
},
"sold_out_positions": {
"type": "number"
}
},
"additionalProperties": false
}
},
{
"type": "null"
}
]
},
"most_bought": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"required": [
"ticker",
"cusip",
"name_of_issuer",
"title_of_class",
"url",
"superinvestors",
"new_positions",
"added_positions"
],
"properties": {
"url": {
"type": [
"string",
"null"
]
},
"cusip": {
"type": "string"
},
"ticker": {
"type": [
"string",
"null"
]
},
"new_positions": {
"type": "number"
},
"name_of_issuer": {
"type": [
"string",
"null"
]
},
"superinvestors": {
"type": "number"
},
"title_of_class": {
"type": [
"string",
"null"
]
},
"added_positions": {
"type": "number"
}
},
"additionalProperties": false
}
},
{
"type": "null"
}
]
},
"superinvestor": {
"anyOf": [
{
"type": "object",
"required": [
"cik",
"name",
"manager",
"filed_current",
"filed_previous",
"note",
"value_usd",
"counts",
"new",
"added",
"reduced",
"sold_out",
"url"
],
"properties": {
"cik": {
"type": "string"
},
"new": {
"type": "array",
"items": {
"type": "object",
"required": [
"ticker",
"cusip",
"name_of_issuer",
"title_of_class",
"url",
"shares_change_pct",
"split_factor"
],
"properties": {
"url": {
"type": [
"string",
"null"
]
},
"cusip": {
"type": "string"
},
"ticker": {
"type": [
"string",
"null"
]
},
"split_factor": {
"type": [
"number",
"null"
],
"description": "Stock split between the two quarters that shares_change_pct was converted for: new shares per old share (10 = 10-for-1, 0.1 = 1-for-10 reverse split); null when there was none."
},
"name_of_issuer": {
"type": [
"string",
"null"
]
},
"title_of_class": {
"type": [
"string",
"null"
]
},
"shares_change_pct": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
}
},
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"note": {
"type": [
"string",
"null"
]
},
"added": {
"type": "array",
"items": {
"type": "object",
"required": [
"ticker",
"cusip",
"name_of_issuer",
"title_of_class",
"url",
"shares_change_pct",
"split_factor"
],
"properties": {
"url": {
"type": [
"string",
"null"
]
},
"cusip": {
"type": "string"
},
"ticker": {
"type": [
"string",
"null"
]
},
"split_factor": {
"type": [
"number",
"null"
],
"description": "Stock split between the two quarters that shares_change_pct was converted for: new shares per old share (10 = 10-for-1, 0.1 = 1-for-10 reverse split); null when there was none."
},
"name_of_issuer": {
"type": [
"string",
"null"
]
},
"title_of_class": {
"type": [
"string",
"null"
]
},
"shares_change_pct": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
}
},
"counts": {
"type": "object",
"required": [
"new",
"added",
"reduced",
"sold_out"
],
"properties": {
"new": {
"type": "number"
},
"added": {
"type": "number"
},
"reduced": {
"type": "number"
},
"sold_out": {
"type": "number"
}
},
"additionalProperties": false
},
"manager": {
"type": [
"string",
"null"
]
},
"reduced": {
"type": "array",
"items": {
"type": "object",
"required": [
"ticker",
"cusip",
"name_of_issuer",
"title_of_class",
"url",
"shares_change_pct",
"split_factor"
],
"properties": {
"url": {
"type": [
"string",
"null"
]
},
"cusip": {
"type": "string"
},
"ticker": {
"type": [
"string",
"null"
]
},
"split_factor": {
"type": [
"number",
"null"
],
"description": "Stock split between the two quarters that shares_change_pct was converted for: new shares per old share (10 = 10-for-1, 0.1 = 1-for-10 reverse split); null when there was none."
},
"name_of_issuer": {
"type": [
"string",
"null"
]
},
"title_of_class": {
"type": [
"string",
"null"
]
},
"shares_change_pct": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
}
},
"sold_out": {
"type": "array",
"items": {
"type": "object",
"required": [
"ticker",
"cusip",
"name_of_issuer",
"title_of_class",
"url",
"shares_change_pct",
"split_factor"
],
"properties": {
"url": {
"type": [
"string",
"null"
]
},
"cusip": {
"type": "string"
},
"ticker": {
"type": [
"string",
"null"
]
},
"split_factor": {
"type": [
"number",
"null"
],
"description": "Stock split between the two quarters that shares_change_pct was converted for: new shares per old share (10 = 10-for-1, 0.1 = 1-for-10 reverse split); null when there was none."
},
"name_of_issuer": {
"type": [
"string",
"null"
]
},
"title_of_class": {
"type": [
"string",
"null"
]
},
"shares_change_pct": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
}
},
"value_usd": {
"type": [
"number",
"null"
]
},
"filed_current": {
"type": "boolean"
},
"filed_previous": {
"type": "boolean"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"by_superinvestor": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"required": [
"cik",
"name",
"manager",
"filed_current",
"filed_previous",
"value_usd",
"new",
"added",
"reduced",
"sold_out",
"url"
],
"properties": {
"cik": {
"type": "string"
},
"new": {
"type": "number"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"added": {
"type": "number"
},
"manager": {
"type": [
"string",
"null"
]
},
"reduced": {
"type": "number"
},
"sold_out": {
"type": "number"
},
"value_usd": {
"type": [
"number",
"null"
]
},
"filed_current": {
"type": "boolean"
},
"filed_previous": {
"type": "boolean"
}
},
"additionalProperties": false
}
},
{
"type": "null"
}
]
},
"previous_quarter": {
"type": "string"
},
"superinvestors_compared": {
"type": "number"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}The current holders of 5% or more of a stock according to their latest Schedule 13D or 13G filing, largest first, like the Major holders tab on livermore.club. Each holder has pct_of_class (percent of the share class, 7.5 = 7.5%) and shares from its latest filing, the change against the previous filing of the same position (previous_pct_of_class, pct_of_class_change in percentage points; new_position is true for a first filing), the form (13D, 13G, 13D/A, 13G/A), filing and event dates, when the position was first filed and how many filings it has, and links to the holder's livermore.club page (institutions and insiders) and the SEC filing. In a group filing each member reports the shares it counts as its own, so the figure is the largest single stake, not a sum. Share classes (GOOG, GOOGL) are split by the CUSIP in the filing. Limits: holders stop filing after a company is acquired or delisted, and holders whose latest filing is an older SC 13D or SC 13G (before 2024-12-18) have no percent and are not counted. Structured 13D/13G filings (voluntary since 2023-12-18, required since 2024-12-18) carry the percent, shares and event date; older SC 13D and SC 13G filings (since 2021) list only the filer, the company and the date (legacy true). Call get_data_coverage for the loaded date range.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum rows to return (1-200, default 25). |
| ticker * | string | Stock ticker, e.g. AAPL or BRK.B (share classes use a dot; BRK-B also works). |
{
"name": "get_major_holders",
"title": "Current 5% holders of a stock (13D/13G)",
"description": "The current holders of 5% or more of a stock according to their latest Schedule 13D or 13G filing, largest first, like the Major holders tab on livermore.club. Each holder has pct_of_class (percent of the share class, 7.5 = 7.5%) and shares from its latest filing, the change against the previous filing of the same position (previous_pct_of_class, pct_of_class_change in percentage points; new_position is true for a first filing), the form (13D, 13G, 13D/A, 13G/A), filing and event dates, when the position was first filed and how many filings it has, and links to the holder's livermore.club page (institutions and insiders) and the SEC filing. In a group filing each member reports the shares it counts as its own, so the figure is the largest single stake, not a sum. Share classes (GOOG, GOOGL) are split by the CUSIP in the filing. Limits: holders stop filing after a company is acquired or delisted, and holders whose latest filing is an older SC 13D or SC 13G (before 2024-12-18) have no percent and are not counted. Structured 13D/13G filings (voluntary since 2023-12-18, required since 2024-12-18) carry the percent, shares and event date; older SC 13D and SC 13G filings (since 2021) list only the filer, the company and the date (legacy true). Call get_data_coverage for the loaded date range.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"ticker"
],
"properties": {
"limit": {
"type": "integer",
"default": 25,
"maximum": 200,
"minimum": 1,
"description": "Maximum rows to return (1-200, default 25)."
},
"ticker": {
"type": "string",
"maxLength": 12,
"minLength": 1,
"description": "Stock ticker, e.g. AAPL or BRK.B (share classes use a dot; BRK-B also works)."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"ticker",
"name",
"cik",
"holders_total",
"holders",
"note",
"url"
],
"properties": {
"cik": {
"type": "string"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"note": {
"type": [
"string",
"null"
]
},
"ticker": {
"type": "string"
},
"holders": {
"type": "array",
"items": {
"type": "object",
"required": [
"filer_cik",
"filer_name",
"superinvestor",
"pct_of_class",
"shares",
"previous_pct_of_class",
"pct_of_class_change",
"new_position",
"form",
"schedule",
"amendment",
"accession",
"filed_at",
"filed_date",
"event_date",
"first_filed_date",
"filings",
"security_class",
"filer_url",
"sec_url"
],
"properties": {
"form": {
"type": "string"
},
"shares": {
"type": [
"number",
"null"
]
},
"filings": {
"type": "number"
},
"sec_url": {
"type": "string"
},
"filed_at": {
"type": "string"
},
"schedule": {
"enum": [
"13D",
"13G"
],
"type": "string"
},
"accession": {
"type": "string"
},
"amendment": {
"type": "boolean"
},
"filer_cik": {
"type": "string"
},
"filer_url": {
"type": [
"string",
"null"
]
},
"event_date": {
"type": [
"string",
"null"
]
},
"filed_date": {
"type": "string"
},
"filer_name": {
"type": "string"
},
"new_position": {
"type": "boolean"
},
"pct_of_class": {
"type": "number"
},
"superinvestor": {
"type": [
"string",
"null"
]
},
"security_class": {
"type": [
"string",
"null"
]
},
"first_filed_date": {
"type": "string"
},
"pct_of_class_change": {
"type": [
"number",
"null"
]
},
"previous_pct_of_class": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
}
},
"holders_total": {
"type": "number"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Schedule 13D and 13G filings by holders of more than 5% of a company, newest first, like livermore.club/en/ownership. 13D is filed by holders who may seek to influence the company (activists), 13G by passive holders; /A marks an amendment. Filter by form, ticker (one stock's whole history), filer_cik (an institution's or person's filings, including those it is named in), query (filer or company name, or a ticker) and filing dates. Without ticker or filer_cik the query is market-wide and limited to 365 days of filings (default: the last 30 days); note says when the range was narrowed. Each row has the company (issuer_cik, issuer_name, ticker), the filer (filer_cik, filer_name, the superinvestor name when it is one, reporting_persons in a group filing), pct_of_class and shares, the change against the previous filing of the same position (previous_pct_of_class, pct_of_class_change in percentage points, new_position), below_5_pct (an exit or a drop below the threshold), the event date, and links to livermore.club (filer_url, stock_url) and the SEC filing. Structured 13D/13G filings (voluntary since 2023-12-18, required since 2024-12-18) carry the percent, shares and event date; older SC 13D and SC 13G filings (since 2021) list only the filer, the company and the date (legacy true). Call get_data_coverage for the loaded date range. At most 200 rows per call; use page for more.
| Parameter | Type | Description |
|---|---|---|
| to | string | Latest filing date, YYYY-MM-DD, inclusive. |
| form | string | 13D (holders who may seek to influence the company) or 13G (passive holders). Default: both. |
| from | string | Earliest filing date, YYYY-MM-DD (US Eastern). |
| page | integer | Page number starting at 1; each page has `limit` rows. Check has_more. |
| limit | integer | Maximum rows to return (1-200, default 25). |
| query | string | Filer or company name contains this text, or a ticker for that company's filings (like the search box on livermore.club/en/ownership). |
| ticker | string | Only filings for this stock (the company's filings for this share class), whole history. |
| filer_cik | string | Only filings this filer submitted or is named in as a reporting person, whole history. Get the CIK from search (institutions and insiders). |
{
"name": "get_ownership_filings",
"title": "Schedule 13D and 13G filings",
"description": "Schedule 13D and 13G filings by holders of more than 5% of a company, newest first, like livermore.club/en/ownership. 13D is filed by holders who may seek to influence the company (activists), 13G by passive holders; /A marks an amendment. Filter by form, ticker (one stock's whole history), filer_cik (an institution's or person's filings, including those it is named in), query (filer or company name, or a ticker) and filing dates. Without ticker or filer_cik the query is market-wide and limited to 365 days of filings (default: the last 30 days); note says when the range was narrowed. Each row has the company (issuer_cik, issuer_name, ticker), the filer (filer_cik, filer_name, the superinvestor name when it is one, reporting_persons in a group filing), pct_of_class and shares, the change against the previous filing of the same position (previous_pct_of_class, pct_of_class_change in percentage points, new_position), below_5_pct (an exit or a drop below the threshold), the event date, and links to livermore.club (filer_url, stock_url) and the SEC filing. Structured 13D/13G filings (voluntary since 2023-12-18, required since 2024-12-18) carry the percent, shares and event date; older SC 13D and SC 13G filings (since 2021) list only the filer, the company and the date (legacy true). Call get_data_coverage for the loaded date range. At most 200 rows per call; use page for more.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"to": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Latest filing date, YYYY-MM-DD, inclusive."
},
"form": {
"enum": [
"13D",
"13G"
],
"type": "string",
"description": "13D (holders who may seek to influence the company) or 13G (passive holders). Default: both."
},
"from": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Earliest filing date, YYYY-MM-DD (US Eastern)."
},
"page": {
"type": "integer",
"default": 1,
"maximum": 500,
"minimum": 1,
"description": "Page number starting at 1; each page has `limit` rows. Check has_more."
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 200,
"minimum": 1,
"description": "Maximum rows to return (1-200, default 25)."
},
"query": {
"type": "string",
"maxLength": 80,
"minLength": 2,
"description": "Filer or company name contains this text, or a ticker for that company's filings (like the search box on livermore.club/en/ownership)."
},
"ticker": {
"type": "string",
"maxLength": 12,
"minLength": 1,
"description": "Only filings for this stock (the company's filings for this share class), whole history."
},
"filer_cik": {
"type": "string",
"pattern": "^(CIK)?\\d{1,10}$",
"description": "Only filings this filer submitted or is named in as a reporting person, whole history. Get the CIK from search (institutions and insiders)."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"scope",
"stock",
"filer",
"filters",
"note",
"page",
"limit",
"has_more",
"rows",
"url"
],
"properties": {
"url": {
"type": "string"
},
"note": {
"type": [
"string",
"null"
]
},
"page": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"type": "object",
"required": [
"accession",
"form",
"schedule",
"amendment",
"legacy",
"filed_at",
"filed_date",
"event_date",
"issuer_cik",
"issuer_name",
"ticker",
"security_class",
"filer_cik",
"filer_name",
"superinvestor",
"reporting_persons",
"pct_of_class",
"shares",
"previous_pct_of_class",
"pct_of_class_change",
"new_position",
"below_5_pct",
"filer_url",
"stock_url",
"sec_url"
],
"properties": {
"form": {
"type": "string"
},
"legacy": {
"type": "boolean"
},
"shares": {
"type": [
"number",
"null"
]
},
"ticker": {
"type": [
"string",
"null"
]
},
"sec_url": {
"type": "string"
},
"filed_at": {
"type": "string"
},
"schedule": {
"enum": [
"13D",
"13G"
],
"type": "string"
},
"accession": {
"type": "string"
},
"amendment": {
"type": "boolean"
},
"filer_cik": {
"type": "string"
},
"filer_url": {
"type": [
"string",
"null"
]
},
"stock_url": {
"type": [
"string",
"null"
]
},
"event_date": {
"type": [
"string",
"null"
]
},
"filed_date": {
"type": "string"
},
"filer_name": {
"type": "string"
},
"issuer_cik": {
"type": [
"string",
"null"
]
},
"below_5_pct": {
"type": "boolean"
},
"issuer_name": {
"type": [
"string",
"null"
]
},
"new_position": {
"type": "boolean"
},
"pct_of_class": {
"type": [
"number",
"null"
]
},
"superinvestor": {
"type": [
"string",
"null"
]
},
"security_class": {
"type": [
"string",
"null"
]
},
"reporting_persons": {
"type": "number"
},
"pct_of_class_change": {
"type": [
"number",
"null"
]
},
"previous_pct_of_class": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
}
},
"filer": {
"anyOf": [
{
"type": "object",
"required": [
"cik",
"name",
"url"
],
"properties": {
"cik": {
"type": "string"
},
"url": {
"type": [
"string",
"null"
]
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"limit": {
"type": "number"
},
"scope": {
"enum": [
"stock",
"filer",
"stock_and_filer",
"market"
],
"type": "string"
},
"stock": {
"anyOf": [
{
"type": "object",
"required": [
"ticker",
"name",
"cik",
"url"
],
"properties": {
"cik": {
"type": "string"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"ticker": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"filters": {
"type": "object",
"required": [
"form",
"query",
"from",
"to"
],
"properties": {
"to": {
"type": [
"string",
"null"
]
},
"form": {
"type": [
"string",
"null"
]
},
"from": {
"type": [
"string",
"null"
]
},
"query": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"has_more": {
"type": "boolean"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Form 144 notices of proposed sales of restricted or control stock by insiders (officers, directors, large holders), newest first, like livermore.club/en/ownership/144. A notice is a plan to sell, not a completed sale. Notices replaced by a Form 144/A are left out. Filter by ticker (one company's whole history), seller_cik, query (seller or company name, or a ticker) and filing dates. Without ticker or seller_cik the query is market-wide and limited to 365 days of filings (default: the last 30 days), and notices whose market value is clearly misreported are left out, as on the website; with ticker or seller_cik they are listed with value_outlier true. A notice is flagged when the price per share its market value implies is far above the company's reference prices from Form 4 trades and 13F holdings around the planned sale date; values that are too low are not flagged. Each row has the company, the seller and their relationships to it, shares_to_sell, market_value_usd, shares_outstanding, approx_sale_date, plan_adoption_date (a Rule 10b5-1 plan, when given), the broker, and links to livermore.club and the SEC filing. Coverage: XML notices since 2023 (required since 2023-04-13); call get_data_coverage for the loaded date range. At most 200 rows per call; use page for more.
| Parameter | Type | Description |
|---|---|---|
| to | string | Latest filing date, YYYY-MM-DD, inclusive. |
| from | string | Earliest filing date, YYYY-MM-DD (US Eastern). |
| page | integer | Page number starting at 1; each page has `limit` rows. Check has_more. |
| limit | integer | Maximum rows to return (1-200, default 25). |
| query | string | Seller or company name contains this text, or a ticker for that company's notices (like the search box on livermore.club/en/ownership/144). |
| ticker | string | Only notices for this company (all share classes; Form 144 has no CUSIP), whole history. |
| seller_cik | string | Only notices by this seller, whole history. Sellers use the same CIK as their Form 4 filings. |
{
"name": "get_form144_notices",
"title": "Form 144 notices of proposed sales",
"description": "Form 144 notices of proposed sales of restricted or control stock by insiders (officers, directors, large holders), newest first, like livermore.club/en/ownership/144. A notice is a plan to sell, not a completed sale. Notices replaced by a Form 144/A are left out. Filter by ticker (one company's whole history), seller_cik, query (seller or company name, or a ticker) and filing dates. Without ticker or seller_cik the query is market-wide and limited to 365 days of filings (default: the last 30 days), and notices whose market value is clearly misreported are left out, as on the website; with ticker or seller_cik they are listed with value_outlier true. A notice is flagged when the price per share its market value implies is far above the company's reference prices from Form 4 trades and 13F holdings around the planned sale date; values that are too low are not flagged. Each row has the company, the seller and their relationships to it, shares_to_sell, market_value_usd, shares_outstanding, approx_sale_date, plan_adoption_date (a Rule 10b5-1 plan, when given), the broker, and links to livermore.club and the SEC filing. Coverage: XML notices since 2023 (required since 2023-04-13); call get_data_coverage for the loaded date range. At most 200 rows per call; use page for more.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"to": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Latest filing date, YYYY-MM-DD, inclusive."
},
"from": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Earliest filing date, YYYY-MM-DD (US Eastern)."
},
"page": {
"type": "integer",
"default": 1,
"maximum": 500,
"minimum": 1,
"description": "Page number starting at 1; each page has `limit` rows. Check has_more."
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 200,
"minimum": 1,
"description": "Maximum rows to return (1-200, default 25)."
},
"query": {
"type": "string",
"maxLength": 80,
"minLength": 2,
"description": "Seller or company name contains this text, or a ticker for that company's notices (like the search box on livermore.club/en/ownership/144)."
},
"ticker": {
"type": "string",
"maxLength": 12,
"minLength": 1,
"description": "Only notices for this company (all share classes; Form 144 has no CUSIP), whole history."
},
"seller_cik": {
"type": "string",
"pattern": "^(CIK)?\\d{1,10}$",
"description": "Only notices by this seller, whole history. Sellers use the same CIK as their Form 4 filings."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"scope",
"stock",
"seller",
"filters",
"note",
"page",
"limit",
"has_more",
"rows",
"url"
],
"properties": {
"url": {
"type": "string"
},
"note": {
"type": [
"string",
"null"
]
},
"page": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"type": "object",
"required": [
"accession",
"form",
"amendment",
"filed_at",
"filed_date",
"issuer_cik",
"issuer_name",
"ticker",
"seller_cik",
"seller_name",
"relationships",
"security_class",
"shares_to_sell",
"market_value_usd",
"shares_outstanding",
"approx_sale_date",
"plan_adoption_date",
"broker",
"value_outlier",
"seller_url",
"stock_url",
"sec_url"
],
"properties": {
"form": {
"type": "string"
},
"broker": {
"type": [
"string",
"null"
]
},
"ticker": {
"type": [
"string",
"null"
]
},
"sec_url": {
"type": "string"
},
"filed_at": {
"type": "string"
},
"accession": {
"type": "string"
},
"amendment": {
"type": "boolean"
},
"stock_url": {
"type": [
"string",
"null"
]
},
"filed_date": {
"type": "string"
},
"issuer_cik": {
"type": "string"
},
"seller_cik": {
"type": [
"string",
"null"
]
},
"seller_url": {
"type": [
"string",
"null"
]
},
"issuer_name": {
"type": [
"string",
"null"
]
},
"seller_name": {
"type": [
"string",
"null"
]
},
"relationships": {
"type": "array",
"items": {
"type": "string"
}
},
"value_outlier": {
"type": "boolean"
},
"security_class": {
"type": [
"string",
"null"
]
},
"shares_to_sell": {
"type": [
"number",
"null"
]
},
"approx_sale_date": {
"type": [
"string",
"null"
]
},
"market_value_usd": {
"type": [
"number",
"null"
]
},
"plan_adoption_date": {
"type": [
"string",
"null"
]
},
"shares_outstanding": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
}
},
"limit": {
"type": "number"
},
"scope": {
"enum": [
"stock",
"seller",
"stock_and_seller",
"market"
],
"type": "string"
},
"stock": {
"anyOf": [
{
"type": "object",
"required": [
"ticker",
"name",
"cik",
"url"
],
"properties": {
"cik": {
"type": "string"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"ticker": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"seller": {
"anyOf": [
{
"type": "object",
"required": [
"cik",
"name",
"url"
],
"properties": {
"cik": {
"type": "string"
},
"url": {
"type": [
"string",
"null"
]
},
"name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"filters": {
"type": "object",
"required": [
"query",
"from",
"to"
],
"properties": {
"to": {
"type": [
"string",
"null"
]
},
"from": {
"type": [
"string",
"null"
]
},
"query": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"has_more": {
"type": "boolean"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Trades in stocks, ETFs, options and, on request, other assets reported by politicians (members of the U.S. Congress: House and Senate), one row per trade, newest report first by default. Filter by politician (bioguide ID or name), ticker, asset (listed by default, or stock, option, other, all), chamber, party, type (buy, sell, exchange), report filing dates (filed_from, filed_to) and trade dates (traded_from, traded_to). Each row has the politician (politician_bioguide, politician_name, party, chamber, state), the asset and reported ticker, asset_class, type (purchase, sale_full, sale_partial, sale or exchange), owner (self, spouse, joint or child), traded_date and filed_date, delay_days (days from the trade to its first report; null when the reported trade date is after the filing date, a typo flagged by trade_date_error), late (reported more than 45 days after the trade), the amount range, the official source_url, and livermore.club links for the politician and the stock (stock_url is null when the asset is not a listed company). totals summarize all trades matching the filters, not just this page. Data: House and Senate periodic transaction reports (PTRs) filed since 2020-01-01, from the U.S. House Clerk and the Senate Office of Public Records (eFD), updated daily. Only listed securities are included by default: stocks (including ADRs), ETFs and options, the assets with an exchange ticker. Politicians also report Treasury bills and notes, municipal and corporate bonds, private companies, private funds, crypto and other assets; pass asset=other for those or asset=all for everything. Amounts are the statutory ranges members of Congress report, not exact values: amount_min_usd to amount_max_usd, where a null amount_max_usd is an 'Over $X' range; estimated volumes add up range midpoints (an 'Over $X' range counts as X), so treat them as rough sizes. Trades replaced by an amendment and duplicates reported again in a later filing are left out. Paper and scanned reports are listed on politician pages but their trades are not read. At most 200 rows per call; use page for more.
| Parameter | Type | Description |
|---|---|---|
| page | integer | Page number starting at 1; each page has `limit` rows. Check has_more. |
| sort | string | filed = newest report first (default); traded = most recent trade first; amount = largest amount range first. |
| type | string | buy (purchases), sell (full, partial or unspecified sales) or exchange. |
| asset | string | Which assets to include: listed (default) = listed securities, that is stocks including ADRs, ETFs and options; stock = listed stocks and ETFs without options; option = options; other = Treasury bills and notes, municipal and corporate bonds, private companies, private funds, crypto and other assets… |
| limit | integer | Maximum rows to return (1-200, default 25). |
| party | string | democrat, republican or independent (the politician's latest party). |
| ticker | string | Only trades in this company (all its share classes, options and former tickers), e.g. MSFT. A ticker that is not a listed company (many ETFs and funds) matches the ticker as reported. |
| chamber | string | house or senate. |
| filed_to | string | Latest filing date of the report, YYYY-MM-DD, inclusive. |
| traded_to | string | Latest trade date, YYYY-MM-DD, inclusive. |
| filed_from | string | Earliest filing date of the report, YYYY-MM-DD. |
| politician | string | Only this politician (a member of the U.S. Congress): a bioguide ID (e.g. P000197) or a name (e.g. Pelosi, Nancy Pelosi, Bernie Sanders). A name that matches several politicians returns an error listing them. |
| traded_from | string | Earliest trade date, YYYY-MM-DD. |
{
"name": "get_politician_trades",
"title": "Politician trades (U.S. Congress: House and Senate)",
"description": "Trades in stocks, ETFs, options and, on request, other assets reported by politicians (members of the U.S. Congress: House and Senate), one row per trade, newest report first by default. Filter by politician (bioguide ID or name), ticker, asset (listed by default, or stock, option, other, all), chamber, party, type (buy, sell, exchange), report filing dates (filed_from, filed_to) and trade dates (traded_from, traded_to). Each row has the politician (politician_bioguide, politician_name, party, chamber, state), the asset and reported ticker, asset_class, type (purchase, sale_full, sale_partial, sale or exchange), owner (self, spouse, joint or child), traded_date and filed_date, delay_days (days from the trade to its first report; null when the reported trade date is after the filing date, a typo flagged by trade_date_error), late (reported more than 45 days after the trade), the amount range, the official source_url, and livermore.club links for the politician and the stock (stock_url is null when the asset is not a listed company). totals summarize all trades matching the filters, not just this page. Data: House and Senate periodic transaction reports (PTRs) filed since 2020-01-01, from the U.S. House Clerk and the Senate Office of Public Records (eFD), updated daily. Only listed securities are included by default: stocks (including ADRs), ETFs and options, the assets with an exchange ticker. Politicians also report Treasury bills and notes, municipal and corporate bonds, private companies, private funds, crypto and other assets; pass asset=other for those or asset=all for everything. Amounts are the statutory ranges members of Congress report, not exact values: amount_min_usd to amount_max_usd, where a null amount_max_usd is an 'Over $X' range; estimated volumes add up range midpoints (an 'Over $X' range counts as X), so treat them as rough sizes. Trades replaced by an amendment and duplicates reported again in a later filing are left out. Paper and scanned reports are listed on politician pages but their trades are not read. At most 200 rows per call; use page for more.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"page": {
"type": "integer",
"default": 1,
"maximum": 500,
"minimum": 1,
"description": "Page number starting at 1; each page has `limit` rows. Check has_more."
},
"sort": {
"enum": [
"filed",
"traded",
"amount"
],
"type": "string",
"default": "filed",
"description": "filed = newest report first (default); traded = most recent trade first; amount = largest amount range first."
},
"type": {
"enum": [
"buy",
"sell",
"exchange"
],
"type": "string",
"description": "buy (purchases), sell (full, partial or unspecified sales) or exchange."
},
"asset": {
"enum": [
"listed",
"stock",
"option",
"other",
"all"
],
"type": "string",
"default": "listed",
"description": "Which assets to include: listed (default) = listed securities, that is stocks including ADRs, ETFs and options; stock = listed stocks and ETFs without options; option = options; other = Treasury bills and notes, municipal and corporate bonds, private companies, private funds, crypto and other assets; all = everything."
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 200,
"minimum": 1,
"description": "Maximum rows to return (1-200, default 25)."
},
"party": {
"enum": [
"democrat",
"republican",
"independent"
],
"type": "string",
"description": "democrat, republican or independent (the politician's latest party)."
},
"ticker": {
"type": "string",
"maxLength": 12,
"minLength": 1,
"description": "Only trades in this company (all its share classes, options and former tickers), e.g. MSFT. A ticker that is not a listed company (many ETFs and funds) matches the ticker as reported."
},
"chamber": {
"enum": [
"house",
"senate"
],
"type": "string",
"description": "house or senate."
},
"filed_to": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Latest filing date of the report, YYYY-MM-DD, inclusive."
},
"traded_to": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Latest trade date, YYYY-MM-DD, inclusive."
},
"filed_from": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Earliest filing date of the report, YYYY-MM-DD."
},
"politician": {
"type": "string",
"maxLength": 100,
"minLength": 2,
"description": "Only this politician (a member of the U.S. Congress): a bioguide ID (e.g. P000197) or a name (e.g. Pelosi, Nancy Pelosi, Bernie Sanders). A name that matches several politicians returns an error listing them."
},
"traded_from": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Earliest trade date, YYYY-MM-DD."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"politician",
"stock",
"ticker",
"filters",
"totals",
"note",
"page",
"limit",
"has_more",
"rows",
"url"
],
"properties": {
"url": {
"type": "string"
},
"note": {
"type": [
"string",
"null"
]
},
"page": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"type": "object",
"required": [
"filing_id",
"seq",
"politician_bioguide",
"politician_name",
"party",
"chamber",
"state",
"traded_date",
"trade_date_error",
"filed_date",
"delay_days",
"late",
"owner",
"type",
"asset_name",
"asset_class",
"ticker",
"issuer_cik",
"issuer_name",
"amount_min_usd",
"amount_max_usd",
"amount_text",
"description",
"comment",
"source_url",
"politician_url",
"stock_url"
],
"properties": {
"seq": {
"type": "number"
},
"late": {
"type": [
"boolean",
"null"
]
},
"type": {
"anyOf": [
{
"enum": [
"purchase",
"sale_full",
"sale_partial",
"sale",
"exchange"
],
"type": "string"
},
{
"type": "null"
}
]
},
"owner": {
"anyOf": [
{
"enum": [
"self",
"spouse",
"joint",
"child"
],
"type": "string"
},
{
"type": "null"
}
]
},
"party": {
"type": [
"string",
"null"
]
},
"state": {
"type": "string"
},
"ticker": {
"type": [
"string",
"null"
]
},
"chamber": {
"enum": [
"house",
"senate"
],
"type": "string"
},
"comment": {
"type": [
"string",
"null"
]
},
"filing_id": {
"type": "string"
},
"stock_url": {
"type": [
"string",
"null"
]
},
"asset_name": {
"type": "string"
},
"delay_days": {
"type": [
"number",
"null"
]
},
"filed_date": {
"type": "string"
},
"issuer_cik": {
"type": [
"string",
"null"
]
},
"source_url": {
"type": "string"
},
"amount_text": {
"type": [
"string",
"null"
]
},
"asset_class": {
"anyOf": [
{
"enum": [
"stock",
"option",
"etf",
"mutual_fund",
"corporate_bond",
"municipal",
"government",
"crypto",
"private_stock",
"other"
],
"type": "string"
},
{
"type": "null"
}
]
},
"description": {
"type": [
"string",
"null"
]
},
"issuer_name": {
"type": [
"string",
"null"
]
},
"traded_date": {
"type": [
"string",
"null"
]
},
"amount_max_usd": {
"type": [
"number",
"null"
]
},
"amount_min_usd": {
"type": [
"number",
"null"
]
},
"politician_url": {
"type": "string"
},
"politician_name": {
"type": "string"
},
"trade_date_error": {
"type": "boolean"
},
"politician_bioguide": {
"type": "string"
}
},
"additionalProperties": false
}
},
"limit": {
"type": "number"
},
"stock": {
"anyOf": [
{
"type": "object",
"required": [
"ticker",
"name",
"cik",
"url"
],
"properties": {
"cik": {
"type": "string"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"ticker": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"ticker": {
"type": [
"string",
"null"
],
"description": "The ticker filter when it is not a listed company and is matched as reported."
},
"totals": {
"type": "object",
"required": [
"trades",
"filings",
"politicians",
"buys",
"sells",
"estimated_volume_usd",
"estimated_buy_usd",
"estimated_sell_usd"
],
"properties": {
"buys": {
"type": "number"
},
"sells": {
"type": "number"
},
"trades": {
"type": "number"
},
"filings": {
"type": "number"
},
"politicians": {
"type": "number"
},
"estimated_buy_usd": {
"type": [
"number",
"null"
]
},
"estimated_sell_usd": {
"type": [
"number",
"null"
]
},
"estimated_volume_usd": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
},
"filters": {
"type": "object",
"required": [
"asset",
"chamber",
"party",
"type",
"filed_from",
"filed_to",
"traded_from",
"traded_to",
"sort"
],
"properties": {
"sort": {
"type": "string"
},
"type": {
"type": [
"string",
"null"
]
},
"asset": {
"enum": [
"listed",
"stock",
"option",
"other",
"all"
],
"type": "string"
},
"party": {
"type": [
"string",
"null"
]
},
"chamber": {
"type": [
"string",
"null"
]
},
"filed_to": {
"type": [
"string",
"null"
]
},
"traded_to": {
"type": [
"string",
"null"
]
},
"filed_from": {
"type": [
"string",
"null"
]
},
"traded_from": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"has_more": {
"type": "boolean"
},
"politician": {
"anyOf": [
{
"type": "object",
"required": [
"bioguide",
"name",
"party",
"chamber",
"state",
"district",
"in_office",
"url"
],
"properties": {
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"party": {
"type": [
"string",
"null"
]
},
"state": {
"type": "string"
},
"chamber": {
"enum": [
"house",
"senate"
],
"type": "string"
},
"bioguide": {
"type": "string"
},
"district": {
"type": [
"number",
"null"
]
},
"in_office": {
"type": "boolean"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}One politician (a member of the U.S. Congress: House or Senate), by bioguide ID or name: party, chamber, state, district, in office or former, terms served with start and end dates; a profile with the official photo_url, position (e.g. U.S. Representative for California's 11th district), district code (CA-11), birthday and age, official website, social accounts and Wikipedia as URLs, leadership roles (Speaker, whips, caucus chairs; current first) and, for politicians in office, current committee and subcommittee seats with titles (chair, ranking_member and so on); trade statistics since 2020 for the chosen assets (listed securities by default: trades, buys, sells, estimated volume in USD, median filing delay in days, late trades and the reports that contain them), unlisted_trades (trades in bonds, private holdings and other assets, whatever asset is), the number of reports and how many are paper or scanned, the latest filing date, and the 5 tickers the politician traded most in the chosen assets, with livermore.club links. Use get_politician_trades with the bioguide ID for the trades. Profiles, committees and photos come from the unitedstates project (public domain), refreshed daily. Data: House and Senate periodic transaction reports (PTRs) filed since 2020-01-01, from the U.S. House Clerk and the Senate Office of Public Records (eFD), updated daily. Only listed securities are included by default: stocks (including ADRs), ETFs and options, the assets with an exchange ticker. Politicians also report Treasury bills and notes, municipal and corporate bonds, private companies, private funds, crypto and other assets; pass asset=other for those or asset=all for everything. Amounts are the statutory ranges members of Congress report, not exact values: amount_min_usd to amount_max_usd, where a null amount_max_usd is an 'Over $X' range; estimated volumes add up range midpoints (an 'Over $X' range counts as X), so treat them as rough sizes. Trades replaced by an amendment and duplicates reported again in a later filing are left out. Paper and scanned reports are listed on politician pages but their trades are not read.
| Parameter | Type | Description |
|---|---|---|
| asset | string | Which assets to include: listed (default) = listed securities, that is stocks including ADRs, ETFs and options; stock = listed stocks and ETFs without options; option = options; other = Treasury bills and notes, municipal and corporate bonds, private companies, private funds, crypto and other assets… |
| politician * | string | A bioguide ID (e.g. P000197) or a name (e.g. Pelosi, Nancy Pelosi, Bernie Sanders). A name that matches several politicians returns an error listing them. |
{
"name": "get_politician",
"title": "Politician (member of the U.S. Congress)",
"description": "One politician (a member of the U.S. Congress: House or Senate), by bioguide ID or name: party, chamber, state, district, in office or former, terms served with start and end dates; a profile with the official photo_url, position (e.g. U.S. Representative for California's 11th district), district code (CA-11), birthday and age, official website, social accounts and Wikipedia as URLs, leadership roles (Speaker, whips, caucus chairs; current first) and, for politicians in office, current committee and subcommittee seats with titles (chair, ranking_member and so on); trade statistics since 2020 for the chosen assets (listed securities by default: trades, buys, sells, estimated volume in USD, median filing delay in days, late trades and the reports that contain them), unlisted_trades (trades in bonds, private holdings and other assets, whatever asset is), the number of reports and how many are paper or scanned, the latest filing date, and the 5 tickers the politician traded most in the chosen assets, with livermore.club links. Use get_politician_trades with the bioguide ID for the trades. Profiles, committees and photos come from the unitedstates project (public domain), refreshed daily. Data: House and Senate periodic transaction reports (PTRs) filed since 2020-01-01, from the U.S. House Clerk and the Senate Office of Public Records (eFD), updated daily. Only listed securities are included by default: stocks (including ADRs), ETFs and options, the assets with an exchange ticker. Politicians also report Treasury bills and notes, municipal and corporate bonds, private companies, private funds, crypto and other assets; pass asset=other for those or asset=all for everything. Amounts are the statutory ranges members of Congress report, not exact values: amount_min_usd to amount_max_usd, where a null amount_max_usd is an 'Over $X' range; estimated volumes add up range midpoints (an 'Over $X' range counts as X), so treat them as rough sizes. Trades replaced by an amendment and duplicates reported again in a later filing are left out. Paper and scanned reports are listed on politician pages but their trades are not read.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"politician"
],
"properties": {
"asset": {
"enum": [
"listed",
"stock",
"option",
"other",
"all"
],
"type": "string",
"default": "listed",
"description": "Which assets to include: listed (default) = listed securities, that is stocks including ADRs, ETFs and options; stock = listed stocks and ETFs without options; option = options; other = Treasury bills and notes, municipal and corporate bonds, private companies, private funds, crypto and other assets; all = everything. The statistics and top tickers cover these assets."
},
"politician": {
"type": "string",
"maxLength": 100,
"minLength": 2,
"description": "A bioguide ID (e.g. P000197) or a name (e.g. Pelosi, Nancy Pelosi, Bernie Sanders). A name that matches several politicians returns an error listing them."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"politician",
"profile",
"asset",
"stats",
"top_tickers",
"note",
"url"
],
"properties": {
"url": {
"type": "string"
},
"note": {
"type": [
"string",
"null"
]
},
"asset": {
"enum": [
"listed",
"stock",
"option",
"other",
"all"
],
"type": "string",
"description": "The assets that stats and top_tickers cover."
},
"stats": {
"type": "object",
"required": [
"trades",
"buys",
"sells",
"estimated_volume_usd",
"median_delay_days",
"late_trades",
"late_filings",
"unlisted_trades",
"filings",
"paper_filings",
"latest_filed_date"
],
"properties": {
"buys": {
"type": "number"
},
"sells": {
"type": "number"
},
"trades": {
"type": "number"
},
"filings": {
"type": "number"
},
"late_trades": {
"type": "number"
},
"late_filings": {
"type": "number"
},
"paper_filings": {
"type": "number"
},
"unlisted_trades": {
"type": "number",
"description": "Trades in bonds, private holdings and other assets that are not listed securities, whatever asset is."
},
"latest_filed_date": {
"type": [
"string",
"null"
]
},
"median_delay_days": {
"type": [
"number",
"null"
]
},
"estimated_volume_usd": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
},
"profile": {
"type": "object",
"required": [
"photo_url",
"position",
"district",
"birthday",
"age",
"website",
"social",
"wikipedia_url",
"leadership",
"committees"
],
"properties": {
"age": {
"type": [
"number",
"null"
],
"description": "Age today (US Eastern), for politicians in office only: the source has no date of death, so it is null for former members."
},
"social": {
"type": "object",
"required": [
"x",
"facebook",
"youtube",
"instagram",
"mastodon"
],
"properties": {
"x": {
"type": [
"string",
"null"
]
},
"youtube": {
"type": [
"string",
"null"
]
},
"facebook": {
"type": [
"string",
"null"
]
},
"mastodon": {
"type": [
"string",
"null"
]
},
"instagram": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"website": {
"type": [
"string",
"null"
],
"description": "Official website; politicians in office only."
},
"birthday": {
"type": [
"string",
"null"
]
},
"district": {
"type": [
"string",
"null"
],
"description": "House seat code of the latest term, e.g. CA-11; AK-AL for an at-large seat, DC-AL for a delegate; null for senators."
},
"position": {
"type": "string",
"description": "The seat in English, e.g. U.S. Representative for California's 11th district."
},
"photo_url": {
"type": [
"string",
"null"
],
"description": "Official portrait, 360x450 WebP, public domain; null when there is no photo."
},
"committees": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"name",
"side",
"title",
"title_raw",
"chamber",
"url",
"subcommittees"
],
"properties": {
"id": {
"type": "string"
},
"url": {
"type": [
"string",
"null"
]
},
"name": {
"type": "string"
},
"side": {
"type": [
"string",
"null"
]
},
"title": {
"anyOf": [
{
"enum": [
"chair",
"vice_chair",
"ranking_member",
"ex_officio",
"co_chair",
"other"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "chair, vice_chair, ranking_member, ex_officio, co_chair or other (the source's wording is in title_raw); null for a regular member."
},
"chamber": {
"type": "string",
"description": "house, senate or joint."
},
"title_raw": {
"type": [
"string",
"null"
]
},
"subcommittees": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"name",
"side",
"title",
"title_raw"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"side": {
"type": [
"string",
"null"
]
},
"title": {
"anyOf": [
{
"enum": [
"chair",
"vice_chair",
"ranking_member",
"ex_officio",
"co_chair",
"other"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "chair, vice_chair, ranking_member, ex_officio, co_chair or other (the source's wording is in title_raw); null for a regular member."
},
"title_raw": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}
},
"leadership": {
"type": "array",
"items": {
"type": "object",
"required": [
"title",
"chamber",
"start",
"end",
"current"
],
"properties": {
"end": {
"type": [
"string",
"null"
],
"description": "The end date, or null when the source gives none (the role is held)."
},
"start": {
"type": "string"
},
"title": {
"type": "string"
},
"chamber": {
"type": "string"
},
"current": {
"type": "boolean"
}
},
"additionalProperties": false
}
},
"wikipedia_url": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"politician": {
"type": "object",
"required": [
"bioguide",
"name",
"party",
"chamber",
"state",
"district",
"in_office",
"url",
"terms"
],
"properties": {
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"party": {
"type": [
"string",
"null"
]
},
"state": {
"type": "string"
},
"terms": {
"type": "array",
"items": {
"type": "object",
"required": [
"chamber",
"start",
"end"
],
"properties": {
"end": {
"type": "string"
},
"start": {
"type": "string"
},
"chamber": {
"enum": [
"house",
"senate"
],
"type": "string"
}
},
"additionalProperties": false
}
},
"chamber": {
"enum": [
"house",
"senate"
],
"type": "string"
},
"bioguide": {
"type": "string"
},
"district": {
"type": [
"number",
"null"
]
},
"in_office": {
"type": "boolean"
}
},
"additionalProperties": false
},
"top_tickers": {
"type": "array",
"items": {
"type": "object",
"required": [
"ticker",
"trades",
"estimated_volume_usd",
"stock_url"
],
"properties": {
"ticker": {
"type": "string"
},
"trades": {
"type": "number"
},
"stock_url": {
"type": [
"string",
"null"
]
},
"estimated_volume_usd": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Financial statements of one company from the XBRL data in its 10-K, 10-Q, 20-F and 40-F filings (SEC companyfacts), newest period first: income statement (revenue, cost_of_revenue, gross_profit, operating_expenses, rd_expense, sga_expense, operating_income, interest_expense, tax_expense, net_income, eps_basic, eps_diluted, shares_basic, shares_diluted), balance sheet (cash_and_equivalents ... total_assets, total_liabilities, total_equity including minority interest), cash flow (operating_cash_flow, capex, free_cash_flow = operating cash flow minus capex, dividends_paid, share_buybacks, ..., depreciation_amortization, stock_based_compensation) and the cover-page shares outstanding (shares, with change_1y_pct). period=annual gives fiscal years (FY), quarterly gives single fiscal quarters (Q1-Q4). IMPORTANT: amounts are in the company's reporting currency (`currency`, for example TWD for TSMC), not US dollars; for other currencies usd_rate gives US dollars per unit: multiply income statement and cash flow amounts by usd_rate.average and balance sheet amounts by usd_rate.period_end. EPS is in that currency per share. Each period has its filing (form, filed_date, accession, sec_url), reported_date (the earnings 8-K, Item 2.02), margins (gross, operating and net margin, stock-based compensation as a percent of revenue) and yoy_pct (growth against the same fiscal period a year earlier). Numbers are as filed in each period's original report or its amendment. Known gaps: foreign companies (20-F, 40-F) have annual statements only; EPS and share counts are not adjusted for stock splits (stock_splits lists the splits in the range); for ADRs EPS is per ordinary share, not per ADS; Q4 and single-quarter cash flows are mostly derived by subtraction (listed in derived); banks' revenue may be interest income only; companies with several share classes may have no EPS, and their cover-page share count adds up the classes but only for the last few filings, so there can be a gap before them. `note` explains what applies to this company, including why there are no statements (ETFs and funds have none). No stock prices are returned and no valuation ratios are computed; get_stock has the company's market cap in USD (convert foreign-currency statements with usd_rate before comparing).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Number of periods, newest first: default 5 for annual, 8 for quarterly, at most 40. |
| period | string | annual = fiscal years (default); quarterly = single fiscal quarters. |
| ticker * | string | Stock ticker, e.g. AAPL or BRK.B (share classes use a dot; BRK-B also works). |
| statements | array | Which parts to return: income, balance, cash_flow, shares (cover-page shares outstanding). Default all, e.g. ["income"]. |
{
"name": "get_financials",
"title": "Financial statements (XBRL)",
"description": "Financial statements of one company from the XBRL data in its 10-K, 10-Q, 20-F and 40-F filings (SEC companyfacts), newest period first: income statement (revenue, cost_of_revenue, gross_profit, operating_expenses, rd_expense, sga_expense, operating_income, interest_expense, tax_expense, net_income, eps_basic, eps_diluted, shares_basic, shares_diluted), balance sheet (cash_and_equivalents ... total_assets, total_liabilities, total_equity including minority interest), cash flow (operating_cash_flow, capex, free_cash_flow = operating cash flow minus capex, dividends_paid, share_buybacks, ..., depreciation_amortization, stock_based_compensation) and the cover-page shares outstanding (shares, with change_1y_pct). period=annual gives fiscal years (FY), quarterly gives single fiscal quarters (Q1-Q4). IMPORTANT: amounts are in the company's reporting currency (`currency`, for example TWD for TSMC), not US dollars; for other currencies usd_rate gives US dollars per unit: multiply income statement and cash flow amounts by usd_rate.average and balance sheet amounts by usd_rate.period_end. EPS is in that currency per share. Each period has its filing (form, filed_date, accession, sec_url), reported_date (the earnings 8-K, Item 2.02), margins (gross, operating and net margin, stock-based compensation as a percent of revenue) and yoy_pct (growth against the same fiscal period a year earlier). Numbers are as filed in each period's original report or its amendment. Known gaps: foreign companies (20-F, 40-F) have annual statements only; EPS and share counts are not adjusted for stock splits (stock_splits lists the splits in the range); for ADRs EPS is per ordinary share, not per ADS; Q4 and single-quarter cash flows are mostly derived by subtraction (listed in derived); banks' revenue may be interest income only; companies with several share classes may have no EPS, and their cover-page share count adds up the classes but only for the last few filings, so there can be a gap before them. `note` explains what applies to this company, including why there are no statements (ETFs and funds have none). No stock prices are returned and no valuation ratios are computed; get_stock has the company's market cap in USD (convert foreign-currency statements with usd_rate before comparing).",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"ticker"
],
"properties": {
"limit": {
"type": "integer",
"maximum": 40,
"minimum": 1,
"description": "Number of periods, newest first: default 5 for annual, 8 for quarterly, at most 40."
},
"period": {
"enum": [
"annual",
"quarterly"
],
"type": "string",
"default": "annual",
"description": "annual = fiscal years (default); quarterly = single fiscal quarters."
},
"ticker": {
"type": "string",
"maxLength": 12,
"minLength": 1,
"description": "Stock ticker, e.g. AAPL or BRK.B (share classes use a dot; BRK-B also works)."
},
"statements": {
"type": "array",
"items": {
"enum": [
"income",
"balance",
"cash_flow",
"shares"
],
"type": "string"
},
"maxItems": 4,
"minItems": 1,
"description": "Which parts to return: income, balance, cash_flow, shares (cover-page shares outstanding). Default all, e.g. [\"income\"]."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"company",
"period",
"statements",
"currency",
"coverage",
"periods",
"shares_outstanding",
"stock_splits",
"note"
],
"properties": {
"note": {
"type": "string"
},
"period": {
"enum": [
"annual",
"quarterly"
],
"type": "string"
},
"company": {
"type": "object",
"required": [
"ticker",
"name",
"cik",
"url"
],
"properties": {
"cik": {
"type": "string"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"ticker": {
"type": "string"
}
},
"additionalProperties": false
},
"periods": {
"type": "array",
"items": {
"type": "object",
"required": [
"period_end",
"fiscal_year",
"fiscal_period",
"currency",
"form",
"filed_date",
"accession",
"sec_url",
"reported_date",
"reported_sec_url",
"derived",
"check_failed",
"checks",
"usd_rate"
],
"properties": {
"form": {
"type": "string",
"description": "Form of the filing the numbers come from (10-K, 10-Q, 20-F, 40-F or an amendment)."
},
"checks": {
"type": "array",
"items": {
"type": "object",
"required": [
"rule",
"reported",
"expected",
"difference",
"difference_pct"
],
"properties": {
"rule": {
"enum": [
"gross_profit",
"balance"
],
"type": "string"
},
"expected": {
"type": [
"number",
"null"
]
},
"reported": {
"type": [
"number",
"null"
]
},
"difference": {
"type": [
"number",
"null"
]
},
"difference_pct": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
}
},
"income": {
"anyOf": [
{
"type": "object",
"required": [
"revenue",
"cost_of_revenue",
"gross_profit",
"operating_expenses",
"rd_expense",
"sga_expense",
"operating_income",
"interest_expense",
"tax_expense",
"net_income",
"eps_basic",
"eps_diluted",
"shares_basic",
"shares_diluted"
],
"properties": {
"revenue": {
"type": [
"number",
"null"
]
},
"eps_basic": {
"type": [
"number",
"null"
]
},
"net_income": {
"type": [
"number",
"null"
]
},
"rd_expense": {
"type": [
"number",
"null"
]
},
"eps_diluted": {
"type": [
"number",
"null"
]
},
"sga_expense": {
"type": [
"number",
"null"
]
},
"tax_expense": {
"type": [
"number",
"null"
]
},
"gross_profit": {
"type": [
"number",
"null"
]
},
"shares_basic": {
"type": [
"number",
"null"
]
},
"shares_diluted": {
"type": [
"number",
"null"
]
},
"cost_of_revenue": {
"type": [
"number",
"null"
]
},
"interest_expense": {
"type": [
"number",
"null"
]
},
"operating_income": {
"type": [
"number",
"null"
]
},
"operating_expenses": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"balance": {
"anyOf": [
{
"type": "object",
"required": [
"cash_and_equivalents",
"short_term_investments",
"accounts_receivable",
"inventory",
"total_current_assets",
"ppe_net",
"goodwill",
"intangibles",
"total_assets",
"accounts_payable",
"short_term_debt",
"total_current_liabilities",
"long_term_debt",
"total_liabilities",
"total_equity"
],
"properties": {
"ppe_net": {
"type": [
"number",
"null"
]
},
"goodwill": {
"type": [
"number",
"null"
]
},
"inventory": {
"type": [
"number",
"null"
]
},
"intangibles": {
"type": [
"number",
"null"
]
},
"total_assets": {
"type": [
"number",
"null"
]
},
"total_equity": {
"type": [
"number",
"null"
]
},
"long_term_debt": {
"type": [
"number",
"null"
]
},
"short_term_debt": {
"type": [
"number",
"null"
]
},
"accounts_payable": {
"type": [
"number",
"null"
]
},
"total_liabilities": {
"type": [
"number",
"null"
]
},
"accounts_receivable": {
"type": [
"number",
"null"
]
},
"cash_and_equivalents": {
"type": [
"number",
"null"
]
},
"total_current_assets": {
"type": [
"number",
"null"
]
},
"short_term_investments": {
"type": [
"number",
"null"
]
},
"total_current_liabilities": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"derived": {
"type": "array",
"items": {
"type": "string"
},
"description": "Values computed by subtraction rather than reported, as statement.field (income.revenue, cash_flow.capex); `balance` means the Q4 balance sheet is the fiscal year-end one."
},
"margins": {
"type": "object",
"required": [
"gross_margin_pct",
"operating_margin_pct",
"net_margin_pct",
"sbc_pct_of_revenue"
],
"properties": {
"net_margin_pct": {
"type": [
"number",
"null"
]
},
"gross_margin_pct": {
"type": [
"number",
"null"
]
},
"sbc_pct_of_revenue": {
"type": [
"number",
"null"
]
},
"operating_margin_pct": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
},
"sec_url": {
"type": "string",
"description": "The filing's main document on SEC.gov."
},
"yoy_pct": {
"type": "object",
"required": [
"revenue",
"net_income",
"free_cash_flow"
],
"properties": {
"revenue": {
"type": [
"number",
"null"
]
},
"net_income": {
"type": [
"number",
"null"
]
},
"free_cash_flow": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
},
"currency": {
"type": "string"
},
"usd_rate": {
"anyOf": [
{
"type": "object",
"required": [
"average",
"period_end"
],
"properties": {
"average": {
"type": [
"number",
"null"
]
},
"period_end": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "US dollars per 1 unit of the reporting currency (FRED H.10): average over the period (for income statement and cash flow amounts) and on the period-end date (for balance sheet amounts). null for companies reporting in USD."
},
"accession": {
"type": "string"
},
"cash_flow": {
"anyOf": [
{
"type": "object",
"required": [
"operating_cash_flow",
"capex",
"free_cash_flow",
"dividends_paid",
"share_buybacks",
"financing_cash_flow",
"investing_cash_flow",
"net_change_in_cash",
"depreciation_amortization",
"stock_based_compensation"
],
"properties": {
"capex": {
"type": [
"number",
"null"
]
},
"dividends_paid": {
"type": [
"number",
"null"
]
},
"free_cash_flow": {
"type": [
"number",
"null"
]
},
"share_buybacks": {
"type": [
"number",
"null"
]
},
"net_change_in_cash": {
"type": [
"number",
"null"
]
},
"financing_cash_flow": {
"type": [
"number",
"null"
]
},
"investing_cash_flow": {
"type": [
"number",
"null"
]
},
"operating_cash_flow": {
"type": [
"number",
"null"
]
},
"stock_based_compensation": {
"type": [
"number",
"null"
]
},
"depreciation_amortization": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"filed_date": {
"type": "string"
},
"period_end": {
"type": "string"
},
"fiscal_year": {
"type": "number"
},
"check_failed": {
"type": "array",
"items": {
"type": "string"
},
"description": "Accounting identities that failed within 1%: gross_profit (gross profit vs revenue minus cost of revenue) or balance (assets vs liabilities plus equity). The numbers are as filed."
},
"fiscal_period": {
"enum": [
"FY",
"Q1",
"Q2",
"Q3",
"Q4"
],
"type": "string"
},
"reported_date": {
"type": [
"string",
"null"
],
"description": "When the results were released: the filing date of the first 8-K with Item 2.02 after the period ended, no later than the 10-Q or 10-K and within 120 days. null when there is none."
},
"reported_sec_url": {
"type": [
"string",
"null"
],
"description": "SEC index page of that 8-K; the press release is usually exhibit EX-99.1."
}
},
"additionalProperties": false
}
},
"coverage": {
"type": "object",
"required": [
"annual_periods",
"quarterly_periods",
"latest_annual_form",
"foreign_filer",
"updated_at"
],
"properties": {
"updated_at": {
"type": [
"string",
"null"
]
},
"foreign_filer": {
"type": "boolean",
"description": "Files Form 20-F or 40-F: annual statements only."
},
"annual_periods": {
"type": "number"
},
"quarterly_periods": {
"type": "number"
},
"latest_annual_form": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"currency": {
"type": [
"string",
"null"
],
"description": "Reporting currency of the latest period (ISO 4217). Amounts are in this currency, not USD."
},
"statements": {
"type": "array",
"items": {
"enum": [
"income",
"balance",
"cash_flow",
"shares"
],
"type": "string"
}
},
"stock_splits": {
"type": "array",
"items": {
"type": "object",
"required": [
"quarter",
"period",
"factor"
],
"properties": {
"factor": {
"type": "number",
"description": "New shares per old share: 4 = 4-for-1 split, 0.1 = 1-for-10 reverse split."
},
"period": {
"type": "string"
},
"quarter": {
"type": "string"
}
},
"additionalProperties": false
}
},
"shares_outstanding": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"required": [
"as_of",
"shares",
"change_1y_pct",
"compared_as_of",
"accession",
"sec_url"
],
"properties": {
"as_of": {
"type": "string",
"description": "Date on the filing's cover page (usually a few weeks before filing)."
},
"shares": {
"type": "number"
},
"sec_url": {
"type": "string"
},
"accession": {
"type": "string"
},
"change_1y_pct": {
"type": [
"number",
"null"
]
},
"compared_as_of": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}A company's SEC filings, or the whole market's: 10-K (annual report, including 10-KT), 10-Q (quarterly report), 8-K (current report), 20-F and 40-F (foreign companies' annual reports), each with its amendments (/A), newest first, since 2009. Each row: accession, form, the 8-K item codes with their descriptions (for example 2.02 Results of operations, 4.02 Non-reliance on previously issued financial statements, 5.02 Departure or appointment of directors or officers), filed_date, accepted_at (ISO 8601 UTC), period_of_report (the period end for 10-K and 10-Q, the event date for 8-K), the company with its ticker, url (the company's filings page on livermore.club), sec_url (the main document on SEC.gov) and index_url (the SEC filing index with all exhibits). Livermore does not store the text of filings. To learn what an 8-K reports, or a 10-K or 10-Q's business description, risk factors or management's discussion, fetch sec_url; the press release of an 8-K with Item 2.02 is usually exhibit EX-99.1, listed on index_url. With ticker or cik the company's whole history is searchable (filings under a former CIK included). Without either, the query covers the whole market (companies with a ticker) and at most 30 days of filing dates (default: the last 7 days); note says when the range was narrowed. items keeps 8-K filings with any of the given item codes. At most 200 rows per call; use page.
| Parameter | Type | Description |
|---|---|---|
| to | string | Latest filing date, YYYY-MM-DD, inclusive. |
| cik | string | The company's SEC CIK instead of a ticker, e.g. 0000320193. Give ticker or cik, not both. |
| from | string | Earliest filing date, YYYY-MM-DD (US Eastern). |
| page | integer | Page number starting at 1; each page has `limit` rows. Check has_more. |
| forms | array | Form types, each including its amendments (/A); 10-K also includes 10-KT. Default all, e.g. ["10-K","10-Q"]. |
| items | array | 8-K item codes; a filing matches when it has any of them, e.g. ["4.01","4.02","5.02"]. Only 8-K and 8-K/A filings have items. |
| limit | integer | Maximum rows to return (1-200, default 25). |
| ticker | string | Only this company's filings, whole history (including filings under a former CIK). |
{
"name": "list_filings",
"title": "Company filings (10-K, 10-Q, 8-K)",
"description": "A company's SEC filings, or the whole market's: 10-K (annual report, including 10-KT), 10-Q (quarterly report), 8-K (current report), 20-F and 40-F (foreign companies' annual reports), each with its amendments (/A), newest first, since 2009. Each row: accession, form, the 8-K item codes with their descriptions (for example 2.02 Results of operations, 4.02 Non-reliance on previously issued financial statements, 5.02 Departure or appointment of directors or officers), filed_date, accepted_at (ISO 8601 UTC), period_of_report (the period end for 10-K and 10-Q, the event date for 8-K), the company with its ticker, url (the company's filings page on livermore.club), sec_url (the main document on SEC.gov) and index_url (the SEC filing index with all exhibits). Livermore does not store the text of filings. To learn what an 8-K reports, or a 10-K or 10-Q's business description, risk factors or management's discussion, fetch sec_url; the press release of an 8-K with Item 2.02 is usually exhibit EX-99.1, listed on index_url. With ticker or cik the company's whole history is searchable (filings under a former CIK included). Without either, the query covers the whole market (companies with a ticker) and at most 30 days of filing dates (default: the last 7 days); note says when the range was narrowed. items keeps 8-K filings with any of the given item codes. At most 200 rows per call; use page.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"to": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Latest filing date, YYYY-MM-DD, inclusive."
},
"cik": {
"type": "string",
"pattern": "^(CIK)?\\d{1,10}$",
"description": "The company's SEC CIK instead of a ticker, e.g. 0000320193. Give ticker or cik, not both."
},
"from": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Earliest filing date, YYYY-MM-DD (US Eastern)."
},
"page": {
"type": "integer",
"default": 1,
"maximum": 500,
"minimum": 1,
"description": "Page number starting at 1; each page has `limit` rows. Check has_more."
},
"forms": {
"type": "array",
"items": {
"enum": [
"10-K",
"10-Q",
"8-K",
"20-F",
"40-F"
],
"type": "string"
},
"maxItems": 5,
"minItems": 1,
"description": "Form types, each including its amendments (/A); 10-K also includes 10-KT. Default all, e.g. [\"10-K\",\"10-Q\"]."
},
"items": {
"type": "array",
"items": {
"type": "string",
"pattern": "^\\d\\.\\d{2}$"
},
"maxItems": 33,
"minItems": 1,
"description": "8-K item codes; a filing matches when it has any of them, e.g. [\"4.01\",\"4.02\",\"5.02\"]. Only 8-K and 8-K/A filings have items."
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 200,
"minimum": 1,
"description": "Maximum rows to return (1-200, default 25)."
},
"ticker": {
"type": "string",
"maxLength": 12,
"minLength": 1,
"description": "Only this company's filings, whole history (including filings under a former CIK)."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"scope",
"company",
"filters",
"note",
"page",
"limit",
"has_more",
"rows",
"url"
],
"properties": {
"url": {
"type": [
"string",
"null"
]
},
"note": {
"type": [
"string",
"null"
]
},
"page": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"type": "object",
"required": [
"accession",
"form",
"items",
"filed_date",
"accepted_at",
"period_of_report",
"company",
"url",
"sec_url",
"index_url"
],
"properties": {
"url": {
"type": [
"string",
"null"
]
},
"form": {
"type": "string"
},
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"description"
],
"properties": {
"code": {
"type": "string"
},
"description": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
},
"company": {
"type": "object",
"required": [
"cik",
"name",
"ticker",
"stock_url"
],
"properties": {
"cik": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
},
"ticker": {
"type": [
"string",
"null"
]
},
"stock_url": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"sec_url": {
"type": "string"
},
"accession": {
"type": "string"
},
"index_url": {
"type": "string"
},
"filed_date": {
"type": "string"
},
"accepted_at": {
"type": [
"string",
"null"
]
},
"period_of_report": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
},
"limit": {
"type": "number"
},
"scope": {
"enum": [
"company",
"market"
],
"type": "string"
},
"company": {
"anyOf": [
{
"type": "object",
"required": [
"cik",
"name",
"ticker",
"url"
],
"properties": {
"cik": {
"type": "string"
},
"url": {
"type": [
"string",
"null"
]
},
"name": {
"type": "string"
},
"ticker": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"filters": {
"type": "object",
"required": [
"forms",
"items",
"from",
"to"
],
"properties": {
"to": {
"type": [
"string",
"null"
]
},
"from": {
"type": [
"string",
"null"
]
},
"forms": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
]
},
"items": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"has_more": {
"type": "boolean"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Short-selling data for one stock, newest first, in four sections: short_interest (FINRA short interest per settlement date since 2021: short_shares, prev_short_shares, change_shares, change_pct, avg_daily_volume, days_to_cover, dtc_capped), short_volume (FINRA daily off-exchange short volume, last two years: short_volume, short_exempt_volume, total_volume, short_volume_pct), fails_to_deliver (SEC fails-to-deliver, last two years: quantity, price, value_usd) and ats_weekly (FINRA weekly ATS and OTC volume since December 2021, per tier: ats_shares, ats_trades, otc_shares, otc_trades, ats_pct). Without dates: about the last year of short interest (24 settlement dates), the last 30 trading days of short volume and of fails-to-deliver, and the last 12 weeks of ATS data; with from and/or to, each section covers that range, up to 200 rows. Short interest (FINRA) is the number of shares sold short and not yet covered on a settlement date, reported twice a month about 8 business days after the settlement date. Daily short volume (FINRA Reg SHO) is something else: the shares sold short on one day among off-exchange trades only (not short interest, and not total market volume); short_volume_pct is not a sentiment indicator, because market makers' hedging short sales are normally around half of off-exchange volume. Fails-to-deliver (SEC) are shares not delivered on the settlement date, with the SEC's price (the previous close). ATS weekly (FINRA) is volume on alternative trading systems (dark pools) and other off-exchange (OTC) trading, published 2 to 4 weeks late; ats_pct is ATS divided by ATS plus OTC, not a share of total volume. There is no short interest as a percent of float or shares outstanding (no reliable float data). Share classes are separate tickers (BRK.A, BRK.B).
| Parameter | Type | Description |
|---|---|---|
| to | string | Latest date, YYYY-MM-DD, inclusive. |
| from | string | Earliest date, YYYY-MM-DD. With from or to, every section covers that range (up to 200 rows each). |
| ticker * | string | Stock ticker, e.g. AAPL or BRK.B (share classes use a dot; BRK-B also works). |
{
"name": "get_short_interest",
"title": "Short interest, short volume, fails-to-deliver and ATS volume of a stock",
"description": "Short-selling data for one stock, newest first, in four sections: short_interest (FINRA short interest per settlement date since 2021: short_shares, prev_short_shares, change_shares, change_pct, avg_daily_volume, days_to_cover, dtc_capped), short_volume (FINRA daily off-exchange short volume, last two years: short_volume, short_exempt_volume, total_volume, short_volume_pct), fails_to_deliver (SEC fails-to-deliver, last two years: quantity, price, value_usd) and ats_weekly (FINRA weekly ATS and OTC volume since December 2021, per tier: ats_shares, ats_trades, otc_shares, otc_trades, ats_pct). Without dates: about the last year of short interest (24 settlement dates), the last 30 trading days of short volume and of fails-to-deliver, and the last 12 weeks of ATS data; with from and/or to, each section covers that range, up to 200 rows. Short interest (FINRA) is the number of shares sold short and not yet covered on a settlement date, reported twice a month about 8 business days after the settlement date. Daily short volume (FINRA Reg SHO) is something else: the shares sold short on one day among off-exchange trades only (not short interest, and not total market volume); short_volume_pct is not a sentiment indicator, because market makers' hedging short sales are normally around half of off-exchange volume. Fails-to-deliver (SEC) are shares not delivered on the settlement date, with the SEC's price (the previous close). ATS weekly (FINRA) is volume on alternative trading systems (dark pools) and other off-exchange (OTC) trading, published 2 to 4 weeks late; ats_pct is ATS divided by ATS plus OTC, not a share of total volume. There is no short interest as a percent of float or shares outstanding (no reliable float data). Share classes are separate tickers (BRK.A, BRK.B).",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"ticker"
],
"properties": {
"to": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Latest date, YYYY-MM-DD, inclusive."
},
"from": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Earliest date, YYYY-MM-DD. With from or to, every section covers that range (up to 200 rows each)."
},
"ticker": {
"type": "string",
"maxLength": 12,
"minLength": 1,
"description": "Stock ticker, e.g. AAPL or BRK.B (share classes use a dot; BRK-B also works)."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"ticker",
"name",
"range",
"short_interest",
"short_volume",
"fails_to_deliver",
"ats_weekly",
"note",
"url"
],
"properties": {
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"note": {
"type": [
"string",
"null"
]
},
"range": {
"type": "object",
"required": [
"from",
"to"
],
"properties": {
"to": {
"type": [
"string",
"null"
]
},
"from": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"ticker": {
"type": "string"
},
"ats_weekly": {
"type": "array",
"items": {
"type": "object",
"required": [
"week_start",
"tier",
"ats_shares",
"ats_trades",
"otc_shares",
"otc_trades",
"ats_pct"
],
"properties": {
"tier": {
"type": "string",
"description": "FINRA tier: T1 (S&P 500, Russell 1000 and some ETFs), T2 (other NMS stocks), OTCE (OTC equities)."
},
"ats_pct": {
"type": [
"number",
"null"
]
},
"ats_shares": {
"type": [
"number",
"null"
]
},
"ats_trades": {
"type": [
"number",
"null"
]
},
"otc_shares": {
"type": [
"number",
"null"
]
},
"otc_trades": {
"type": [
"number",
"null"
]
},
"week_start": {
"type": "string"
}
},
"additionalProperties": false
}
},
"short_volume": {
"type": "array",
"items": {
"type": "object",
"required": [
"trade_date",
"short_volume",
"short_exempt_volume",
"total_volume",
"short_volume_pct"
],
"properties": {
"trade_date": {
"type": "string"
},
"short_volume": {
"type": [
"number",
"null"
]
},
"total_volume": {
"type": [
"number",
"null"
],
"description": "Off-exchange volume only, not total market volume."
},
"short_volume_pct": {
"type": [
"number",
"null"
]
},
"short_exempt_volume": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
}
},
"short_interest": {
"type": "array",
"items": {
"type": "object",
"required": [
"settlement_date",
"short_shares",
"prev_short_shares",
"change_shares",
"change_pct",
"avg_daily_volume",
"days_to_cover",
"dtc_capped",
"split_flag",
"revision_flag"
],
"properties": {
"change_pct": {
"type": [
"number",
"null"
]
},
"dtc_capped": {
"type": "boolean",
"description": "FINRA reported its cap of 999.99 days (very low volume); days_to_cover is then null."
},
"split_flag": {
"type": "boolean",
"description": "FINRA flags a stock split since the previous settlement date."
},
"short_shares": {
"type": [
"number",
"null"
]
},
"change_shares": {
"type": [
"number",
"null"
]
},
"days_to_cover": {
"type": [
"number",
"null"
],
"description": "Short shares divided by average daily volume (FINRA). null when dtc_capped."
},
"revision_flag": {
"type": "boolean",
"description": "FINRA revised the previous settlement date's figure."
},
"settlement_date": {
"type": "string"
},
"avg_daily_volume": {
"type": [
"number",
"null"
]
},
"prev_short_shares": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
}
},
"fails_to_deliver": {
"type": "array",
"items": {
"type": "object",
"required": [
"settlement_date",
"quantity",
"price",
"value_usd"
],
"properties": {
"price": {
"type": [
"number",
"null"
]
},
"quantity": {
"type": "number"
},
"value_usd": {
"type": [
"number",
"null"
]
},
"settlement_date": {
"type": "string"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Every stock's FINRA short interest for one settlement date (default: the latest), ranked like livermore.club/en/shorts: by change in short shares since the previous settlement date (default; dir=asc gives the largest decreases), change_pct, days_to_cover or short_shares. Only stocks with an average daily volume of at least min_avg_volume shares (default 100,000) are listed, which keeps thinly traded stocks with huge percentage changes out. Rows with missing values, and with days to cover at FINRA's cap of 999.99 (dtc_capped true, days_to_cover null), are listed last in either direction. Each row has our ticker (null when FINRA's symbol is not matched to a listed company), FINRA's symbol, the company name, the market, the short interest figures and the stock's short interest page (url). recent_settlement_dates lists the latest 12 settlement dates. Short interest is reported twice a month, about 8 business days after the settlement date. There is no short interest as a percent of float. At most 200 rows per call; use page.
| Parameter | Type | Description |
|---|---|---|
| dir | string | desc = largest first (default); with sort=change, asc lists the largest decreases (covering). |
| page | integer | Page number starting at 1; each page has `limit` rows. Check has_more. |
| sort | string | change = change in short shares since the previous settlement date (default), change_pct, days_to_cover or short_shares. |
| limit | integer | Maximum rows to return (1-200, default 25). |
| min_avg_volume | integer | Minimum average daily volume in shares (default 100,000), which keeps thinly traded stocks with huge percentage changes out. |
| settlement_date | string | FINRA settlement date, YYYY-MM-DD (mid-month and month-end). Default: the latest one. |
{
"name": "list_short_interest",
"title": "Short interest rankings",
"description": "Every stock's FINRA short interest for one settlement date (default: the latest), ranked like livermore.club/en/shorts: by change in short shares since the previous settlement date (default; dir=asc gives the largest decreases), change_pct, days_to_cover or short_shares. Only stocks with an average daily volume of at least min_avg_volume shares (default 100,000) are listed, which keeps thinly traded stocks with huge percentage changes out. Rows with missing values, and with days to cover at FINRA's cap of 999.99 (dtc_capped true, days_to_cover null), are listed last in either direction. Each row has our ticker (null when FINRA's symbol is not matched to a listed company), FINRA's symbol, the company name, the market, the short interest figures and the stock's short interest page (url). recent_settlement_dates lists the latest 12 settlement dates. Short interest is reported twice a month, about 8 business days after the settlement date. There is no short interest as a percent of float. At most 200 rows per call; use page.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"dir": {
"enum": [
"desc",
"asc"
],
"type": "string",
"default": "desc",
"description": "desc = largest first (default); with sort=change, asc lists the largest decreases (covering)."
},
"page": {
"type": "integer",
"default": 1,
"maximum": 500,
"minimum": 1,
"description": "Page number starting at 1; each page has `limit` rows. Check has_more."
},
"sort": {
"enum": [
"change",
"change_pct",
"days_to_cover",
"short_shares"
],
"type": "string",
"default": "change",
"description": "change = change in short shares since the previous settlement date (default), change_pct, days_to_cover or short_shares."
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 200,
"minimum": 1,
"description": "Maximum rows to return (1-200, default 25)."
},
"min_avg_volume": {
"type": "integer",
"default": 100000,
"maximum": 1000000000000,
"minimum": 0,
"description": "Minimum average daily volume in shares (default 100,000), which keeps thinly traded stocks with huge percentage changes out."
},
"settlement_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "FINRA settlement date, YYYY-MM-DD (mid-month and month-end). Default: the latest one."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"settlement_date",
"recent_settlement_dates",
"filters",
"page",
"limit",
"has_more",
"rows",
"note",
"url"
],
"properties": {
"url": {
"type": "string"
},
"note": {
"type": [
"string",
"null"
]
},
"page": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"type": "object",
"required": [
"rank",
"ticker",
"symbol",
"name",
"market",
"settlement_date",
"short_shares",
"prev_short_shares",
"change_shares",
"change_pct",
"avg_daily_volume",
"days_to_cover",
"dtc_capped",
"split_flag",
"revision_flag",
"url"
],
"properties": {
"url": {
"type": [
"string",
"null"
]
},
"name": {
"type": [
"string",
"null"
]
},
"rank": {
"type": "number"
},
"market": {
"type": [
"string",
"null"
]
},
"symbol": {
"type": "string",
"description": "FINRA's symbol as reported (BRKB for BRK.B)."
},
"ticker": {
"type": [
"string",
"null"
]
},
"change_pct": {
"type": [
"number",
"null"
]
},
"dtc_capped": {
"type": "boolean",
"description": "FINRA reported its cap of 999.99 days (very low volume); days_to_cover is then null."
},
"split_flag": {
"type": "boolean",
"description": "FINRA flags a stock split since the previous settlement date."
},
"short_shares": {
"type": [
"number",
"null"
]
},
"change_shares": {
"type": [
"number",
"null"
]
},
"days_to_cover": {
"type": [
"number",
"null"
],
"description": "Short shares divided by average daily volume (FINRA). null when dtc_capped."
},
"revision_flag": {
"type": "boolean",
"description": "FINRA revised the previous settlement date's figure."
},
"settlement_date": {
"type": "string"
},
"avg_daily_volume": {
"type": [
"number",
"null"
]
},
"prev_short_shares": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
}
},
"limit": {
"type": "number"
},
"filters": {
"type": "object",
"required": [
"sort",
"dir",
"min_avg_volume"
],
"properties": {
"dir": {
"enum": [
"desc",
"asc"
],
"type": "string"
},
"sort": {
"enum": [
"change",
"change_pct",
"days_to_cover",
"short_shares"
],
"type": "string"
},
"min_avg_volume": {
"type": "number"
}
},
"additionalProperties": false
},
"has_more": {
"type": "boolean"
},
"settlement_date": {
"type": [
"string",
"null"
]
},
"recent_settlement_dates": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}US-listed companies by market cap, largest first (dir=asc for smallest first), optionally within min_market_cap_usd and max_market_cap_usd (US dollars, both inclusive; give either, both or neither). For companies around $100 million, try for example min_market_cap_usd 50000000 and max_market_cap_usd 200000000. Market cap is the latest daily closing price of the company's primary ticker times the shares outstanding on its latest SEC 10-K, 10-Q or 20-F cover page (shares_as_of), adjusted for stock splits since then (split_factor, 1 = none). When the cover page lists a share class under its own ticker, as Berkshire Hathaway does with BRK.A and BRK.B, that class is priced at its own close and the classes are added up (shares is then the total of all classes); classes without a ticker of their own count at the primary ticker's close. Form 20-F filers are included only when the cover page shows that the US ticker is ordinary shares, not ADSs (for example NBIS); their share count is updated once a year. It is recalculated every US trading day after the close; close_date is the trading day of the close used. No stock price is returned. Companies without a market cap are not listed: no_price or stale_price (no daily close in the last 7 days, for example OTC or halted stocks), no_shares or stale_shares (no cover-page share count within about 400 days, or 500 days for Form 20-F filers: no recent XBRL 10-K, 10-Q or 20-F, or a cover page that could not be read; a cover that lists several share classes, such as GOOGL/GOOG or META, counts as the classes added up), foreign_filer (a Form 20-F filer whose US listing is ADSs, or whose 20-F cover page does not show that its US ticker is ordinary shares: the ADS ratio is not in SEC data), shares_mismatch (the cover-page share count does not match the listed shares: 13F institutions report holding more than 1.5 times the cover-page shares, which points to several share classes or ADSs, or the company has two or more traded common lines whose latest closes differ by more than 1.25 times and that the cover page does not tie to share classes of their own, such as multi-fund ETP trusts like ProShares Trust II that share one cover-page share count) or out_of_range (an implausible value, including a market cap below $1 million). So Form 20-F issuers whose US shares are ADSs and multi-fund ETP trusts are missing. One row per company: ticker (the priced ticker), name, exchange, SIC industry, market_cap_usd, close_date, shares, shares_as_of, split_factor and url (the stock page). total counts every matching company and as_of is the newest close date. To research a company, follow up with get_stock, get_financials and get_insider_trades. At most 200 rows per call; use page.
| Parameter | Type | Description |
|---|---|---|
| dir | string | desc = largest market cap first (default); asc = smallest first. |
| page | integer | Page number starting at 1; each page has `limit` rows. Check has_more. |
| limit | integer | Maximum rows to return (1-200, default 25). |
| max_market_cap_usd | number | Largest market cap in US dollars, inclusive; not below min_market_cap_usd. Default: no maximum. |
| min_market_cap_usd | number | Smallest market cap in US dollars, inclusive (100000000 = $100 million). Default: no minimum. |
{
"name": "screen_stocks",
"title": "Screen companies by market cap",
"description": "US-listed companies by market cap, largest first (dir=asc for smallest first), optionally within min_market_cap_usd and max_market_cap_usd (US dollars, both inclusive; give either, both or neither). For companies around $100 million, try for example min_market_cap_usd 50000000 and max_market_cap_usd 200000000. Market cap is the latest daily closing price of the company's primary ticker times the shares outstanding on its latest SEC 10-K, 10-Q or 20-F cover page (shares_as_of), adjusted for stock splits since then (split_factor, 1 = none). When the cover page lists a share class under its own ticker, as Berkshire Hathaway does with BRK.A and BRK.B, that class is priced at its own close and the classes are added up (shares is then the total of all classes); classes without a ticker of their own count at the primary ticker's close. Form 20-F filers are included only when the cover page shows that the US ticker is ordinary shares, not ADSs (for example NBIS); their share count is updated once a year. It is recalculated every US trading day after the close; close_date is the trading day of the close used. No stock price is returned. Companies without a market cap are not listed: no_price or stale_price (no daily close in the last 7 days, for example OTC or halted stocks), no_shares or stale_shares (no cover-page share count within about 400 days, or 500 days for Form 20-F filers: no recent XBRL 10-K, 10-Q or 20-F, or a cover page that could not be read; a cover that lists several share classes, such as GOOGL/GOOG or META, counts as the classes added up), foreign_filer (a Form 20-F filer whose US listing is ADSs, or whose 20-F cover page does not show that its US ticker is ordinary shares: the ADS ratio is not in SEC data), shares_mismatch (the cover-page share count does not match the listed shares: 13F institutions report holding more than 1.5 times the cover-page shares, which points to several share classes or ADSs, or the company has two or more traded common lines whose latest closes differ by more than 1.25 times and that the cover page does not tie to share classes of their own, such as multi-fund ETP trusts like ProShares Trust II that share one cover-page share count) or out_of_range (an implausible value, including a market cap below $1 million). So Form 20-F issuers whose US shares are ADSs and multi-fund ETP trusts are missing. One row per company: ticker (the priced ticker), name, exchange, SIC industry, market_cap_usd, close_date, shares, shares_as_of, split_factor and url (the stock page). total counts every matching company and as_of is the newest close date. To research a company, follow up with get_stock, get_financials and get_insider_trades. At most 200 rows per call; use page.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"dir": {
"enum": [
"desc",
"asc"
],
"type": "string",
"default": "desc",
"description": "desc = largest market cap first (default); asc = smallest first."
},
"page": {
"type": "integer",
"default": 1,
"maximum": 500,
"minimum": 1,
"description": "Page number starting at 1; each page has `limit` rows. Check has_more."
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 200,
"minimum": 1,
"description": "Maximum rows to return (1-200, default 25)."
},
"max_market_cap_usd": {
"type": "number",
"maximum": 1000000000000000,
"minimum": 0,
"description": "Largest market cap in US dollars, inclusive; not below min_market_cap_usd. Default: no maximum."
},
"min_market_cap_usd": {
"type": "number",
"maximum": 1000000000000000,
"minimum": 0,
"description": "Smallest market cap in US dollars, inclusive (100000000 = $100 million). Default: no minimum."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"as_of",
"filters",
"total",
"page",
"limit",
"has_more",
"companies",
"note"
],
"properties": {
"note": {
"type": [
"string",
"null"
]
},
"page": {
"type": "number"
},
"as_of": {
"type": [
"string",
"null"
],
"description": "The newest close date in the market cap data; null before it is loaded."
},
"limit": {
"type": "number"
},
"total": {
"type": "number",
"description": "Number of companies matching the range (all pages)."
},
"filters": {
"type": "object",
"required": [
"min_market_cap_usd",
"max_market_cap_usd",
"dir"
],
"properties": {
"dir": {
"enum": [
"desc",
"asc"
],
"type": "string"
},
"max_market_cap_usd": {
"type": [
"number",
"null"
]
},
"min_market_cap_usd": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
},
"has_more": {
"type": "boolean"
},
"companies": {
"type": "array",
"items": {
"type": "object",
"required": [
"ticker",
"name",
"exchange",
"industry",
"market_cap_usd",
"close_date",
"shares",
"shares_as_of",
"split_factor",
"url"
],
"properties": {
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"shares": {
"type": [
"number",
"null"
]
},
"ticker": {
"type": "string",
"description": "The priced ticker (the company's primary ticker)."
},
"exchange": {
"type": [
"string",
"null"
]
},
"industry": {
"type": [
"string",
"null"
],
"description": "SIC industry description."
},
"close_date": {
"type": [
"string",
"null"
]
},
"shares_as_of": {
"type": [
"string",
"null"
]
},
"split_factor": {
"type": [
"number",
"null"
]
},
"market_cap_usd": {
"type": "number"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Find Taiwan stocks and ETFs listed on TWSE or TPEx (still trading) by code, Chinese short or full name, or English name; start here to get the `code` every other tw_ tool takes (TSMC is 2330). Matching runs in tiers: exact code, code prefix, exact short name, short name prefix, short name contains, then full name or English names contain (queries of at least 2 characters); within a tier companies come before ETFs and other securities, then larger market caps first. 2330.TW and 2330.TWO are read as the code. Each result has code, name and full_name (Traditional Chinese), name_en, market (TWSE or TPEx), kind (stock, etf, other) and url. Follow up with tw_get_stock. Taiwan stocks are separate from the US tools (search, get_stock); TSMC's US ADR is TSM there. Taiwan conventions: money is in New Taiwan dollars (currency TWD), share counts are in shares (1 lot = 1,000 shares), prices are in TWD and fields ending in _pct are percentages (12.5 means 12.5%). market is TWSE (listed) or TPEx (OTC). Names are in Traditional Chinese, with name_en where available. url links to tw.livermore.club, whose pages are in Traditional Chinese only. Keep `attribution` when you present the data: Taiwan's Open Government Data License requires naming its sources, and fields listed in computed_by_livermore are Livermore's calculations, not official figures.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum matches (1-50, default 10). |
| query * | string | A code (2330, 2330.TW), a Chinese short or full company name, or an English name (TSMC, Taiwan Semiconductor). |
{
"name": "tw_search",
"title": "Search Taiwan stocks",
"description": "Find Taiwan stocks and ETFs listed on TWSE or TPEx (still trading) by code, Chinese short or full name, or English name; start here to get the `code` every other tw_ tool takes (TSMC is 2330). Matching runs in tiers: exact code, code prefix, exact short name, short name prefix, short name contains, then full name or English names contain (queries of at least 2 characters); within a tier companies come before ETFs and other securities, then larger market caps first. 2330.TW and 2330.TWO are read as the code. Each result has code, name and full_name (Traditional Chinese), name_en, market (TWSE or TPEx), kind (stock, etf, other) and url. Follow up with tw_get_stock. Taiwan stocks are separate from the US tools (search, get_stock); TSMC's US ADR is TSM there. Taiwan conventions: money is in New Taiwan dollars (currency TWD), share counts are in shares (1 lot = 1,000 shares), prices are in TWD and fields ending in _pct are percentages (12.5 means 12.5%). market is TWSE (listed) or TPEx (OTC). Names are in Traditional Chinese, with name_en where available. url links to tw.livermore.club, whose pages are in Traditional Chinese only. Keep `attribution` when you present the data: Taiwan's Open Government Data License requires naming its sources, and fields listed in computed_by_livermore are Livermore's calculations, not official figures.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"query"
],
"properties": {
"limit": {
"type": "integer",
"default": 10,
"maximum": 50,
"minimum": 1,
"description": "Maximum matches (1-50, default 10)."
},
"query": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "A code (2330, 2330.TW), a Chinese short or full company name, or an English name (TSMC, Taiwan Semiconductor)."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"currency",
"query",
"results",
"attribution"
],
"properties": {
"query": {
"type": "string",
"description": "The query as searched (spaces collapsed; a .TW or .TWO suffix removed)."
},
"results": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"name",
"full_name",
"name_en",
"market",
"kind",
"url"
],
"properties": {
"url": {
"type": "string"
},
"code": {
"type": "string",
"description": "The code the other tw_ tools take."
},
"kind": {
"enum": [
"stock",
"etf",
"other"
],
"type": "string",
"description": "stock = a company (including TDRs); etf; other = preferred shares, ETNs, REITs and similar."
},
"name": {
"type": "string",
"description": "Short name in Traditional Chinese."
},
"market": {
"enum": [
"TWSE",
"TPEx"
],
"type": "string",
"description": "TWSE = listed on the Taiwan Stock Exchange; TPEx = traded on the Taipei Exchange (OTC market)."
},
"name_en": {
"type": [
"string",
"null"
],
"description": "English short name; null when there is none."
},
"full_name": {
"type": [
"string",
"null"
],
"description": "Company name in Traditional Chinese."
}
},
"additionalProperties": false
}
},
"currency": {
"type": "string",
"const": "TWD",
"description": "Every amount of money in this result is in New Taiwan dollars (TWD)."
},
"attribution": {
"type": "object",
"required": [
"sources",
"license",
"computed_by_livermore",
"other_sources"
],
"properties": {
"license": {
"type": [
"string",
"null"
],
"description": "The license of the data from `sources`; null when no such data was used."
},
"sources": {
"type": "array",
"items": {
"type": "string"
},
"description": "The government open data providers whose data this result uses."
},
"other_sources": {
"type": "array",
"items": {
"type": "string"
},
"description": "Sources that are not government open data and not under the license (industry chains)."
},
"computed_by_livermore": {
"type": "array",
"items": {
"type": "string"
},
"description": "Fields calculated by Livermore from the official data (not published by the sources). Present them as Livermore's calculations, apart from the official figures."
}
},
"description": "Required attribution: Taiwan's Open Government Data License requires naming the sources when you present or pass on this data, and Livermore's own calculations must be kept apart from the official figures.",
"additionalProperties": false
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Overview of one Taiwan stock or ETF (TWSE or TPEx) by code. security: names, market, kind, industry, listing and founding dates, chairman, president, website, auditor, main business (MOPS), shares outstanding and paid-in capital. quote: the latest trading day's close, change, volume and turnover with the P/E, P/B and dividend yield published by TWSE or TPEx (raw prices, not adjusted for dividends; Taiwan daily prices are government open data), plus change_pct and market_cap (close times shares issued) calculated by Livermore. latest_revenue: the latest month of revenue (see tw_get_monthly_revenue). latest_quarter: revenue, gross profit, operating income, net income attributable to the parent, EPS, margins, growth, ROE and debt ratio for the latest quarter (full statements in tw_get_financials). dividends: cash and stock dividends per share for the last 5 fiscal years (each year added up by Livermore) and the latest or upcoming ex-dividend date. intro: a company profile written by AI from the company's latest annual report (summary, products with revenue shares, markets, customers, suppliers, competitors, industry position, last year's results, outlook, milestones; Traditional Chinese). It may contain errors; the annual report's figures prevail (annual_report_url). industry_chains: the TPEx industry value chain segments the company belongs to, with up to 5 peers per segment by market cap (tw_get_industry_chain lists whole chains). production_sites: factories and other production sites researched by AI from public sources (status operating, under_construction or planned, location, coordinates and their precision, sources per site); coordinates with precision address, region or city come from OpenStreetMap and need the credit in coordinates_credit. urls: the overview, revenue, financials and chips pages. A part is null when there is no data: ETFs and other securities usually have only security, quote and dividends. For price history and daily institutional, margin, securities lending and foreign holding data use tw_get_daily_trading. Taiwan conventions: money is in New Taiwan dollars (currency TWD), share counts are in shares (1 lot = 1,000 shares), prices are in TWD and fields ending in _pct are percentages (12.5 means 12.5%). market is TWSE (listed) or TPEx (OTC). Names are in Traditional Chinese, with name_en where available. url links to tw.livermore.club, whose pages are in Traditional Chinese only. Keep `attribution` when you present the data: Taiwan's Open Government Data License requires naming its sources, and fields listed in computed_by_livermore are Livermore's calculations, not official figures.
| Parameter | Type | Description |
|---|---|---|
| code * | string | Taiwan stock code, e.g. 2330 (TSMC), 0050 (an ETF) or 00981A. Lowercase, 2330.TW and 2330.TWO also work. Use tw_search to find a code by company name. |
{
"name": "tw_get_stock",
"title": "Taiwan stock overview",
"description": "Overview of one Taiwan stock or ETF (TWSE or TPEx) by code. security: names, market, kind, industry, listing and founding dates, chairman, president, website, auditor, main business (MOPS), shares outstanding and paid-in capital. quote: the latest trading day's close, change, volume and turnover with the P/E, P/B and dividend yield published by TWSE or TPEx (raw prices, not adjusted for dividends; Taiwan daily prices are government open data), plus change_pct and market_cap (close times shares issued) calculated by Livermore. latest_revenue: the latest month of revenue (see tw_get_monthly_revenue). latest_quarter: revenue, gross profit, operating income, net income attributable to the parent, EPS, margins, growth, ROE and debt ratio for the latest quarter (full statements in tw_get_financials). dividends: cash and stock dividends per share for the last 5 fiscal years (each year added up by Livermore) and the latest or upcoming ex-dividend date. intro: a company profile written by AI from the company's latest annual report (summary, products with revenue shares, markets, customers, suppliers, competitors, industry position, last year's results, outlook, milestones; Traditional Chinese). It may contain errors; the annual report's figures prevail (annual_report_url). industry_chains: the TPEx industry value chain segments the company belongs to, with up to 5 peers per segment by market cap (tw_get_industry_chain lists whole chains). production_sites: factories and other production sites researched by AI from public sources (status operating, under_construction or planned, location, coordinates and their precision, sources per site); coordinates with precision address, region or city come from OpenStreetMap and need the credit in coordinates_credit. urls: the overview, revenue, financials and chips pages. A part is null when there is no data: ETFs and other securities usually have only security, quote and dividends. For price history and daily institutional, margin, securities lending and foreign holding data use tw_get_daily_trading. Taiwan conventions: money is in New Taiwan dollars (currency TWD), share counts are in shares (1 lot = 1,000 shares), prices are in TWD and fields ending in _pct are percentages (12.5 means 12.5%). market is TWSE (listed) or TPEx (OTC). Names are in Traditional Chinese, with name_en where available. url links to tw.livermore.club, whose pages are in Traditional Chinese only. Keep `attribution` when you present the data: Taiwan's Open Government Data License requires naming its sources, and fields listed in computed_by_livermore are Livermore's calculations, not official figures.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"code"
],
"properties": {
"code": {
"type": "string",
"maxLength": 12,
"minLength": 1,
"description": "Taiwan stock code, e.g. 2330 (TSMC), 0050 (an ETF) or 00981A. Lowercase, 2330.TW and 2330.TWO also work. Use tw_search to find a code by company name."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"currency",
"security",
"quote",
"latest_revenue",
"latest_quarter",
"dividends",
"intro",
"industry_chains",
"production_sites",
"urls",
"attribution"
],
"properties": {
"urls": {
"type": "object",
"required": [
"overview",
"revenue",
"financials",
"chips"
],
"properties": {
"chips": {
"type": "string",
"description": "Daily institutional, margin, securities lending and foreign holding tables."
},
"revenue": {
"type": [
"string",
"null"
]
},
"overview": {
"type": "string"
},
"financials": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"intro": {
"anyOf": [
{
"type": "object",
"required": [
"generated_by",
"fiscal_year",
"annual_report_url",
"source_file",
"generated_at",
"tagline",
"summary",
"products",
"markets",
"customers",
"suppliers",
"competitors",
"industry_position",
"recent_results",
"outlook",
"milestones"
],
"properties": {
"markets": {
"type": "array",
"items": {
"type": "object",
"required": [
"region",
"share_pct",
"basis"
],
"properties": {
"basis": {
"type": [
"string",
"null"
]
},
"region": {
"type": "string"
},
"share_pct": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
}
},
"outlook": {
"type": [
"string",
"null"
]
},
"summary": {
"type": [
"string",
"null"
]
},
"tagline": {
"type": [
"string",
"null"
]
},
"products": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"share_pct",
"basis",
"note"
],
"properties": {
"name": {
"type": "string"
},
"note": {
"type": [
"string",
"null"
]
},
"basis": {
"type": [
"string",
"null"
],
"description": "What the share is based on, e.g. the year's revenue."
},
"share_pct": {
"type": [
"number",
"null"
],
"description": "Share of revenue (%)."
}
},
"additionalProperties": false
}
},
"customers": {
"type": [
"string",
"null"
]
},
"suppliers": {
"type": [
"string",
"null"
]
},
"milestones": {
"type": "array",
"items": {
"type": "object",
"required": [
"year",
"event"
],
"properties": {
"year": {
"type": "number"
},
"event": {
"type": "string"
}
},
"additionalProperties": false
}
},
"competitors": {
"type": "array",
"items": {
"type": "string"
}
},
"fiscal_year": {
"type": [
"number",
"null"
],
"description": "The fiscal year of the annual report the profile was written from."
},
"source_file": {
"type": [
"string",
"null"
],
"description": "The annual report's file name."
},
"generated_at": {
"type": [
"string",
"null"
]
},
"generated_by": {
"type": "string",
"const": "ai"
},
"recent_results": {
"type": [
"string",
"null"
]
},
"annual_report_url": {
"type": [
"string",
"null"
],
"description": "The annual reports to shareholders of the company on MOPS's document site."
},
"industry_position": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"quote": {
"anyOf": [
{
"type": "object",
"required": [
"date",
"close_date",
"close",
"change",
"change_pct",
"volume",
"turnover",
"pe_ratio",
"pb_ratio",
"dividend_yield_pct",
"shares_for_market_cap",
"market_cap"
],
"properties": {
"date": {
"type": "string",
"description": "The latest trading day with a quote row (the stock may not have traded that day)."
},
"close": {
"type": [
"number",
"null"
],
"description": "Closing price on close_date (TWD, not adjusted for dividends)."
},
"change": {
"type": [
"number",
"null"
],
"description": "Change from the previous close (TWD), as published; null when not comparable (e.g. ex-dividend)."
},
"volume": {
"type": [
"number",
"null"
],
"description": "Shares traded on close_date."
},
"pb_ratio": {
"type": [
"number",
"null"
]
},
"pe_ratio": {
"type": [
"number",
"null"
],
"description": "P/E published by TWSE or TPEx for `date`; null for losses or no data."
},
"turnover": {
"type": [
"number",
"null"
],
"description": "Value traded on close_date (TWD)."
},
"change_pct": {
"type": [
"number",
"null"
],
"description": "change divided by the previous close (%), calculated by Livermore."
},
"close_date": {
"type": [
"string",
"null"
],
"description": "The latest day the stock traded."
},
"market_cap": {
"type": [
"number",
"null"
],
"description": "close times shares_for_market_cap (TWD), calculated by Livermore."
},
"dividend_yield_pct": {
"type": [
"number",
"null"
]
},
"shares_for_market_cap": {
"type": [
"number",
"null"
],
"description": "Shares issued from the latest foreign-holding report (depositary units for TDRs), else shares_outstanding."
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"currency": {
"type": "string",
"const": "TWD",
"description": "Every amount of money in this result is in New Taiwan dollars (TWD)."
},
"security": {
"type": "object",
"required": [
"code",
"name",
"full_name",
"name_en",
"full_name_en",
"market",
"kind",
"industry_code",
"industry",
"listed_on",
"founded_on",
"chairman",
"president",
"website",
"auditor_firm",
"main_business",
"shares_outstanding",
"paid_in_capital",
"is_active"
],
"properties": {
"code": {
"type": "string"
},
"kind": {
"enum": [
"stock",
"etf",
"other"
],
"type": "string",
"description": "stock = a company (including TDRs); etf; other = preferred shares, ETNs, REITs and similar."
},
"name": {
"type": "string",
"description": "Short name in Traditional Chinese."
},
"market": {
"enum": [
"TWSE",
"TPEx"
],
"type": "string",
"description": "TWSE = listed on the Taiwan Stock Exchange; TPEx = traded on the Taipei Exchange (OTC market)."
},
"name_en": {
"type": [
"string",
"null"
],
"description": "English short name, e.g. TSMC."
},
"website": {
"type": [
"string",
"null"
]
},
"chairman": {
"type": [
"string",
"null"
]
},
"industry": {
"type": [
"string",
"null"
],
"description": "Industry name in Traditional Chinese."
},
"full_name": {
"type": [
"string",
"null"
],
"description": "Company name in Traditional Chinese."
},
"is_active": {
"type": "boolean",
"description": "false once the code is no longer traded (delisted)."
},
"listed_on": {
"type": [
"string",
"null"
],
"description": "Listing date on TWSE or TPEx."
},
"president": {
"type": [
"string",
"null"
],
"description": "General manager or president, as written by the company."
},
"founded_on": {
"type": [
"string",
"null"
]
},
"auditor_firm": {
"type": [
"string",
"null"
]
},
"full_name_en": {
"type": [
"string",
"null"
],
"description": "English company name from MOPS."
},
"industry_code": {
"type": [
"string",
"null"
],
"description": "TWSE/TPEx industry code, e.g. 24 for semiconductors (the industry parameter of tw_screen_stocks)."
},
"main_business": {
"type": [
"string",
"null"
],
"description": "Main business lines from MOPS, in Traditional Chinese."
},
"paid_in_capital": {
"type": [
"number",
"null"
],
"description": "Paid-in capital (TWD)."
},
"shares_outstanding": {
"type": [
"number",
"null"
],
"description": "Common shares issued (for a TDR, the shares of the foreign company)."
}
},
"additionalProperties": false
},
"dividends": {
"anyOf": [
{
"type": "object",
"required": [
"years",
"latest_ex_dividend"
],
"properties": {
"years": {
"type": "array",
"items": {
"type": "object",
"required": [
"fiscal_year",
"cash_per_share",
"stock_per_share",
"distributions",
"last_period_label"
],
"properties": {
"fiscal_year": {
"type": "number",
"description": "The fiscal year the dividends are paid from."
},
"distributions": {
"type": "number",
"description": "Number of distributions in the year (4 for quarterly payers)."
},
"cash_per_share": {
"type": "number",
"description": "Cash dividends per share (TWD), all distributions of the year."
},
"stock_per_share": {
"type": "number",
"description": "Stock dividends per share (TWD of par value; 1 TWD = 100 new shares per 1,000 at par 10)."
},
"last_period_label": {
"type": "string",
"description": "The latest distribution's period as written by MOPS in Traditional Chinese (full year, half or quarter)."
}
},
"additionalProperties": false
}
},
"latest_ex_dividend": {
"anyOf": [
{
"type": "object",
"required": [
"ex_date",
"type",
"cash_dividend_per_share",
"stock_per_1000_shares"
],
"properties": {
"type": {
"enum": [
"dividend",
"rights",
"both"
],
"type": "string"
},
"ex_date": {
"type": "string",
"description": "The latest ex-dividend or ex-rights date (may be announced and still ahead)."
},
"stock_per_1000_shares": {
"type": [
"number",
"null"
],
"description": "Bonus shares per 1,000 shares."
},
"cash_dividend_per_share": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"attribution": {
"type": "object",
"required": [
"sources",
"license",
"computed_by_livermore",
"other_sources"
],
"properties": {
"license": {
"type": [
"string",
"null"
],
"description": "The license of the data from `sources`; null when no such data was used."
},
"sources": {
"type": "array",
"items": {
"type": "string"
},
"description": "The government open data providers whose data this result uses."
},
"other_sources": {
"type": "array",
"items": {
"type": "string"
},
"description": "Sources that are not government open data and not under the license (industry chains)."
},
"computed_by_livermore": {
"type": "array",
"items": {
"type": "string"
},
"description": "Fields calculated by Livermore from the official data (not published by the sources). Present them as Livermore's calculations, apart from the official figures."
}
},
"description": "Required attribution: Taiwan's Open Government Data License requires naming the sources when you present or pass on this data, and Livermore's own calculations must be kept apart from the official figures.",
"additionalProperties": false
},
"latest_quarter": {
"anyOf": [
{
"type": "object",
"required": [
"fiscal_year",
"fiscal_quarter",
"period_end",
"template",
"revenue",
"gross_profit",
"operating_income",
"net_income_parent",
"eps",
"eps_derived",
"derived",
"margins",
"yoy_pct",
"roe_pct",
"debt_ratio_pct"
],
"properties": {
"eps": {
"type": [
"number",
"null"
],
"description": "Basic EPS (TWD)."
},
"derived": {
"type": "boolean",
"description": "The quarter was derived by subtraction from cumulative figures."
},
"margins": {
"type": "object",
"required": [
"gross_pct",
"operating_pct",
"net_pct"
],
"properties": {
"net_pct": {
"type": [
"number",
"null"
]
},
"gross_pct": {
"type": [
"number",
"null"
]
},
"operating_pct": {
"type": [
"number",
"null"
]
}
},
"description": "Gross, operating and net income as a percent of revenue; null when revenue is not positive.",
"additionalProperties": false
},
"revenue": {
"type": [
"number",
"null"
]
},
"roe_pct": {
"type": [
"number",
"null"
],
"description": "Return on equity (%): net income attributable to the parent divided by average parent equity (start and end of the period); quarterly ROE is for one quarter, not annualized."
},
"yoy_pct": {
"type": "object",
"required": [
"revenue",
"net_income"
],
"properties": {
"revenue": {
"type": [
"number",
"null"
]
},
"net_income": {
"type": [
"number",
"null"
]
}
},
"description": "Growth (%) against the same period a year earlier: revenue and net income attributable to owners of the parent; null when the base is not positive or not comparable.",
"additionalProperties": false
},
"template": {
"enum": [
"ci",
"basi",
"bd",
"fh",
"ins",
"mim"
],
"type": "string"
},
"period_end": {
"type": "string"
},
"eps_derived": {
"type": "boolean",
"description": "Q4 EPS calculated by Livermore as full-year EPS minus the first three quarters."
},
"fiscal_year": {
"type": "number"
},
"gross_profit": {
"type": [
"number",
"null"
]
},
"debt_ratio_pct": {
"type": [
"number",
"null"
],
"description": "Total liabilities divided by total assets (%)."
},
"fiscal_quarter": {
"type": "number"
},
"operating_income": {
"type": [
"number",
"null"
]
},
"net_income_parent": {
"type": [
"number",
"null"
],
"description": "Net income attributable to owners of the parent."
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"latest_revenue": {
"anyOf": [
{
"type": "object",
"required": [
"month",
"revenue",
"revenue_last_month",
"revenue_last_year",
"mom_pct",
"yoy_pct",
"ytd",
"ytd_last_year",
"ytd_pct",
"company_note"
],
"properties": {
"ytd": {
"type": [
"number",
"null"
],
"description": "Revenue from January through this month."
},
"month": {
"type": "string",
"description": "YYYY-MM."
},
"mom_pct": {
"type": [
"number",
"null"
],
"description": "Change from the previous month (%), as reported by the company."
},
"revenue": {
"type": "number",
"description": "Revenue for the month (TWD)."
},
"yoy_pct": {
"type": [
"number",
"null"
],
"description": "Change from the same month a year earlier (%), as reported."
},
"ytd_pct": {
"type": [
"number",
"null"
],
"description": "Year-to-date change (%), as reported."
},
"company_note": {
"type": [
"string",
"null"
],
"description": "The company's explanation of the change, in Traditional Chinese; null when none."
},
"ytd_last_year": {
"type": [
"number",
"null"
]
},
"revenue_last_year": {
"type": [
"number",
"null"
],
"description": "Revenue in the same month a year earlier."
},
"revenue_last_month": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"industry_chains": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"required": [
"chain_code",
"chain_name",
"segment_code",
"segment_name",
"stream",
"parent_segment_name",
"url",
"peer_count",
"peers"
],
"properties": {
"url": {
"type": "string"
},
"peers": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"name",
"listed",
"market_cap",
"url"
],
"properties": {
"url": {
"type": [
"string",
"null"
]
},
"code": {
"type": "string"
},
"name": {
"type": "string"
},
"listed": {
"type": "boolean",
"description": "false for emerging-market (ESB) and GISA companies, which have no stock page."
},
"market_cap": {
"type": [
"number",
"null"
],
"description": "TWD, calculated by Livermore."
}
},
"additionalProperties": false
}
},
"stream": {
"type": [
"string",
"null"
],
"description": "Upstream, midstream, downstream or another group, in Traditional Chinese."
},
"chain_code": {
"type": "string",
"description": "Industry chain code for tw_get_industry_chain, e.g. D000."
},
"chain_name": {
"type": "string"
},
"peer_count": {
"type": "number",
"description": "Other companies in this segment."
},
"segment_code": {
"type": "string"
},
"segment_name": {
"type": "string"
},
"parent_segment_name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
},
{
"type": "null"
}
]
},
"production_sites": {
"anyOf": [
{
"type": "object",
"required": [
"generated_by",
"as_of",
"coordinates_credit",
"sites"
],
"properties": {
"as_of": {
"type": [
"string",
"null"
],
"description": "When the research was done (YYYY-MM)."
},
"sites": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"name_en",
"kind",
"status",
"status_note",
"city",
"region",
"country",
"country_code",
"lat",
"lon",
"coord_precision",
"sources"
],
"properties": {
"lat": {
"type": [
"number",
"null"
]
},
"lon": {
"type": [
"number",
"null"
]
},
"city": {
"type": [
"string",
"null"
]
},
"kind": {
"type": [
"string",
"null"
],
"description": "Fab, assembly plant and so on, in Traditional Chinese."
},
"name": {
"type": "string"
},
"region": {
"type": [
"string",
"null"
],
"description": "Science park or industrial zone; abroad often a state or province."
},
"status": {
"enum": [
"operating",
"under_construction",
"planned"
],
"type": "string"
},
"country": {
"type": [
"string",
"null"
]
},
"name_en": {
"type": [
"string",
"null"
]
},
"sources": {
"type": "array",
"items": {
"type": "object",
"required": [
"title",
"url"
],
"properties": {
"url": {
"type": "string"
},
"title": {
"type": "string"
}
},
"additionalProperties": false
}
},
"status_note": {
"type": [
"string",
"null"
],
"description": "Expected completion or production timing, as in the source."
},
"country_code": {
"type": "string",
"description": "ISO 3166-1 alpha-2."
},
"coord_precision": {
"anyOf": [
{
"enum": [
"source",
"address",
"region",
"city"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "source: from the cited source; address, region, city: looked up in OpenStreetMap at that level."
}
},
"additionalProperties": false
}
},
"generated_by": {
"type": "string",
"const": "ai"
},
"coordinates_credit": {
"type": [
"string",
"null"
],
"description": "Required credit when coordinates from OpenStreetMap (precision address, region or city) are used."
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Monthly revenue of one Taiwan-listed company (TWSE or TPEx), newest month first: revenue, the previous month and the same month a year earlier, month-over-month, year-over-year and year-to-date changes, and company_note, the company's own explanation of the change (Traditional Chinese). Taiwanese companies report revenue every month, by the 10th of the following month; data starts in January 2013. The percentages are reported by the company through MOPS, not calculated by Livermore. ETFs and other securities have none (empty months with a note). Follow up with tw_get_financials for quarterly statements. Taiwan conventions: money is in New Taiwan dollars (currency TWD), share counts are in shares (1 lot = 1,000 shares), prices are in TWD and fields ending in _pct are percentages (12.5 means 12.5%). market is TWSE (listed) or TPEx (OTC). Names are in Traditional Chinese, with name_en where available. url links to tw.livermore.club, whose pages are in Traditional Chinese only. Keep `attribution` when you present the data: Taiwan's Open Government Data License requires naming its sources, and fields listed in computed_by_livermore are Livermore's calculations, not official figures.
| Parameter | Type | Description |
|---|---|---|
| code * | string | Taiwan stock code, e.g. 2330 (TSMC), 0050 (an ETF) or 00981A. Lowercase, 2330.TW and 2330.TWO also work. Use tw_search to find a code by company name. |
| months | integer | Number of months, newest first (1-200, default 24). Data starts in January 2013. |
{
"name": "tw_get_monthly_revenue",
"title": "Taiwan stock: monthly revenue",
"description": "Monthly revenue of one Taiwan-listed company (TWSE or TPEx), newest month first: revenue, the previous month and the same month a year earlier, month-over-month, year-over-year and year-to-date changes, and company_note, the company's own explanation of the change (Traditional Chinese). Taiwanese companies report revenue every month, by the 10th of the following month; data starts in January 2013. The percentages are reported by the company through MOPS, not calculated by Livermore. ETFs and other securities have none (empty months with a note). Follow up with tw_get_financials for quarterly statements. Taiwan conventions: money is in New Taiwan dollars (currency TWD), share counts are in shares (1 lot = 1,000 shares), prices are in TWD and fields ending in _pct are percentages (12.5 means 12.5%). market is TWSE (listed) or TPEx (OTC). Names are in Traditional Chinese, with name_en where available. url links to tw.livermore.club, whose pages are in Traditional Chinese only. Keep `attribution` when you present the data: Taiwan's Open Government Data License requires naming its sources, and fields listed in computed_by_livermore are Livermore's calculations, not official figures.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"code"
],
"properties": {
"code": {
"type": "string",
"maxLength": 12,
"minLength": 1,
"description": "Taiwan stock code, e.g. 2330 (TSMC), 0050 (an ETF) or 00981A. Lowercase, 2330.TW and 2330.TWO also work. Use tw_search to find a code by company name."
},
"months": {
"type": "integer",
"default": 24,
"maximum": 200,
"minimum": 1,
"description": "Number of months, newest first (1-200, default 24). Data starts in January 2013."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"currency",
"code",
"name",
"name_en",
"market",
"months",
"available_months",
"earliest_month",
"note",
"url",
"attribution"
],
"properties": {
"url": {
"type": "string",
"description": "The revenue page on tw.livermore.club (Traditional Chinese)."
},
"code": {
"type": "string"
},
"name": {
"type": "string",
"description": "Short name in Traditional Chinese."
},
"note": {
"type": [
"string",
"null"
]
},
"market": {
"enum": [
"TWSE",
"TPEx"
],
"type": "string",
"description": "TWSE = listed on the Taiwan Stock Exchange; TPEx = traded on the Taipei Exchange (OTC market)."
},
"months": {
"type": "array",
"items": {
"type": "object",
"required": [
"month",
"revenue",
"revenue_last_month",
"revenue_last_year",
"mom_pct",
"yoy_pct",
"ytd",
"ytd_last_year",
"ytd_pct",
"company_note"
],
"properties": {
"ytd": {
"type": [
"number",
"null"
],
"description": "Revenue from January through this month."
},
"month": {
"type": "string",
"description": "YYYY-MM."
},
"mom_pct": {
"type": [
"number",
"null"
],
"description": "Change from the previous month (%), as reported by the company."
},
"revenue": {
"type": "number",
"description": "Revenue for the month (TWD)."
},
"yoy_pct": {
"type": [
"number",
"null"
],
"description": "Change from the same month a year earlier (%), as reported."
},
"ytd_pct": {
"type": [
"number",
"null"
],
"description": "Year-to-date change (%), as reported."
},
"company_note": {
"type": [
"string",
"null"
],
"description": "The company's explanation of the change, in Traditional Chinese; null when none."
},
"ytd_last_year": {
"type": [
"number",
"null"
]
},
"revenue_last_year": {
"type": [
"number",
"null"
],
"description": "Revenue in the same month a year earlier."
},
"revenue_last_month": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
}
},
"name_en": {
"type": [
"string",
"null"
],
"description": "English short name (for example TSMC); null when there is none."
},
"currency": {
"type": "string",
"const": "TWD",
"description": "Every amount of money in this result is in New Taiwan dollars (TWD)."
},
"attribution": {
"type": "object",
"required": [
"sources",
"license",
"computed_by_livermore",
"other_sources"
],
"properties": {
"license": {
"type": [
"string",
"null"
],
"description": "The license of the data from `sources`; null when no such data was used."
},
"sources": {
"type": "array",
"items": {
"type": "string"
},
"description": "The government open data providers whose data this result uses."
},
"other_sources": {
"type": "array",
"items": {
"type": "string"
},
"description": "Sources that are not government open data and not under the license (industry chains)."
},
"computed_by_livermore": {
"type": "array",
"items": {
"type": "string"
},
"description": "Fields calculated by Livermore from the official data (not published by the sources). Present them as Livermore's calculations, apart from the official figures."
}
},
"description": "Required attribution: Taiwan's Open Government Data License requires naming the sources when you present or pass on this data, and Livermore's own calculations must be kept apart from the official figures.",
"additionalProperties": false
},
"earliest_month": {
"type": [
"string",
"null"
]
},
"available_months": {
"type": "number",
"description": "Months of revenue Livermore has for this company."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Financial statements of one Taiwan-listed company from the MOPS XBRL filings (since 2013 Q1), newest period first: period=quarterly (default) gives the latest 8 single quarters, annual the latest 5 fiscal years. Each period has income (revenue, cost_of_revenue, gross_profit, operating_expenses, operating_income, non_operating_income, net_interest_income and provision_expense for banks, pretax_income, tax_expense, net_income, net_income_parent, eps_basic, eps_diluted), balance (cash_and_equivalents, accounts_receivable, inventory, total_current_assets, ppe_net, total_assets, total_current_liabilities, borrowings, total_liabilities, share_capital, equity_parent, total_equity) and cash_flow (operating_cash_flow, capex, free_cash_flow, investing_cash_flow, financing_cash_flow, dividends_paid; capex and dividends_paid are positive), plus margins, yoy_pct, roe_pct and debt_ratio_pct calculated by Livermore. Amounts are TWD, EPS is TWD per share. Taiwanese companies file Q1-Q3 quarterly and Q4 only as the full year, so single-quarter Q4 (and Q2-Q3 for companies that file half-years) is derived by subtraction (income.derived), Q4 EPS is full-year EPS minus the first three quarters (eps_derived) and single-quarter cash flows are derived from year-to-date figures (cash_flow.derived). check_failed lists accounting identities that are off by more than 1%; the figures are shown as filed. Quarterly ROE is not annualized. template is the MOPS industry format: ci general companies, basi banks, bd securities firms, fh financial holding companies, ins insurers, mim other industries. Revenue means different things per template (operating revenue for ci; net revenue, i.e. net interest income plus other net revenue, for basi and fh; revenues for bd; income for mim; operating revenue for ins through 2025 and insurance revenue under IFRS 17 from 2026, which cannot be compared, so revenue growth across that change is null), so do not compare or rank revenue across templates. Fields a format does not have are null: banks, financial holding companies and insurers have no gross profit; banks and financial holding companies have no operating income; basi, fh and ins have no current assets, current liabilities, inventory or borrowings. note explains what applies to the company; ETFs and other securities have no statements (empty periods). Taiwan conventions: money is in New Taiwan dollars (currency TWD), share counts are in shares (1 lot = 1,000 shares), prices are in TWD and fields ending in _pct are percentages (12.5 means 12.5%). market is TWSE (listed) or TPEx (OTC). Names are in Traditional Chinese, with name_en where available. url links to tw.livermore.club, whose pages are in Traditional Chinese only. Keep `attribution` when you present the data: Taiwan's Open Government Data License requires naming its sources, and fields listed in computed_by_livermore are Livermore's calculations, not official figures.
| Parameter | Type | Description |
|---|---|---|
| code * | string | Taiwan stock code, e.g. 2330 (TSMC), 0050 (an ETF) or 00981A. Lowercase, 2330.TW and 2330.TWO also work. Use tw_search to find a code by company name. |
| period | string | quarterly (default): the latest 8 single quarters; annual: the latest 5 fiscal years. |
{
"name": "tw_get_financials",
"title": "Taiwan stock: financial statements",
"description": "Financial statements of one Taiwan-listed company from the MOPS XBRL filings (since 2013 Q1), newest period first: period=quarterly (default) gives the latest 8 single quarters, annual the latest 5 fiscal years. Each period has income (revenue, cost_of_revenue, gross_profit, operating_expenses, operating_income, non_operating_income, net_interest_income and provision_expense for banks, pretax_income, tax_expense, net_income, net_income_parent, eps_basic, eps_diluted), balance (cash_and_equivalents, accounts_receivable, inventory, total_current_assets, ppe_net, total_assets, total_current_liabilities, borrowings, total_liabilities, share_capital, equity_parent, total_equity) and cash_flow (operating_cash_flow, capex, free_cash_flow, investing_cash_flow, financing_cash_flow, dividends_paid; capex and dividends_paid are positive), plus margins, yoy_pct, roe_pct and debt_ratio_pct calculated by Livermore. Amounts are TWD, EPS is TWD per share. Taiwanese companies file Q1-Q3 quarterly and Q4 only as the full year, so single-quarter Q4 (and Q2-Q3 for companies that file half-years) is derived by subtraction (income.derived), Q4 EPS is full-year EPS minus the first three quarters (eps_derived) and single-quarter cash flows are derived from year-to-date figures (cash_flow.derived). check_failed lists accounting identities that are off by more than 1%; the figures are shown as filed. Quarterly ROE is not annualized. template is the MOPS industry format: ci general companies, basi banks, bd securities firms, fh financial holding companies, ins insurers, mim other industries. Revenue means different things per template (operating revenue for ci; net revenue, i.e. net interest income plus other net revenue, for basi and fh; revenues for bd; income for mim; operating revenue for ins through 2025 and insurance revenue under IFRS 17 from 2026, which cannot be compared, so revenue growth across that change is null), so do not compare or rank revenue across templates. Fields a format does not have are null: banks, financial holding companies and insurers have no gross profit; banks and financial holding companies have no operating income; basi, fh and ins have no current assets, current liabilities, inventory or borrowings. note explains what applies to the company; ETFs and other securities have no statements (empty periods). Taiwan conventions: money is in New Taiwan dollars (currency TWD), share counts are in shares (1 lot = 1,000 shares), prices are in TWD and fields ending in _pct are percentages (12.5 means 12.5%). market is TWSE (listed) or TPEx (OTC). Names are in Traditional Chinese, with name_en where available. url links to tw.livermore.club, whose pages are in Traditional Chinese only. Keep `attribution` when you present the data: Taiwan's Open Government Data License requires naming its sources, and fields listed in computed_by_livermore are Livermore's calculations, not official figures.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"code"
],
"properties": {
"code": {
"type": "string",
"maxLength": 12,
"minLength": 1,
"description": "Taiwan stock code, e.g. 2330 (TSMC), 0050 (an ETF) or 00981A. Lowercase, 2330.TW and 2330.TWO also work. Use tw_search to find a code by company name."
},
"period": {
"enum": [
"quarterly",
"annual"
],
"type": "string",
"default": "quarterly",
"description": "quarterly (default): the latest 8 single quarters; annual: the latest 5 fiscal years."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"currency",
"code",
"name",
"name_en",
"market",
"period",
"periods",
"note",
"url",
"attribution"
],
"properties": {
"url": {
"type": "string",
"description": "The financials page on tw.livermore.club (Traditional Chinese)."
},
"code": {
"type": "string"
},
"name": {
"type": "string",
"description": "Short name in Traditional Chinese."
},
"note": {
"type": [
"string",
"null"
]
},
"market": {
"enum": [
"TWSE",
"TPEx"
],
"type": "string",
"description": "TWSE = listed on the Taiwan Stock Exchange; TPEx = traded on the Taipei Exchange (OTC market)."
},
"period": {
"enum": [
"quarterly",
"annual"
],
"type": "string"
},
"name_en": {
"type": [
"string",
"null"
],
"description": "English short name (for example TSMC); null when there is none."
},
"periods": {
"type": "array",
"items": {
"type": "object",
"required": [
"fiscal_year",
"fiscal_quarter",
"period_end",
"template",
"consolidated",
"income",
"balance",
"cash_flow",
"margins",
"yoy_pct",
"roe_pct",
"debt_ratio_pct"
],
"properties": {
"income": {
"anyOf": [
{
"type": "object",
"required": [
"revenue",
"cost_of_revenue",
"gross_profit",
"operating_expenses",
"operating_income",
"non_operating_income",
"net_interest_income",
"provision_expense",
"pretax_income",
"tax_expense",
"net_income",
"net_income_parent",
"eps_basic",
"eps_diluted",
"derived",
"eps_derived",
"check_failed"
],
"properties": {
"derived": {
"type": "boolean",
"description": "This single quarter was derived by subtraction: Q4 is the full year minus the first three quarters, and Q2 and Q3 of companies that report half-years are derived from year-to-date figures."
},
"revenue": {
"type": [
"number",
"null"
]
},
"eps_basic": {
"type": [
"number",
"null"
]
},
"net_income": {
"type": [
"number",
"null"
]
},
"eps_derived": {
"type": "boolean",
"description": "eps_basic and eps_diluted were calculated by Livermore as full-year EPS minus the first three quarters' cumulative EPS (Q4 only; may differ by a few cents when the share count changed)."
},
"eps_diluted": {
"type": [
"number",
"null"
]
},
"tax_expense": {
"type": [
"number",
"null"
]
},
"check_failed": {
"type": "array",
"items": {
"type": "string"
},
"description": "gross_profit when gross profit differs from revenue minus cost of revenue by more than 1%."
},
"gross_profit": {
"type": [
"number",
"null"
]
},
"pretax_income": {
"type": [
"number",
"null"
]
},
"cost_of_revenue": {
"type": [
"number",
"null"
]
},
"operating_income": {
"type": [
"number",
"null"
]
},
"net_income_parent": {
"type": [
"number",
"null"
]
},
"provision_expense": {
"type": [
"number",
"null"
]
},
"operating_expenses": {
"type": [
"number",
"null"
]
},
"net_interest_income": {
"type": [
"number",
"null"
]
},
"non_operating_income": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"balance": {
"anyOf": [
{
"type": "object",
"required": [
"cash_and_equivalents",
"accounts_receivable",
"inventory",
"total_current_assets",
"ppe_net",
"total_assets",
"total_current_liabilities",
"borrowings",
"total_liabilities",
"share_capital",
"equity_parent",
"total_equity",
"check_failed"
],
"properties": {
"ppe_net": {
"type": [
"number",
"null"
]
},
"inventory": {
"type": [
"number",
"null"
]
},
"borrowings": {
"type": [
"number",
"null"
]
},
"check_failed": {
"type": "array",
"items": {
"type": "string"
},
"description": "Balance sheet identities that failed within 1%."
},
"total_assets": {
"type": [
"number",
"null"
]
},
"total_equity": {
"type": [
"number",
"null"
]
},
"equity_parent": {
"type": [
"number",
"null"
]
},
"share_capital": {
"type": [
"number",
"null"
]
},
"total_liabilities": {
"type": [
"number",
"null"
]
},
"accounts_receivable": {
"type": [
"number",
"null"
]
},
"cash_and_equivalents": {
"type": [
"number",
"null"
]
},
"total_current_assets": {
"type": [
"number",
"null"
]
},
"total_current_liabilities": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"margins": {
"type": "object",
"required": [
"gross_pct",
"operating_pct",
"net_pct"
],
"properties": {
"net_pct": {
"type": [
"number",
"null"
]
},
"gross_pct": {
"type": [
"number",
"null"
]
},
"operating_pct": {
"type": [
"number",
"null"
]
}
},
"description": "Gross, operating and net income as a percent of revenue; null when revenue is not positive.",
"additionalProperties": false
},
"roe_pct": {
"type": [
"number",
"null"
],
"description": "Return on equity (%): net income attributable to the parent divided by average parent equity (start and end of the period); quarterly ROE is for one quarter, not annualized."
},
"yoy_pct": {
"type": "object",
"required": [
"revenue",
"net_income"
],
"properties": {
"revenue": {
"type": [
"number",
"null"
]
},
"net_income": {
"type": [
"number",
"null"
]
}
},
"description": "Growth (%) against the same period a year earlier: revenue and net income attributable to owners of the parent; null when the base is not positive or not comparable.",
"additionalProperties": false
},
"template": {
"enum": [
"ci",
"basi",
"bd",
"fh",
"ins",
"mim"
],
"type": "string"
},
"cash_flow": {
"anyOf": [
{
"type": "object",
"required": [
"operating_cash_flow",
"capex",
"free_cash_flow",
"investing_cash_flow",
"financing_cash_flow",
"dividends_paid",
"derived"
],
"properties": {
"capex": {
"type": [
"number",
"null"
]
},
"derived": {
"type": "boolean",
"description": "Single-quarter cash flows derived by subtracting year-to-date figures."
},
"dividends_paid": {
"type": [
"number",
"null"
]
},
"free_cash_flow": {
"type": [
"number",
"null"
]
},
"financing_cash_flow": {
"type": [
"number",
"null"
]
},
"investing_cash_flow": {
"type": [
"number",
"null"
]
},
"operating_cash_flow": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"period_end": {
"type": "string"
},
"fiscal_year": {
"type": "number"
},
"consolidated": {
"type": "boolean",
"description": "false for standalone statements (companies without subsidiaries)."
},
"debt_ratio_pct": {
"type": [
"number",
"null"
],
"description": "Total liabilities divided by total assets (%)."
},
"fiscal_quarter": {
"type": "number",
"description": "1-4; annual periods are 4."
}
},
"additionalProperties": false
}
},
"currency": {
"type": "string",
"const": "TWD",
"description": "Every amount of money in this result is in New Taiwan dollars (TWD)."
},
"attribution": {
"type": "object",
"required": [
"sources",
"license",
"computed_by_livermore",
"other_sources"
],
"properties": {
"license": {
"type": [
"string",
"null"
],
"description": "The license of the data from `sources`; null when no such data was used."
},
"sources": {
"type": "array",
"items": {
"type": "string"
},
"description": "The government open data providers whose data this result uses."
},
"other_sources": {
"type": "array",
"items": {
"type": "string"
},
"description": "Sources that are not government open data and not under the license (industry chains)."
},
"computed_by_livermore": {
"type": "array",
"items": {
"type": "string"
},
"description": "Fields calculated by Livermore from the official data (not published by the sources). Present them as Livermore's calculations, apart from the official figures."
}
},
"description": "Required attribution: Taiwan's Open Government Data License requires naming the sources when you present or pass on this data, and Livermore's own calculations must be kept apart from the official figures.",
"additionalProperties": false
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Daily trading data of one Taiwan stock or ETF, newest day first (since 2021): price (open, high, low, close, change, volume, turnover; raw prices not adjusted for dividends, null on days without a trade), institutional (net buying by the three institutional investor types: foreign_* is foreign and mainland Chinese investors excluding foreign-owned dealers, trust_* investment trusts, dealer_* dealers' proprietary trading and hedging, total_net all three), margin (margin purchases and short sales with balances and limits), securities_lending (short sales of borrowed securities) and foreign_holding (shares issued, foreign holding and its percent, room left and the legal limit). All counts are shares (the exchanges publish margin data in lots; converted). Taiwan daily prices are government open data. Quotes and institutional data arrive at about 5:30 PM Taiwan time; margin, securities lending and foreign holding data at about 10:30 PM, so on the latest day those parts can be null (note says so). change_pct is calculated by Livermore. tw_list_institutional_ranking ranks the whole market. Taiwan conventions: money is in New Taiwan dollars (currency TWD), share counts are in shares (1 lot = 1,000 shares), prices are in TWD and fields ending in _pct are percentages (12.5 means 12.5%). market is TWSE (listed) or TPEx (OTC). Names are in Traditional Chinese, with name_en where available. url links to tw.livermore.club, whose pages are in Traditional Chinese only. Keep `attribution` when you present the data: Taiwan's Open Government Data License requires naming its sources, and fields listed in computed_by_livermore are Livermore's calculations, not official figures.
| Parameter | Type | Description |
|---|---|---|
| code * | string | Taiwan stock code, e.g. 2330 (TSMC), 0050 (an ETF) or 00981A. Lowercase, 2330.TW and 2330.TWO also work. Use tw_search to find a code by company name. |
| days | integer | Number of trading days, newest first (1-200, default 20). Data starts in 2021. |
{
"name": "tw_get_daily_trading",
"title": "Taiwan stock: daily prices and chips",
"description": "Daily trading data of one Taiwan stock or ETF, newest day first (since 2021): price (open, high, low, close, change, volume, turnover; raw prices not adjusted for dividends, null on days without a trade), institutional (net buying by the three institutional investor types: foreign_* is foreign and mainland Chinese investors excluding foreign-owned dealers, trust_* investment trusts, dealer_* dealers' proprietary trading and hedging, total_net all three), margin (margin purchases and short sales with balances and limits), securities_lending (short sales of borrowed securities) and foreign_holding (shares issued, foreign holding and its percent, room left and the legal limit). All counts are shares (the exchanges publish margin data in lots; converted). Taiwan daily prices are government open data. Quotes and institutional data arrive at about 5:30 PM Taiwan time; margin, securities lending and foreign holding data at about 10:30 PM, so on the latest day those parts can be null (note says so). change_pct is calculated by Livermore. tw_list_institutional_ranking ranks the whole market. Taiwan conventions: money is in New Taiwan dollars (currency TWD), share counts are in shares (1 lot = 1,000 shares), prices are in TWD and fields ending in _pct are percentages (12.5 means 12.5%). market is TWSE (listed) or TPEx (OTC). Names are in Traditional Chinese, with name_en where available. url links to tw.livermore.club, whose pages are in Traditional Chinese only. Keep `attribution` when you present the data: Taiwan's Open Government Data License requires naming its sources, and fields listed in computed_by_livermore are Livermore's calculations, not official figures.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"code"
],
"properties": {
"code": {
"type": "string",
"maxLength": 12,
"minLength": 1,
"description": "Taiwan stock code, e.g. 2330 (TSMC), 0050 (an ETF) or 00981A. Lowercase, 2330.TW and 2330.TWO also work. Use tw_search to find a code by company name."
},
"days": {
"type": "integer",
"default": 20,
"maximum": 200,
"minimum": 1,
"description": "Number of trading days, newest first (1-200, default 20). Data starts in 2021."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"currency",
"code",
"name",
"name_en",
"market",
"rows",
"note",
"url",
"attribution"
],
"properties": {
"url": {
"type": "string",
"description": "The chips page on tw.livermore.club (Traditional Chinese)."
},
"code": {
"type": "string"
},
"name": {
"type": "string",
"description": "Short name in Traditional Chinese."
},
"note": {
"type": [
"string",
"null"
]
},
"rows": {
"type": "array",
"items": {
"type": "object",
"required": [
"date",
"price",
"institutional",
"margin",
"securities_lending",
"foreign_holding"
],
"properties": {
"date": {
"type": "string"
},
"price": {
"anyOf": [
{
"type": "object",
"required": [
"open",
"high",
"low",
"close",
"change",
"change_pct",
"volume",
"turnover"
],
"properties": {
"low": {
"type": [
"number",
"null"
]
},
"high": {
"type": [
"number",
"null"
]
},
"open": {
"type": [
"number",
"null"
]
},
"close": {
"type": [
"number",
"null"
],
"description": "null when the stock did not trade that day."
},
"change": {
"type": [
"number",
"null"
],
"description": "As published; null when not comparable (e.g. ex-dividend day)."
},
"volume": {
"type": [
"number",
"null"
],
"description": "Shares traded."
},
"turnover": {
"type": [
"number",
"null"
],
"description": "Value traded (TWD)."
},
"change_pct": {
"type": [
"number",
"null"
],
"description": "change divided by the previous close (%), calculated by Livermore."
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"margin": {
"anyOf": [
{
"type": "object",
"required": [
"margin_buy",
"margin_sell",
"margin_redeem",
"margin_balance",
"margin_limit",
"short_sell",
"short_buy",
"short_redeem",
"short_balance",
"short_limit",
"offset_shares",
"note"
],
"properties": {
"note": {
"type": [
"string",
"null"
],
"description": "Exchange note codes as published, e.g. X short sales suspended, O margin purchases suspended."
},
"short_buy": {
"type": [
"number",
"null"
]
},
"margin_buy": {
"type": [
"number",
"null"
]
},
"short_sell": {
"type": [
"number",
"null"
]
},
"margin_sell": {
"type": [
"number",
"null"
]
},
"short_limit": {
"type": [
"number",
"null"
]
},
"margin_limit": {
"type": [
"number",
"null"
]
},
"short_redeem": {
"type": [
"number",
"null"
],
"description": "Short positions closed by delivering shares."
},
"margin_redeem": {
"type": [
"number",
"null"
],
"description": "Margin loans repaid in cash."
},
"offset_shares": {
"type": [
"number",
"null"
],
"description": "Day-trade offsets between margin purchases and short sales."
},
"short_balance": {
"type": [
"number",
"null"
]
},
"margin_balance": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Margin purchases and short sales (shares)."
},
"institutional": {
"anyOf": [
{
"type": "object",
"required": [
"foreign_buy",
"foreign_sell",
"foreign_net",
"foreign_dealer_net",
"trust_buy",
"trust_sell",
"trust_net",
"dealer_self_net",
"dealer_hedge_net",
"dealer_net",
"total_net"
],
"properties": {
"total_net": {
"type": [
"number",
"null"
],
"description": "All three institutional investor types."
},
"trust_buy": {
"type": [
"number",
"null"
]
},
"trust_net": {
"type": [
"number",
"null"
],
"description": "Securities investment trusts."
},
"dealer_net": {
"type": [
"number",
"null"
]
},
"trust_sell": {
"type": [
"number",
"null"
]
},
"foreign_buy": {
"type": [
"number",
"null"
]
},
"foreign_net": {
"type": [
"number",
"null"
],
"description": "Foreign and mainland Chinese investors, excluding foreign dealers."
},
"foreign_sell": {
"type": [
"number",
"null"
]
},
"dealer_self_net": {
"type": [
"number",
"null"
],
"description": "Dealers' proprietary trading."
},
"dealer_hedge_net": {
"type": [
"number",
"null"
],
"description": "Dealers' hedging."
},
"foreign_dealer_net": {
"type": [
"number",
"null"
],
"description": "Foreign-owned dealers."
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Institutional investors' buying and selling (shares); net is buy minus sell."
},
"foreign_holding": {
"anyOf": [
{
"type": "object",
"required": [
"shares_issued",
"foreign_shares",
"remaining_shares",
"foreign_pct",
"foreign_limit_pct"
],
"properties": {
"foreign_pct": {
"type": [
"number",
"null"
]
},
"shares_issued": {
"type": [
"number",
"null"
]
},
"foreign_shares": {
"type": [
"number",
"null"
]
},
"remaining_shares": {
"type": [
"number",
"null"
],
"description": "Shares foreign investors may still buy."
},
"foreign_limit_pct": {
"type": [
"number",
"null"
],
"description": "The legal limit on foreign holding (%)."
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Foreign and mainland Chinese investors' holding."
},
"securities_lending": {
"anyOf": [
{
"type": "object",
"required": [
"sell",
"return",
"adjust",
"balance",
"next_day_limit"
],
"properties": {
"sell": {
"type": [
"number",
"null"
],
"description": "Shares sold short with borrowed securities that day."
},
"adjust": {
"type": [
"number",
"null"
]
},
"return": {
"type": [
"number",
"null"
]
},
"balance": {
"type": [
"number",
"null"
]
},
"next_day_limit": {
"type": [
"number",
"null"
],
"description": "Shares that may be sold this way on the next trading day."
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Short sales of borrowed securities (SBL), in shares."
}
},
"additionalProperties": false
}
},
"market": {
"enum": [
"TWSE",
"TPEx"
],
"type": "string",
"description": "TWSE = listed on the Taiwan Stock Exchange; TPEx = traded on the Taipei Exchange (OTC market)."
},
"name_en": {
"type": [
"string",
"null"
],
"description": "English short name (for example TSMC); null when there is none."
},
"currency": {
"type": "string",
"const": "TWD",
"description": "Every amount of money in this result is in New Taiwan dollars (TWD)."
},
"attribution": {
"type": "object",
"required": [
"sources",
"license",
"computed_by_livermore",
"other_sources"
],
"properties": {
"license": {
"type": [
"string",
"null"
],
"description": "The license of the data from `sources`; null when no such data was used."
},
"sources": {
"type": "array",
"items": {
"type": "string"
},
"description": "The government open data providers whose data this result uses."
},
"other_sources": {
"type": "array",
"items": {
"type": "string"
},
"description": "Sources that are not government open data and not under the license (industry chains)."
},
"computed_by_livermore": {
"type": "array",
"items": {
"type": "string"
},
"description": "Fields calculated by Livermore from the official data (not published by the sources). Present them as Livermore's calculations, apart from the official figures."
}
},
"description": "Required attribution: Taiwan's Open Government Data License requires naming the sources when you present or pass on this data, and Livermore's own calculations must be kept apart from the official figures.",
"additionalProperties": false
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}The Taiwan stock market on one trading day (default the latest): for TWSE and TPEx each, the total value traded and the number of companies up, down and flat (added up and counted by Livermore from the official quotes), and three rankings of companies (ETFs and other securities left out): largest value traded, largest gains and largest losses by percent (change divided by the previous close, calculated by Livermore; untraded stocks and stocks without a comparable change are left out). data_dates gives the latest date of each daily table (quotes, institutional, margin, foreign holding). A date without quotes (weekend, holiday, not loaded yet) returns an error naming the latest trading day. For institutional net buying use tw_list_institutional_ranking. Taiwan conventions: money is in New Taiwan dollars (currency TWD), share counts are in shares (1 lot = 1,000 shares), prices are in TWD and fields ending in _pct are percentages (12.5 means 12.5%). market is TWSE (listed) or TPEx (OTC). Names are in Traditional Chinese, with name_en where available. url links to tw.livermore.club, whose pages are in Traditional Chinese only. Keep `attribution` when you present the data: Taiwan's Open Government Data License requires naming its sources, and fields listed in computed_by_livermore are Livermore's calculations, not official figures.
| Parameter | Type | Description |
|---|---|---|
| date | string | Trading day, YYYY-MM-DD. Default: the latest day with quotes. |
| limit | integer | Rows per ranking (1-50, default 10). |
{
"name": "tw_get_market",
"title": "Taiwan market summary",
"description": "The Taiwan stock market on one trading day (default the latest): for TWSE and TPEx each, the total value traded and the number of companies up, down and flat (added up and counted by Livermore from the official quotes), and three rankings of companies (ETFs and other securities left out): largest value traded, largest gains and largest losses by percent (change divided by the previous close, calculated by Livermore; untraded stocks and stocks without a comparable change are left out). data_dates gives the latest date of each daily table (quotes, institutional, margin, foreign holding). A date without quotes (weekend, holiday, not loaded yet) returns an error naming the latest trading day. For institutional net buying use tw_list_institutional_ranking. Taiwan conventions: money is in New Taiwan dollars (currency TWD), share counts are in shares (1 lot = 1,000 shares), prices are in TWD and fields ending in _pct are percentages (12.5 means 12.5%). market is TWSE (listed) or TPEx (OTC). Names are in Traditional Chinese, with name_en where available. url links to tw.livermore.club, whose pages are in Traditional Chinese only. Keep `attribution` when you present the data: Taiwan's Open Government Data License requires naming its sources, and fields listed in computed_by_livermore are Livermore's calculations, not official figures.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Trading day, YYYY-MM-DD. Default: the latest day with quotes."
},
"limit": {
"type": "integer",
"default": 10,
"maximum": 50,
"minimum": 1,
"description": "Rows per ranking (1-50, default 10)."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"currency",
"date",
"data_dates",
"markets",
"rankings",
"url",
"attribution"
],
"properties": {
"url": {
"type": "string"
},
"date": {
"type": "string"
},
"markets": {
"type": "array",
"items": {
"type": "object",
"required": [
"market",
"turnover",
"stocks",
"up",
"down",
"flat"
],
"properties": {
"up": {
"type": "number"
},
"down": {
"type": "number"
},
"flat": {
"type": "number"
},
"market": {
"enum": [
"TWSE",
"TPEx"
],
"type": "string",
"description": "TWSE = listed on the Taiwan Stock Exchange; TPEx = traded on the Taipei Exchange (OTC market)."
},
"stocks": {
"type": "number",
"description": "Companies (stocks including TDRs) with a quote that day."
},
"turnover": {
"type": [
"number",
"null"
],
"description": "Value traded across all securities in the daily quotes (TWSE excludes warrants)."
}
},
"additionalProperties": false
}
},
"currency": {
"type": "string",
"const": "TWD",
"description": "Every amount of money in this result is in New Taiwan dollars (TWD)."
},
"rankings": {
"type": "object",
"required": [
"turnover",
"gainers",
"losers"
],
"properties": {
"losers": {
"type": "array",
"items": {
"type": "object",
"required": [
"rank",
"code",
"name",
"market",
"close",
"change",
"change_pct",
"turnover",
"url"
],
"properties": {
"url": {
"type": "string"
},
"code": {
"type": "string"
},
"name": {
"type": "string"
},
"rank": {
"type": "number"
},
"close": {
"type": [
"number",
"null"
]
},
"change": {
"type": [
"number",
"null"
]
},
"market": {
"enum": [
"TWSE",
"TPEx"
],
"type": "string",
"description": "TWSE = listed on the Taiwan Stock Exchange; TPEx = traded on the Taipei Exchange (OTC market)."
},
"turnover": {
"type": [
"number",
"null"
]
},
"change_pct": {
"type": [
"number",
"null"
],
"description": "Calculated by Livermore."
}
},
"additionalProperties": false
},
"description": "Largest percentage losses."
},
"gainers": {
"type": "array",
"items": {
"type": "object",
"required": [
"rank",
"code",
"name",
"market",
"close",
"change",
"change_pct",
"turnover",
"url"
],
"properties": {
"url": {
"type": "string"
},
"code": {
"type": "string"
},
"name": {
"type": "string"
},
"rank": {
"type": "number"
},
"close": {
"type": [
"number",
"null"
]
},
"change": {
"type": [
"number",
"null"
]
},
"market": {
"enum": [
"TWSE",
"TPEx"
],
"type": "string",
"description": "TWSE = listed on the Taiwan Stock Exchange; TPEx = traded on the Taipei Exchange (OTC market)."
},
"turnover": {
"type": [
"number",
"null"
]
},
"change_pct": {
"type": [
"number",
"null"
],
"description": "Calculated by Livermore."
}
},
"additionalProperties": false
},
"description": "Largest percentage gains."
},
"turnover": {
"type": "array",
"items": {
"type": "object",
"required": [
"rank",
"code",
"name",
"market",
"close",
"change",
"change_pct",
"turnover",
"url"
],
"properties": {
"url": {
"type": "string"
},
"code": {
"type": "string"
},
"name": {
"type": "string"
},
"rank": {
"type": "number"
},
"close": {
"type": [
"number",
"null"
]
},
"change": {
"type": [
"number",
"null"
]
},
"market": {
"enum": [
"TWSE",
"TPEx"
],
"type": "string",
"description": "TWSE = listed on the Taiwan Stock Exchange; TPEx = traded on the Taipei Exchange (OTC market)."
},
"turnover": {
"type": [
"number",
"null"
]
},
"change_pct": {
"type": [
"number",
"null"
],
"description": "Calculated by Livermore."
}
},
"additionalProperties": false
},
"description": "Largest value traded."
}
},
"additionalProperties": false
},
"data_dates": {
"type": "object",
"required": [
"quotes",
"institutional",
"margin",
"foreign_holding"
],
"properties": {
"margin": {
"type": [
"string",
"null"
]
},
"quotes": {
"type": [
"string",
"null"
]
},
"institutional": {
"type": [
"string",
"null"
]
},
"foreign_holding": {
"type": [
"string",
"null"
]
}
},
"description": "The latest date loaded in each daily table.",
"additionalProperties": false
},
"attribution": {
"type": "object",
"required": [
"sources",
"license",
"computed_by_livermore",
"other_sources"
],
"properties": {
"license": {
"type": [
"string",
"null"
],
"description": "The license of the data from `sources`; null when no such data was used."
},
"sources": {
"type": "array",
"items": {
"type": "string"
},
"description": "The government open data providers whose data this result uses."
},
"other_sources": {
"type": "array",
"items": {
"type": "string"
},
"description": "Sources that are not government open data and not under the license (industry chains)."
},
"computed_by_livermore": {
"type": "array",
"items": {
"type": "string"
},
"description": "Fields calculated by Livermore from the official data (not published by the sources). Present them as Livermore's calculations, apart from the official figures."
}
},
"description": "Required attribution: Taiwan's Open Government Data License requires naming the sources when you present or pass on this data, and Livermore's own calculations must be kept apart from the official figures.",
"additionalProperties": false
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Which Taiwan companies one type of institutional investor bought or sold most over the last 1, 5 or 20 trading days ending on date (default the latest). category: foreign = foreign and mainland Chinese investors (excluding foreign-owned dealers); trust = securities investment trusts (domestic funds); dealer = securities dealers (proprietary trading plus hedging). side=buy lists the largest net buying, sell the largest net selling; companies only (no ETFs). Each row has net_shares (the period total), estimated_value (each day's net shares times that day's close, added up), the last day's close and change, and period_change_pct (the last close against the close on base_date, the trading day before the period); estimated_value, period_change_pct and multi-day totals are calculated by Livermore. date must be one of the latest 30 trading days with institutional data (recent_dates); other dates return an error listing them. Use tw_get_daily_trading for one stock's daily history. Taiwan conventions: money is in New Taiwan dollars (currency TWD), share counts are in shares (1 lot = 1,000 shares), prices are in TWD and fields ending in _pct are percentages (12.5 means 12.5%). market is TWSE (listed) or TPEx (OTC). Names are in Traditional Chinese, with name_en where available. url links to tw.livermore.club, whose pages are in Traditional Chinese only. Keep `attribution` when you present the data: Taiwan's Open Government Data License requires naming its sources, and fields listed in computed_by_livermore are Livermore's calculations, not official figures.
| Parameter | Type | Description |
|---|---|---|
| date | string | The last day of the period, YYYY-MM-DD: one of the latest 30 trading days with institutional data (recent_dates). Default the latest. |
| days | number | Period length in trading days: 1 (default), 5 or 20, ending on `date`. |
| side | string | buy: largest net buying (default); sell: largest net selling. |
| limit | integer | Rows (1-50, default 25). |
| category | string | Investor type: foreign = foreign and mainland Chinese investors (excluding foreign-owned dealers); trust = securities investment trusts (domestic funds); dealer = securities dealers (proprietary trading plus hedging). Default foreign. |
{
"name": "tw_list_institutional_ranking",
"title": "Taiwan institutional net buying ranking",
"description": "Which Taiwan companies one type of institutional investor bought or sold most over the last 1, 5 or 20 trading days ending on date (default the latest). category: foreign = foreign and mainland Chinese investors (excluding foreign-owned dealers); trust = securities investment trusts (domestic funds); dealer = securities dealers (proprietary trading plus hedging). side=buy lists the largest net buying, sell the largest net selling; companies only (no ETFs). Each row has net_shares (the period total), estimated_value (each day's net shares times that day's close, added up), the last day's close and change, and period_change_pct (the last close against the close on base_date, the trading day before the period); estimated_value, period_change_pct and multi-day totals are calculated by Livermore. date must be one of the latest 30 trading days with institutional data (recent_dates); other dates return an error listing them. Use tw_get_daily_trading for one stock's daily history. Taiwan conventions: money is in New Taiwan dollars (currency TWD), share counts are in shares (1 lot = 1,000 shares), prices are in TWD and fields ending in _pct are percentages (12.5 means 12.5%). market is TWSE (listed) or TPEx (OTC). Names are in Traditional Chinese, with name_en where available. url links to tw.livermore.club, whose pages are in Traditional Chinese only. Keep `attribution` when you present the data: Taiwan's Open Government Data License requires naming its sources, and fields listed in computed_by_livermore are Livermore's calculations, not official figures.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "The last day of the period, YYYY-MM-DD: one of the latest 30 trading days with institutional data (recent_dates). Default the latest."
},
"days": {
"enum": [
1,
5,
20
],
"type": "number",
"default": 1,
"description": "Period length in trading days: 1 (default), 5 or 20, ending on `date`."
},
"side": {
"enum": [
"buy",
"sell"
],
"type": "string",
"default": "buy",
"description": "buy: largest net buying (default); sell: largest net selling."
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 50,
"minimum": 1,
"description": "Rows (1-50, default 25)."
},
"category": {
"enum": [
"foreign",
"trust",
"dealer"
],
"type": "string",
"default": "foreign",
"description": "Investor type: foreign = foreign and mainland Chinese investors (excluding foreign-owned dealers); trust = securities investment trusts (domestic funds); dealer = securities dealers (proprietary trading plus hedging). Default foreign."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"currency",
"category",
"side",
"days",
"period",
"base_date",
"rows",
"recent_dates",
"url",
"attribution"
],
"properties": {
"url": {
"type": "string"
},
"days": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"type": "object",
"required": [
"rank",
"code",
"name",
"market",
"net_shares",
"estimated_value",
"close",
"change",
"period_change_pct",
"url"
],
"properties": {
"url": {
"type": "string"
},
"code": {
"type": "string"
},
"name": {
"type": "string"
},
"rank": {
"type": "number"
},
"close": {
"type": [
"number",
"null"
],
"description": "Close on the last day of the period."
},
"change": {
"type": [
"number",
"null"
],
"description": "Change on the last day, as published."
},
"market": {
"enum": [
"TWSE",
"TPEx"
],
"type": "string",
"description": "TWSE = listed on the Taiwan Stock Exchange; TPEx = traded on the Taipei Exchange (OTC market)."
},
"net_shares": {
"type": "number",
"description": "Net shares bought (negative: sold) over the period."
},
"estimated_value": {
"type": [
"number",
"null"
],
"description": "Each day's net shares times that day's close, added up (TWD), calculated by Livermore."
},
"period_change_pct": {
"type": [
"number",
"null"
],
"description": "Last close divided by the close on base_date, minus 1 (%), calculated by Livermore."
}
},
"additionalProperties": false
}
},
"side": {
"enum": [
"buy",
"sell"
],
"type": "string"
},
"period": {
"type": "object",
"required": [
"from",
"to",
"trading_days"
],
"properties": {
"to": {
"type": "string"
},
"from": {
"type": [
"string",
"null"
]
},
"trading_days": {
"type": "number"
}
},
"additionalProperties": false
},
"category": {
"enum": [
"foreign",
"trust",
"dealer"
],
"type": "string"
},
"currency": {
"type": "string",
"const": "TWD",
"description": "Every amount of money in this result is in New Taiwan dollars (TWD)."
},
"base_date": {
"type": [
"string",
"null"
],
"description": "The trading day before the period; period_change_pct compares with its close."
},
"attribution": {
"type": "object",
"required": [
"sources",
"license",
"computed_by_livermore",
"other_sources"
],
"properties": {
"license": {
"type": [
"string",
"null"
],
"description": "The license of the data from `sources`; null when no such data was used."
},
"sources": {
"type": "array",
"items": {
"type": "string"
},
"description": "The government open data providers whose data this result uses."
},
"other_sources": {
"type": "array",
"items": {
"type": "string"
},
"description": "Sources that are not government open data and not under the license (industry chains)."
},
"computed_by_livermore": {
"type": "array",
"items": {
"type": "string"
},
"description": "Fields calculated by Livermore from the official data (not published by the sources). Present them as Livermore's calculations, apart from the official figures."
}
},
"description": "Required attribution: Taiwan's Open Government Data License requires naming the sources when you present or pass on this data, and Livermore's own calculations must be kept apart from the official figures.",
"additionalProperties": false
},
"recent_dates": {
"type": "array",
"items": {
"type": "string"
},
"description": "The latest 30 trading days with institutional data (valid dates)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Taiwan companies listed on TWSE or TPEx and still trading (or ETFs with industry=etf), filtered by market and TWSE/TPEx industry code, sorted by market cap (default, largest first) or code, 100 per page. Each row has code, name (Traditional Chinese), market, industry, the latest close and change, the published P/E, and market_cap (the latest close times shares issued, calculated by Livermore) with url. `industries` lists every industry code with its Chinese name and number of companies, and etf_count the number of ETFs, so a first call without industry shows the codes (24 is semiconductors). An unknown industry code returns an error. Rows have no English names: use tw_get_stock for name_en and the full profile. Taiwan conventions: money is in New Taiwan dollars (currency TWD), share counts are in shares (1 lot = 1,000 shares), prices are in TWD and fields ending in _pct are percentages (12.5 means 12.5%). market is TWSE (listed) or TPEx (OTC). Names are in Traditional Chinese, with name_en where available. url links to tw.livermore.club, whose pages are in Traditional Chinese only. Keep `attribution` when you present the data: Taiwan's Open Government Data License requires naming its sources, and fields listed in computed_by_livermore are Livermore's calculations, not official figures.
| Parameter | Type | Description |
|---|---|---|
| dir | string | desc (default) or asc. |
| page | integer | Page number; each page has 100 rows. Check has_more. |
| sort | string | market_cap (default; calculated by Livermore) or code. |
| market | string | all (default), twse (listed on the Taiwan Stock Exchange) or tpex (Taipei Exchange). |
| industry | string | A TWSE/TPEx industry code such as 24 (semiconductors) or 'etf' for ETFs instead of companies; the result's `industries` lists every code. Default: all companies. |
{
"name": "tw_screen_stocks",
"title": "Screen Taiwan stocks",
"description": "Taiwan companies listed on TWSE or TPEx and still trading (or ETFs with industry=etf), filtered by market and TWSE/TPEx industry code, sorted by market cap (default, largest first) or code, 100 per page. Each row has code, name (Traditional Chinese), market, industry, the latest close and change, the published P/E, and market_cap (the latest close times shares issued, calculated by Livermore) with url. `industries` lists every industry code with its Chinese name and number of companies, and etf_count the number of ETFs, so a first call without industry shows the codes (24 is semiconductors). An unknown industry code returns an error. Rows have no English names: use tw_get_stock for name_en and the full profile. Taiwan conventions: money is in New Taiwan dollars (currency TWD), share counts are in shares (1 lot = 1,000 shares), prices are in TWD and fields ending in _pct are percentages (12.5 means 12.5%). market is TWSE (listed) or TPEx (OTC). Names are in Traditional Chinese, with name_en where available. url links to tw.livermore.club, whose pages are in Traditional Chinese only. Keep `attribution` when you present the data: Taiwan's Open Government Data License requires naming its sources, and fields listed in computed_by_livermore are Livermore's calculations, not official figures.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"dir": {
"enum": [
"desc",
"asc"
],
"type": "string",
"default": "desc",
"description": "desc (default) or asc."
},
"page": {
"type": "integer",
"default": 1,
"maximum": 500,
"minimum": 1,
"description": "Page number; each page has 100 rows. Check has_more."
},
"sort": {
"enum": [
"market_cap",
"code"
],
"type": "string",
"default": "market_cap",
"description": "market_cap (default; calculated by Livermore) or code."
},
"market": {
"enum": [
"all",
"twse",
"tpex"
],
"type": "string",
"default": "all",
"description": "all (default), twse (listed on the Taiwan Stock Exchange) or tpex (Taipei Exchange)."
},
"industry": {
"type": "string",
"maxLength": 10,
"minLength": 1,
"description": "A TWSE/TPEx industry code such as 24 (semiconductors) or 'etf' for ETFs instead of companies; the result's `industries` lists every code. Default: all companies."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"currency",
"as_of",
"filters",
"page",
"page_size",
"has_more",
"companies",
"industries",
"etf_count",
"note",
"url",
"attribution"
],
"properties": {
"url": {
"type": "string"
},
"note": {
"type": [
"string",
"null"
]
},
"page": {
"type": "number"
},
"as_of": {
"type": [
"string",
"null"
],
"description": "The trading day of the closes and market caps."
},
"filters": {
"type": "object",
"required": [
"market",
"industry",
"sort",
"dir"
],
"properties": {
"dir": {
"enum": [
"desc",
"asc"
],
"type": "string"
},
"sort": {
"enum": [
"market_cap",
"code"
],
"type": "string"
},
"market": {
"enum": [
"all",
"twse",
"tpex"
],
"type": "string"
},
"industry": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"currency": {
"type": "string",
"const": "TWD",
"description": "Every amount of money in this result is in New Taiwan dollars (TWD)."
},
"has_more": {
"type": "boolean"
},
"companies": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"name",
"market",
"industry",
"close",
"change",
"change_pct",
"pe_ratio",
"market_cap",
"url"
],
"properties": {
"url": {
"type": "string"
},
"code": {
"type": "string"
},
"name": {
"type": "string",
"description": "Short name in Traditional Chinese."
},
"close": {
"type": [
"number",
"null"
]
},
"change": {
"type": [
"number",
"null"
]
},
"market": {
"enum": [
"TWSE",
"TPEx"
],
"type": "string",
"description": "TWSE = listed on the Taiwan Stock Exchange; TPEx = traded on the Taipei Exchange (OTC market)."
},
"industry": {
"type": [
"string",
"null"
],
"description": "Industry name in Traditional Chinese."
},
"pe_ratio": {
"type": [
"number",
"null"
],
"description": "As published by TWSE or TPEx; null for losses or ETFs."
},
"change_pct": {
"type": [
"number",
"null"
],
"description": "Calculated by Livermore."
},
"market_cap": {
"type": [
"number",
"null"
],
"description": "close times shares issued (TWD), calculated by Livermore."
}
},
"additionalProperties": false
}
},
"etf_count": {
"type": "number",
"description": "Listed ETFs (industry=etf)."
},
"page_size": {
"type": "number"
},
"industries": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"name",
"companies"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": "string"
},
"companies": {
"type": "number"
}
},
"additionalProperties": false
},
"description": "Every industry code with its name in Traditional Chinese (TWSE and TPEx names joined when they differ) and the number of companies."
},
"attribution": {
"type": "object",
"required": [
"sources",
"license",
"computed_by_livermore",
"other_sources"
],
"properties": {
"license": {
"type": [
"string",
"null"
],
"description": "The license of the data from `sources`; null when no such data was used."
},
"sources": {
"type": "array",
"items": {
"type": "string"
},
"description": "The government open data providers whose data this result uses."
},
"other_sources": {
"type": "array",
"items": {
"type": "string"
},
"description": "Sources that are not government open data and not under the license (industry chains)."
},
"computed_by_livermore": {
"type": "array",
"items": {
"type": "string"
},
"description": "Fields calculated by Livermore from the official data (not published by the sources). Present them as Livermore's calculations, apart from the official figures."
}
},
"description": "Required attribution: Taiwan's Open Government Data License requires naming the sources when you present or pass on this data, and Livermore's own calculations must be kept apart from the official figures.",
"additionalProperties": false
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Taiwan's industry value chains from the TPEx Industry Value Chain Information Platform (47 chains such as semiconductors, D000), to find companies by what they do. Without chain: every chain with its code, name and number of companies (all, and TWSE/TPEx-listed). With chain: the chain's segments in platform order (stream upstream, midstream, downstream or another group; sub-segments carry parent_code) with up to `limit` companies each: TWSE and TPEx companies by market cap (latest close times shares issued, calculated by Livermore) with close and change, then emerging-market (ESB) and GISA companies, which have no stock page or quotes. With chain and segment: only that segment and its sub-segments. Unknown codes return an error. Names, streams and listing groups are in Traditional Chinese. The chain data is not government open data (attribution.other_sources); quotes are. tw_get_stock shows the segments of one company. Taiwan conventions: money is in New Taiwan dollars (currency TWD), share counts are in shares (1 lot = 1,000 shares), prices are in TWD and fields ending in _pct are percentages (12.5 means 12.5%). market is TWSE (listed) or TPEx (OTC). Names are in Traditional Chinese, with name_en where available. url links to tw.livermore.club, whose pages are in Traditional Chinese only. Keep `attribution` when you present the data: Taiwan's Open Government Data License requires naming its sources, and fields listed in computed_by_livermore are Livermore's calculations, not official figures.
| Parameter | Type | Description |
|---|---|---|
| chain | string | Industry chain code, e.g. D000 (semiconductors). Omit to list every chain. |
| limit | integer | Companies per segment (1-200, default 10), listed companies by market cap first. |
| segment | string | A segment code within the chain, e.g. D300; returns that segment and its sub-segments. Needs chain. |
{
"name": "tw_get_industry_chain",
"title": "Taiwan industry value chains",
"description": "Taiwan's industry value chains from the TPEx Industry Value Chain Information Platform (47 chains such as semiconductors, D000), to find companies by what they do. Without chain: every chain with its code, name and number of companies (all, and TWSE/TPEx-listed). With chain: the chain's segments in platform order (stream upstream, midstream, downstream or another group; sub-segments carry parent_code) with up to `limit` companies each: TWSE and TPEx companies by market cap (latest close times shares issued, calculated by Livermore) with close and change, then emerging-market (ESB) and GISA companies, which have no stock page or quotes. With chain and segment: only that segment and its sub-segments. Unknown codes return an error. Names, streams and listing groups are in Traditional Chinese. The chain data is not government open data (attribution.other_sources); quotes are. tw_get_stock shows the segments of one company. Taiwan conventions: money is in New Taiwan dollars (currency TWD), share counts are in shares (1 lot = 1,000 shares), prices are in TWD and fields ending in _pct are percentages (12.5 means 12.5%). market is TWSE (listed) or TPEx (OTC). Names are in Traditional Chinese, with name_en where available. url links to tw.livermore.club, whose pages are in Traditional Chinese only. Keep `attribution` when you present the data: Taiwan's Open Government Data License requires naming its sources, and fields listed in computed_by_livermore are Livermore's calculations, not official figures.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"chain": {
"type": "string",
"maxLength": 8,
"minLength": 1,
"description": "Industry chain code, e.g. D000 (semiconductors). Omit to list every chain."
},
"limit": {
"type": "integer",
"default": 10,
"maximum": 200,
"minimum": 1,
"description": "Companies per segment (1-200, default 10), listed companies by market cap first."
},
"segment": {
"type": "string",
"maxLength": 8,
"minLength": 1,
"description": "A segment code within the chain, e.g. D300; returns that segment and its sub-segments. Needs chain."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"currency",
"chains",
"chain",
"segments",
"data_date",
"url",
"attribution"
],
"properties": {
"url": {
"type": "string"
},
"chain": {
"anyOf": [
{
"type": "object",
"required": [
"chain_code",
"name",
"company_count",
"listed_count",
"url"
],
"properties": {
"url": {
"type": "string"
},
"name": {
"type": "string",
"description": "Chain name in Traditional Chinese."
},
"chain_code": {
"type": "string"
},
"listed_count": {
"type": "number",
"description": "Of those, TWSE and TPEx companies (which have stock pages)."
},
"company_count": {
"type": "number",
"description": "Distinct companies in the chain, including emerging-market (ESB) and GISA companies."
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"chains": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"required": [
"chain_code",
"name",
"company_count",
"listed_count",
"url"
],
"properties": {
"url": {
"type": "string"
},
"name": {
"type": "string",
"description": "Chain name in Traditional Chinese."
},
"chain_code": {
"type": "string"
},
"listed_count": {
"type": "number",
"description": "Of those, TWSE and TPEx companies (which have stock pages)."
},
"company_count": {
"type": "number",
"description": "Distinct companies in the chain, including emerging-market (ESB) and GISA companies."
}
},
"additionalProperties": false
}
},
{
"type": "null"
}
],
"description": "Every chain, when chain is not given."
},
"currency": {
"type": "string",
"const": "TWD",
"description": "Every amount of money in this result is in New Taiwan dollars (TWD)."
},
"segments": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"required": [
"segment_code",
"name",
"stream",
"parent_code",
"company_count",
"listed_count",
"url",
"companies",
"more_companies"
],
"properties": {
"url": {
"type": "string"
},
"name": {
"type": "string",
"description": "Traditional Chinese."
},
"stream": {
"type": [
"string",
"null"
],
"description": "Upstream, midstream, downstream or another group, in Traditional Chinese."
},
"companies": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"name",
"listed",
"listing_group",
"market",
"close",
"change",
"change_pct",
"market_cap",
"url"
],
"properties": {
"url": {
"type": [
"string",
"null"
]
},
"code": {
"type": "string"
},
"name": {
"type": "string"
},
"close": {
"type": [
"number",
"null"
]
},
"change": {
"type": [
"number",
"null"
]
},
"listed": {
"type": "boolean",
"description": "true for TWSE and TPEx companies; false for ESB and GISA companies (no stock page)."
},
"market": {
"anyOf": [
{
"enum": [
"TWSE",
"TPEx"
],
"type": "string",
"description": "TWSE = listed on the Taiwan Stock Exchange; TPEx = traded on the Taipei Exchange (OTC market)."
},
{
"type": "null"
}
]
},
"change_pct": {
"type": [
"number",
"null"
],
"description": "Calculated by Livermore."
},
"market_cap": {
"type": [
"number",
"null"
],
"description": "TWD, calculated by Livermore."
},
"listing_group": {
"type": "string",
"description": "The platform's group, in Traditional Chinese (domestic listed, foreign OTC...)."
}
},
"additionalProperties": false
}
},
"parent_code": {
"type": [
"string",
"null"
],
"description": "The parent segment of a sub-segment."
},
"listed_count": {
"type": "number"
},
"segment_code": {
"type": "string"
},
"company_count": {
"type": "number",
"description": "Companies in this segment itself (sub-segments counted separately)."
},
"more_companies": {
"type": "number",
"description": "Companies in this segment beyond limit."
}
},
"additionalProperties": false
}
},
{
"type": "null"
}
],
"description": "The chain's segments in platform order (top-level segments, then their sub-segments), when chain is given."
},
"data_date": {
"type": [
"string",
"null"
],
"description": "The trading day of the closes and market caps."
},
"attribution": {
"type": "object",
"required": [
"sources",
"license",
"computed_by_livermore",
"other_sources"
],
"properties": {
"license": {
"type": [
"string",
"null"
],
"description": "The license of the data from `sources`; null when no such data was used."
},
"sources": {
"type": "array",
"items": {
"type": "string"
},
"description": "The government open data providers whose data this result uses."
},
"other_sources": {
"type": "array",
"items": {
"type": "string"
},
"description": "Sources that are not government open data and not under the license (industry chains)."
},
"computed_by_livermore": {
"type": "array",
"items": {
"type": "string"
},
"description": "Fields calculated by Livermore from the official data (not published by the sources). Present them as Livermore's calculations, apart from the official figures."
}
},
"description": "Required attribution: Taiwan's Open Government Data License requires naming the sources when you present or pass on this data, and Livermore's own calculations must be kept apart from the official figures.",
"additionalProperties": false
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}What data Livermore has and how fresh it is: the Form 4 filing-date range, the 13F quarters loaded (with the number of filers), the latest complete 13F quarter, the number of curated superinvestors, the Schedule 13D, 13G and Form 144 filing-date ranges, the filing-date range of politicians' trade reports (the congress field: reports by members of the U.S. Congress), the date ranges of company filings (10-K, 10-Q, 8-K), FINRA short interest, daily short volume, weekly ATS volume and SEC fails-to-deliver, the number of companies with financial statements, and the number of companies with a market cap with the newest close date used (market_caps); each of these is null until loaded and has its own last_updated. taiwan covers the Taiwan stock data of the tw_ tools: the latest date of each daily table, the latest month of revenue and quarter of financial statements with the number of companies, how many companies have AI-written profiles and production sites, and where each dataset starts. Also the last successful data updates (ISO 8601 UTC), the update schedule and the usage limits of this server. Call it to check whether a date or quarter is covered.
No parameters.
{
"name": "get_data_coverage",
"title": "Data coverage and freshness",
"description": "What data Livermore has and how fresh it is: the Form 4 filing-date range, the 13F quarters loaded (with the number of filers), the latest complete 13F quarter, the number of curated superinvestors, the Schedule 13D, 13G and Form 144 filing-date ranges, the filing-date range of politicians' trade reports (the congress field: reports by members of the U.S. Congress), the date ranges of company filings (10-K, 10-Q, 8-K), FINRA short interest, daily short volume, weekly ATS volume and SEC fails-to-deliver, the number of companies with financial statements, and the number of companies with a market cap with the newest close date used (market_caps); each of these is null until loaded and has its own last_updated. taiwan covers the Taiwan stock data of the tw_ tools: the latest date of each daily table, the latest month of revenue and quarter of financial statements with the number of companies, how many companies have AI-written profiles and production sites, and where each dataset starts. Also the last successful data updates (ISO 8601 UTC), the update schedule and the usage limits of this server. Call it to check whether a date or quarter is covered.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"website",
"sources",
"form4",
"f13",
"superinvestors",
"ownership",
"congress",
"filings",
"financials",
"short_interest",
"short_volume",
"ats_weekly",
"fails_to_deliver",
"market_caps",
"last_successful_update",
"taiwan",
"update_schedule",
"limits",
"docs_url",
"llms_txt_url"
],
"properties": {
"f13": {
"type": "object",
"required": [
"latest_complete_quarter",
"in_progress_quarter",
"market_wide_quarters",
"earliest_quarter",
"note"
],
"properties": {
"note": {
"type": "string"
},
"earliest_quarter": {
"type": [
"string",
"null"
]
},
"in_progress_quarter": {
"type": [
"string",
"null"
]
},
"market_wide_quarters": {
"type": "array",
"items": {
"type": "object",
"required": [
"quarter",
"period",
"filers"
],
"properties": {
"filers": {
"type": "number"
},
"period": {
"type": "string"
},
"quarter": {
"type": "string"
}
},
"additionalProperties": false
}
},
"latest_complete_quarter": {
"type": "string"
}
},
"additionalProperties": false
},
"form4": {
"type": "object",
"required": [
"earliest_filed_date",
"latest_filed_at",
"latest_filed_date"
],
"properties": {
"latest_filed_at": {
"type": [
"string",
"null"
]
},
"latest_filed_date": {
"type": [
"string",
"null"
]
},
"earliest_filed_date": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"limits": {
"type": "object",
"required": [
"max_rows_per_call",
"requests_per_minute_per_ip"
],
"properties": {
"max_rows_per_call": {
"type": "number"
},
"requests_per_minute_per_ip": {
"type": "number"
}
},
"additionalProperties": false
},
"taiwan": {
"anyOf": [
{
"type": "object",
"required": [
"latest_dates",
"monthly_revenue",
"financials",
"companies_with_ai_profile",
"companies_with_production_sites",
"history",
"note"
],
"properties": {
"note": {
"type": "string"
},
"history": {
"type": "object",
"required": [
"daily_trading_since",
"monthly_revenue_since",
"financials_since",
"dividends_since"
],
"properties": {
"dividends_since": {
"type": "string"
},
"financials_since": {
"type": "string"
},
"daily_trading_since": {
"type": "string"
},
"monthly_revenue_since": {
"type": "string"
}
},
"additionalProperties": false
},
"financials": {
"anyOf": [
{
"type": "object",
"required": [
"latest_quarter",
"companies"
],
"properties": {
"companies": {
"type": "number"
},
"latest_quarter": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "The latest quarter (2026-q2 form) and how many companies have statements for it so far (MOPS covers every public company, including emerging-market ones the tw_ tools do not list)."
},
"latest_dates": {
"type": "object",
"required": [
"quotes",
"institutional",
"margin",
"foreign_holding"
],
"properties": {
"margin": {
"type": [
"string",
"null"
]
},
"quotes": {
"type": [
"string",
"null"
]
},
"institutional": {
"type": [
"string",
"null"
]
},
"foreign_holding": {
"type": [
"string",
"null"
]
}
},
"description": "The latest trading day loaded in each daily table.",
"additionalProperties": false
},
"monthly_revenue": {
"anyOf": [
{
"type": "object",
"required": [
"latest_month",
"companies"
],
"properties": {
"companies": {
"type": "number"
},
"latest_month": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "The latest month (YYYY-MM) and how many companies have reported it so far."
},
"companies_with_ai_profile": {
"type": [
"number",
"null"
]
},
"companies_with_production_sites": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Taiwan stocks (the tw_ tools); null until loaded."
},
"filings": {
"anyOf": [
{
"type": "object",
"required": [
"earliest_filed_date",
"latest_filed_date",
"last_updated",
"note"
],
"properties": {
"note": {
"type": "string"
},
"last_updated": {
"type": [
"string",
"null"
]
},
"latest_filed_date": {
"type": "string"
},
"earliest_filed_date": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"sources": {
"type": "string"
},
"website": {
"type": "string"
},
"congress": {
"type": "object",
"required": [
"earliest_filed_date",
"latest_filed_date",
"note"
],
"properties": {
"note": {
"type": "string"
},
"latest_filed_date": {
"type": [
"string",
"null"
]
},
"earliest_filed_date": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"docs_url": {
"type": "string"
},
"ownership": {
"type": "object",
"required": [
"schedule_13d",
"schedule_13g",
"form144",
"note"
],
"properties": {
"note": {
"type": "string"
},
"form144": {
"anyOf": [
{
"type": "object",
"required": [
"earliest_filed_date",
"latest_filed_at",
"latest_filed_date"
],
"properties": {
"latest_filed_at": {
"type": "string"
},
"latest_filed_date": {
"type": "string"
},
"earliest_filed_date": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"schedule_13d": {
"anyOf": [
{
"type": "object",
"required": [
"earliest_filed_date",
"latest_filed_at",
"latest_filed_date"
],
"properties": {
"latest_filed_at": {
"type": "string"
},
"latest_filed_date": {
"type": "string"
},
"earliest_filed_date": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"schedule_13g": {
"anyOf": [
{
"type": "object",
"required": [
"earliest_filed_date",
"latest_filed_at",
"latest_filed_date"
],
"properties": {
"latest_filed_at": {
"type": "string"
},
"latest_filed_date": {
"type": "string"
},
"earliest_filed_date": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"ats_weekly": {
"anyOf": [
{
"type": "object",
"required": [
"earliest_week_start",
"latest_week_start",
"last_updated",
"note"
],
"properties": {
"note": {
"type": "string"
},
"last_updated": {
"type": [
"string",
"null"
]
},
"latest_week_start": {
"type": "string"
},
"earliest_week_start": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"financials": {
"anyOf": [
{
"type": "object",
"required": [
"companies",
"latest_filed_date",
"last_updated",
"note"
],
"properties": {
"note": {
"type": "string"
},
"companies": {
"type": "number"
},
"last_updated": {
"type": [
"string",
"null"
]
},
"latest_filed_date": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"market_caps": {
"anyOf": [
{
"type": "object",
"required": [
"companies_with_market_cap",
"latest_close_date",
"last_updated",
"note"
],
"properties": {
"note": {
"type": "string"
},
"last_updated": {
"type": [
"string",
"null"
]
},
"latest_close_date": {
"type": [
"string",
"null"
]
},
"companies_with_market_cap": {
"type": "number"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"llms_txt_url": {
"type": "string"
},
"short_volume": {
"anyOf": [
{
"type": "object",
"required": [
"earliest_trade_date",
"latest_trade_date",
"last_updated",
"note"
],
"properties": {
"note": {
"type": "string"
},
"last_updated": {
"type": [
"string",
"null"
]
},
"latest_trade_date": {
"type": "string"
},
"earliest_trade_date": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"short_interest": {
"anyOf": [
{
"type": "object",
"required": [
"earliest_settlement_date",
"latest_settlement_date",
"last_updated",
"note"
],
"properties": {
"note": {
"type": "string"
},
"last_updated": {
"type": [
"string",
"null"
]
},
"latest_settlement_date": {
"type": "string"
},
"earliest_settlement_date": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"superinvestors": {
"type": "number"
},
"update_schedule": {
"type": "string"
},
"fails_to_deliver": {
"anyOf": [
{
"type": "object",
"required": [
"earliest_settlement_date",
"latest_settlement_date",
"last_updated",
"note"
],
"properties": {
"note": {
"type": "string"
},
"last_updated": {
"type": [
"string",
"null"
]
},
"latest_settlement_date": {
"type": "string"
},
"earliest_settlement_date": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"last_successful_update": {
"type": "object",
"required": [
"sec_filings",
"tickers",
"cusip_mapping",
"congress",
"company_filings",
"financials",
"finra",
"exchange_rates",
"market_caps"
],
"properties": {
"finra": {
"type": [
"string",
"null"
]
},
"tickers": {
"type": [
"string",
"null"
]
},
"congress": {
"type": [
"string",
"null"
]
},
"financials": {
"type": [
"string",
"null"
]
},
"market_caps": {
"type": [
"string",
"null"
]
},
"sec_filings": {
"type": [
"string",
"null"
]
},
"cusip_mapping": {
"type": [
"string",
"null"
]
},
"exchange_rates": {
"type": [
"string",
"null"
]
},
"company_filings": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Livermore (livermore.club) is a free website with US stock data from first-hand public filings and releases: insider trades (SEC Form 4), institutional holdings (SEC 13F, including a curated list of superinvestors), holders of more than 5% (Schedule 13D and 13G), insiders' proposed sales (Form 144), stock trades by politicians (members of the U.S. Congress: House and Senate periodic transaction reports), company filings (10-K, 10-Q, 8-K with item codes, 20-F, 40-F), financial statements from XBRL (income statement, balance sheet, cash flow), short-selling data (FINRA short interest, daily short volume and weekly ATS volume, SEC fails-to-deliver) and each company's market cap (the latest daily close times the shares outstanding on its 10-K or 10-Q cover page). It also covers Taiwan stocks through the tw_ tools (see below). All tools are read-only. Start with `search` to turn a company, fund, person or politician into a ticker, CIK or bioguide ID. get_data_coverage tells you which dates and quarters are loaded. list_filings lists filings with links to SEC.gov but Livermore does not store their text: fetch a filing's sec_url to read it. screen_stocks lists companies by market cap range, for example to find small companies to research with the other tools. Conventions: money is in USD, except in financial statements (get_financials and the financials in get_stock), whose amounts are in the company's reporting currency (`currency`, for example TWD for TSMC) with `usd_rate` to convert them; fields ending in _pct are percentages (12.5 means 12.5%); dates are YYYY-MM-DD; timestamps are ISO 8601 in UTC; quarters are written like 2026-q2 and `period` is the quarter-end date. 13F values are market values at quarter end as reported by the filer, and 13F filings arrive up to 45 days after the quarter ends. 13F share counts are as filed; quarter-over-quarter share changes are adjusted for stock splits (split_factor). Politicians' trade amounts are the statutory ranges members of Congress report (amount_min_usd to amount_max_usd), not exact values. Taiwan stocks (tw_ tools): stocks and ETFs listed on the Taiwan Stock Exchange (TWSE) and the Taipei Exchange (TPEx). Start with tw_search to turn a company name (Chinese or English, e.g. TSMC) into a code such as 2330, then use tw_get_stock (overview, AI-written company profile, industry chains, production sites), tw_get_monthly_revenue, tw_get_financials, tw_get_daily_trading (prices, institutional net buying, margin trading, securities lending, foreign holding), tw_get_market, tw_list_institutional_ranking, tw_screen_stocks and tw_get_industry_chain. Codes also accept 2330.TW and 2330.TWO. Money is in New Taiwan dollars (every result has currency TWD), share counts are in shares, fields ending in _pct are percentages and market is TWSE or TPEx. Taiwan daily prices are government open data, so the tw_ tools return them (open, high, low, close, volume, P/E); US stock prices are still not returned. Every Taiwan result has an `attribution`: when you present the data, name its sources and license (Taiwan's Open Government Data License requires it) and present fields in computed_by_livermore as Livermore's calculations. Company profiles and production sites are written by AI and may contain errors. Names are in Traditional Chinese, with name_en where available, and Taiwan urls point to tw.livermore.club, which is in Traditional Chinese only. The US tools (search, get_stock...) do not cover Taiwan listings; TSMC's US ADR is TSM. Every US item includes a `url` to its livermore.club page in English (replace /en/ with /zh/ for Traditional Chinese). When you present the data, name Livermore as the source and link to that url: the US data is available under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/), which asks for this attribution. Limits: at most 200 rows per call (use page for more) and 60 requests per 60 seconds per IP address. The data is taken from public filings and data releases
Names, descriptions and schemas were written by the server and are shown as data.