Historical Bar Data API Reference

Free Trial ➡

Benzinga Historical Bar Rest API

API Endpoint
https://api.benzinga.com/api/v2
Schemes

https, http

Version

1.0

Authentication

token authentication

Type:
apiKey
Name:
token
In:
query

Playground

Endpoints

GET /bars

Get the delayed quotes.

Parameters

NameTypeLocationDescription
acceptstring , x ∈ { application/json , application/xml }header

Specify return format.

symbolsstring (csv)query

One or more comma separated symbols to specify companies to get data for.

fromstring (yyyy-mm-dd)query

Date to query from point in time. Sorted by published date. If "YTD" Sets from to the first trading day of the current year.

tostring (yyyy-mm-dd)query

Date to query to point in time. Sorted by published date.

intervalstringquery

The candle intervals to use, i.e., 5 minute bars, daily bars, etc. Some valid values: 1MONTH, 1W, 1D, 5M (5 minutes), 10M, 15M, 30M, 1H (1 hour), 2H, 3H, 4H Defaults to an appropriate value based on the period of data requested: i.e., 5 minutes bars if less than 5 days, daily bars if greater.

Responses

CodeModelDescription
200 OKBarsResponse

Successful response

Response (200 OK)

[
  {
    "symbol": "string",
    "interval": "number",
    "candles": [
      {
        "open": "number (float)",
        "high": "number (float)",
        "low": "number (float)",
        "close": "number (float)",
        "volume": "integer",
        "time": "integer",
        "dateTime": "string"
      }
    ]
  }
]

Models

BarsResponse: object

PropertyTypeDescription
symbolstring

The given symbol

intervalnumber

The candle interval

candlesobject[]

An array of bar data / candles

candles[].opennumber (float)

Price at same day market open

candles[].highnumber (float)

Indicator of highest price of security for same day

candles[].lownumber (float)

Indicator of lowest price of security for same day

candles[].closenumber (float)

Price at same day close. Only available after market close.

candles[].volumeinteger

Volume for the current or previous regular-only trading session

candles[].timeinteger

Unix timestamp in millis.

candles[].dateTimestring

Datetime is aligned to the start or the candle, or to the start of the pre-market session if a daily.

Structure (JSON)
{
  "symbol": "string",
  "interval": "number",
  "candles": [
    {
      "open": "number (float)",
      "high": "number (float)",
      "low": "number (float)",
      "close": "number (float)",
      "volume": "integer",
      "time": "integer",
      "dateTime": "string"
    }
  ]
}