Weekly return series
weekly_returnsGet weekly return series for US stocks and ETFs, aligned to common Fridays, for custom correlation and risk calculations. Covers ~4,700 US-listed tickers; resolve unknown symbols first.
Instructions
Weekly return series for one US stock or ETF (W-FRI, most recent last, all series end on the same Friday so tails align across symbols), for custom correlation or risk math. Covers ~4,700 US-listed stocks and ETFs only (no crypto, no foreign listings, no inverse/leveraged short funds, no intraday data); figures use weekly closes and refresh once per trading day. Unknown tickers return an error: resolve them with resolve_symbol first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| weeks | No | Only return the most recent N weeks (default: all, up to 156) | |
| symbol | Yes | Ticker, e.g. AAPL |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docs | No | ||
| freq | No | ||
| as_of | Yes | ||
| terms | No | ||
| symbol | Yes | ||
| returns | Yes | ||
| window_weeks | No |