Get Stock Trades
get_stock_tradesRetrieve historical stock trades for one or more symbols, with configurable time windows, relative lookback, and feed options for market analysis.
Instructions
Retrieve historical trade data for one or more stocks.
When start is omitted, it is automatically computed as now minus the days/hours/minutes lookback.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Inclusive end time (RFC 3339). Omit for current time. | |
| asof | No | As-of date (YYYY-MM-DD) for point-in-time symbol mapping. | |
| days | No | Days to look back when start is omitted (default 0). | |
| feed | No | 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. | |
| sort | No | Timestamp sort order — "asc" (default) or "desc". | asc |
| hours | No | Additional hours in the lookback (default 0). | |
| limit | No | Max total data points returned across all symbols, 1–10000 (default 1000). | |
| start | No | Inclusive start time (RFC 3339). Omit to use relative lookback. | |
| minutes | No | Additional minutes in the lookback (default 20). | |
| symbols | Yes | Comma-separated tickers (e.g. "AAPL" or "AAPL,MSFT"). | |
| currency | No | Price currency (ISO 4217). Default USD. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||