Zacks Analyst Ratings

Zacks Analyst Ratings Ruby API Documentation

This database offers consensus analyst recommendations for over 5,000 US and Canadian listed companies.

API Class:
Intrinio::ZacksApi
Instance Method:
get_zacks_analyst_ratings()

Stock Price Code Example

Use my API Key
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
zacks_api = Intrinio::ZacksApi.new
opts = {
identifier: "AAPL",
start_date: nil,
end_date: nil,
mean_greater: nil,
mean_less: nil,
strong_buys_greater: nil,
strong_buys_less: nil,
buys_greater: nil,
buys_less: nil,
holds_greater: nil,
holds_less: nil,
sells_greater: nil,
sells_less: nil,
strong_sells_greater: nil,
strong_sells_less: nil,
total_greater: nil,
total_less: nil,
page_size: 100,
next_page: nil
}
result = zacks_api.get_zacks_analyst_ratings(opts)
pp result
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierStringA Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)[optional]  
start_dateDateLimit ratings to those on or after this date[optional]  
end_dateDateLimit ratings to those on or before this date[optional]  
mean_greaterFloatReturn only records with a mean (average) higher than this value[optional]  
mean_lessFloatReturn only records with a mean (average) lower than this value[optional]  
strong_buys_greaterIntegerReturn only records with more than this many Strong Buy recommendations[optional]  
strong_buys_lessIntegerReturn only records with fewer than this many Strong Buy recommendations[optional]  
buys_greaterIntegerReturn only records with more than this many Buy recommendations[optional]  
buys_lessIntegerReturn only records with fewer than this many Buy recommendations[optional]  
holds_greaterIntegerReturn only records with more than this many Hold recommendations[optional]  
holds_lessIntegerReturn only records with fewer than this many Hold recommendations[optional]  
sells_greaterIntegerReturn only records with more than this many Sell recommendations[optional]  
sells_lessIntegerReturn only records with fewer than this many Sell recommendations[optional]  
strong_sells_greaterIntegerReturn only records with more than this many Strong Sell recommendations[optional]  
strong_sells_lessIntegerReturn only records with fewer than this many Strong Sell recommendations[optional]  
total_greaterIntegerReturn only records with more than this many recommendations, regardless of type[optional]  
total_lessIntegerReturn only records with fewer than this many recommendations, regardless of type[optional]  
page_sizeIntegerThe number of results to return[optional] [default to 100]  
next_pageStringGets the next page of data from a previous API call[optional]  

Return Type

object
Intrinio::ApiResponseZacksAnalystRatings

Properties

NameTypeDescription
analyst_ratingsArray 
next_pageStringThe token required to request the next page of the data. If null, no further results are available.  
object
Intrinio::ZacksAnalystRating

Properties

NameTypeDescription
idStringThe Intrinio ID for the record  
dateDateThe date of the Zacks Analyst Rating.  
meanFloatThe mean (average) weighing of analyst recommendations, from 1 (strong buy) to 5 (strong sell).  
strong_buysIntegerThe number of analysts recommending Strong Buy.  
buysIntegerThe number of analysts recommending Buy.  
holdsIntegerThe number of analysts recommending Hold.  
sellsIntegerThe number of analysts recommending Sell.  
strong_sellsIntegerThe number of analysts recommending Strong Sell.  
totalIntegerThe total number of analyst recommendations.  
securitySecuritySummaryThe Security of the Zacks Analyst Rating  
object
Intrinio::SecuritySummary

Properties

NameTypeDescription
idStringThe Intrinio ID for Security  
company_idStringThe Intrinio ID for the Company for which the Security is issued  
exchangeStringThe exchange's MIC  
exchange_micStringThe security's exchange MIC  
stock_exchange_idStringThe exchange's Intrinio ID  
nameStringThe name of the Security  
codeStringA 2-3 digit code classifying the Security (reference)  
currencyStringThe currency in which the Security is traded on the exchange  
tickerStringThe common/local ticker of the Security  
composite_tickerStringThe country-composite ticker of the Security  
figiStringThe OpenFIGI identifier  
composite_figiStringThe country-composite OpenFIGI identifier  
share_class_figiStringThe global-composite OpenFIGI identifier  
primary_listingBOOLEANIf true, the Security is the primary issue for the company, otherwise it is a secondary issue on a secondary stock exchange