get consensus ratings stream.
websocket/v1
:Name | Location | Type | Required | Description |
---|---|---|---|---|
token | query | string | Yes | Benzinga websocket token (bz.production***). |
tickers | query | string | Optional | List of tickers you want to subscribe for. Seperated by comma. |
isins | query | string | Optional | List of isins you want to filter by. Seperated by comma. |
simplify | query | string | Optional | Simplify the ratings to Buy, Hold, Sell. |
aggregate_type | query | string | Optional | Aggregate by which is either number or percentage |
application/json
Property | Type | Description |
---|---|---|
id | string | Unique UUID for the websocket response |
api_version | string | Websocket API version |
kind | string | Websocket connection stream type |
data | object | Contains the ratings data. See below for properties. |
Property | Type | Description |
---|---|---|
action | string | Websocket data action i.e., created, updated, deleted |
id | string | Data ID for the rating |
content | object | Details about the ratings. See ratings for more properties. |
timestamp | string | Timestamp of the data |
Property | Type | Description |
---|---|---|
strong_buy | int | Total strong_buy count/percentage |
buy | int | Total buy count/percentage |
hold | int | Details about the ratings. See ratings for more properties. |
sell | int | Timestamp of the data |
strong_sell | int | Timestamp of the data |
Property | Type | Description |
---|---|---|
aggregate_ratings | object | Contains all the ratings categorized by SELL, HOLD, BUY |
aggregate_type | string | Type of aggregation, Number or Percentage |
consensus_price_target | string | Average price target |
consensus_rating | string | Scale value, SELL, HOLD, BUY |
consensus_rating_val | string | Value in float |
high_price_target | string | Highest price target in the specific timeline |
low_price_target | string | Lowest price target in the specific timeline |
total_analyst_count | string | Total analyst ratings in the timeline |
unique_analyst_count | string | Unique analyst count in the timeline |
updated_at | string | Last updated timestamp in UTC |
101
- Websocket connection established successfully.401
- Invalid token, check the token provided.502
- Either invalid route or server error.