Historical Price Bars
Retrieves historical OHLCV (Open, High, Low, Close, Volume) price bar data for specified securities. Returns aggregated price data based on the specified interval. Supports multiple ticker symbols and various time ranges including relative dates.
Request
- Base URLhttps://api.benzinga.com
- AuthAPI key in header Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Comma-separated list of stock ticker symbols (e.g., AAPL,MSFT,TSLA). Required.
Start date/time for bars. Formats: YYYY-MM-DD, YYYY-MM-DDTHH:MM:SS, YTD (year-to-date), or relative values like 1MONTH/1m/1M, 1WEEK/1w/1W, 1DAY/1d/1D. Required.
End date/time for bars. Format: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS. Defaults to current date/time if not specified.
Time bucket interval for aggregating price bars. Supported values: 1m (1 minute), 5m (5 minutes), 15m (15 minutes), 30m (30 minutes), 1h (1 hour), 1d (1 day), 1w (1 week), 1M (1 month). Default: 1d
Trading session filter. Supported values: ANY (all sessions), PRE_MARKET (pre-market trading), REGULAR (regular trading hours), AFTER_MARKET (after-hours trading). Default: ANY
Response
Array of chart data with OHLCV bars for each symbol
Changes
No recorded changes to this operation across all 1 revision of this API.