Stock quotes
market_quotesFetch historical best bid and ask quotes for US stocks, with prices in USD and sizes in shares. Window by time range or lookback and query stored large results.
Instructions
Historical best bid and ask quotes for US stocks (prices USD, sizes in shares), one row per quote (Alpaca's round lots before 2025-11-03 are converted at 100 shares). A side with no active quote is null (no_data), never 0. Window by start/end or lookback (default PT20M); quotes are dense, keep windows short. Large results are stored, not shown: you get a result_id to query with results_query.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Window end (same format). Default: now (Alpaca's latest available). | |
| sort | No | Time order of the rows: asc (oldest first, default) or desc (newest first). | asc |
| start | No | Window start: ISO date (00:00 UTC) or datetime with a zone, e.g. 2026-01-02T14:30:00Z. | |
| tickers | Yes | Stock tickers, e.g. ["AAPL", "BRK-B"] (1-200). | |
| lookback | No | Window length back from end as an ISO-8601 duration (P5D, P1Y, PT20M); only when start is omitted. Default PT20M. | |
| page_token | No | Continue a truncated fetch: the page_token from the previous response's pagination. |