GET
/
bars
curl --request GET \
  --url https://api.benzinga.com/api/v2/bars
[
  {
    "symbol": "string",
    "interval": "number",
    "candles": [
      {
        "open": "number (float)",
        "high": "number (float)",
        "low": "number (float)",
        "close": "number (float)",
        "volume": "integer",
        "time": "integer",
        "dateTime": "string (YYYY-MM-DDTHH:MM:SS.mmm-ZZ:zz)"
      }
    ]
  }
]

Authorizations

token
string
queryrequired

Headers

accept
enum<string>
default: application/json

Specify return format.

Available options:
application/json,
application/xml (deprecated)

Query Parameters

symbols
string

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

from
string

Date to query from point in time. Sorted by published date. If "YTD" Sets from to the first trading day of the current year. Some other valid values: "1MONTH", "1m", "1M" (all meaning "1 month from today"), "1d", "1D" (both meaning "1 day from today").

to
string

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

interval
string

The candle intervals to use, i.e., 5 minute bars, daily bars, etc. Some valid values: 1MONTH, 1W, 1D, 1H (1 hour), 2H, 3H, 4H, 5M (5 minutes), 10M, 15M, 30M. 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.

Response

200 - */*
symbol
string

The given symbol

interval
number

The candle interval

candles
object[]

An array of bar data / candles