Price returns and drawdowns
price_returnsReturn a company's price return, total return and maximum drawdown over standard windows (1m, 3m, 6m, ytd, 1y, 3y, 5y, max), computed by us from end-of-day bars built from trades at IEX only and from the splits and dividends in the company's SEC filings. Each value lists the bars and filing facts it used. Prices are end of day, published the day after the session: not real time, not the consolidated tape, not the official close. A window that starts before our first session is null. Use it when asked how a stock has performed or how far it fell from a peak.
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": {
"company": "ticker:AAPL",
"windows": "ytd,1y"
},
"name": "price_returns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last session to use; default the newest (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. | |
| ticker | No | One listing of the company; default 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. | |
| windows | No | Comma-separated windows from 1m, 3m, 6m, ytd, 1y, 3y, 5y, max; default all. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | { listing, range, windows: [{ window, start, end, sessions, price_return, total_return, annualised_total_return, max_drawdown, drawdown { peak, trough } }], source { venue, consolidated, delay }, generated_by, method_version, note } | |
| 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. |