Daily prices (IEX only)
stock_pricesDaily open, high, low, close and volume of one listing of a company, newest session first, built from trades executed at IEX only. IEX is a single exchange with a small share of US volume: this is not the consolidated tape, close is the last IEX trade of the session and not the official closing price, volume is IEX volume only, and nothing is adjusted for splits or dividends. Say so when you quote a number, and show the citation in meta.attribution. For P/E, market capitalisation and other multiples use ratios_daily, which pairs each close with the facts known that day and withholds points after a likely split. ticker picks another listing of the company; from and to bound the session dates; as_of replays what was known on a date; cursor pages. Every number carries a proof naming the IEX session file it was read from.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"limit": 5,
"company": "ticker:AAPL"
},
"name": "stock_prices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last session date, inclusive (YYYY-MM-DD). | |
| from | No | First session date, inclusive (YYYY-MM-DD). | |
| as_of | No | Knowledge date or timestamp (YYYY-MM-DD or RFC 3339). The answer is what FinancialMD knew at that instant: only facts whose known interval contains as_of. Omit for the current view. | |
| limit | No | Maximum number of periods or items to return (default 30, at most 1000). | |
| adjust | No | splits: each bar also carries split_adjusted values (confirmed splits after the session only); total_return: also total_return values, dividends reinvested at the IEX close before each ex-date (only dividends with an ex-date in the filings). | none |
| cursor | No | Opaque cursor from a previous page (data.next_cursor). | |
| ticker | No | Optional ticker of another listing of the same company (BRK.B). Default: the ticker in company, else the primary listing. | |
| company | Yes | Company identifier: a FinancialMD id ("fmd_01H..."), an SEC CIK ("cik:320193"), or a ticker ("ticker:AAPL", optionally with the MIC "ticker:AAPL.XNAS"). A bare ticker like "AAPL" is accepted and sent as ticker:AAPL. An issuer on an EU or UK regulated market that does not file with the SEC has no CIK: pass its LEI ("lei:IOG4E947OATN0KJYSD45") or its fmd_ id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | { items: [{ date, open, high, low, close, volume, has_broken_print }], next_cursor, listing: { ticker, mic, currency, is_primary } | null, listings, source: { id, venue, consolidated: false, adjusted: false, attribution, attribution_url, notes }, range: { from, to, sessions } }; open, high, low, close and volume are value objects. meta.attribution carries the citation the venue requires. | |
| meta | No | Request metadata: request_id, as_of, company resolution, coverage, pipeline_version, licence, terms, proof_base. | |
| error | No | Present only on isError results: the API error code and message plus remedy hints. |