Screen Securities

Screen Securities Ruby API Documentation

Screen Securities using complex logic. Use POST only. See screener documentation for details on how to construct conditions.

API Class:
Intrinio::SecurityApi
Instance Method:
screen_securities()

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
security_api = Intrinio::SecurityApi.new
clauses = [
{
"field": "marketcap",
"operator": "gt",
"value": "10000000"
},
{
"field": "beta",
"operator": "lt",
"value": "5"
}
]
opts = {
logic: Intrinio::SecurityScreenGroup.new(operator: "AND", clauses: clauses),
order_column: "marketcap",
order_direction: "asc",
primary_only: false,
page_size: 100
}
result = security_api.screen_securities(opts)
pp result
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
logicSecurityScreenGroupThe logic to screen with, consisting of operators, clauses, and nested groups.
See screener documentation for details on how to construct conditions.
[optional]  
order_columnStringResults returned sorted by this column[optional]  
order_directionStringSort order to use with the order_column[optional] [default to asc]  
primary_onlyBOOLEANReturn only primary securities[optional] [default to false]  
page_sizeIntegerThe number of results to return. Maximum for this endpoint is 50000.[optional] [default to 100]  

Return Type

object
Array<Intrinio::SecurityScreenResult>

Properties

NameTypeDescription
securitySecuritySummary 
dataArray 
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  
object
Intrinio::SecurityScreenResultData

Properties

NameTypeDescription
tagStringThe data tag that was screened-for  
number_valueStringThe numeric value for the tag  
text_valueStringThe text value for the tag