Get Stock Quotes
get_stock_quotesRetrieve historical bid/ask quotes for stocks with flexible time ranges and data feed options.
Instructions
Retrieve historical bid/ask quotes (level 1) for one or more stocks.
When start is omitted, it is automatically computed as now minus the days/hours/minutes lookback.
Args: symbols: Comma-separated tickers (e.g. "AAPL" or "AAPL,MSFT"). start: Inclusive start time (RFC 3339). Omit to use relative lookback. end: Inclusive end time (RFC 3339). Omit for current time. days: Days to look back when start is omitted (default 0). hours: Additional hours in the lookback (default 0). minutes: Additional minutes in the lookback (default 20). limit: Max total data points returned across all symbols, 1–10000 (default 1000). feed: Data feed — "sip" (all US exchanges, default, paid), "iex" (free tier), "otc", or "boats". Paper/free accounts must set feed="iex" to avoid 403 errors. currency: Price currency (ISO 4217). Default USD. sort: Timestamp sort order — "asc" (default) or "desc". asof: As-of date (YYYY-MM-DD) for point-in-time symbol mapping.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbols | Yes | ||
| start | No | ||
| end | No | ||
| days | No | ||
| hours | No | ||
| minutes | No | ||
| limit | No | ||
| feed | No | ||
| currency | No | ||
| sort | No | asc | |
| asof | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||