All Securities

All Securities Ruby API Documentation

Returns a list of all securities available. Delisted securities included.

API Class:
Intrinio::SecurityApi
Instance Method:
get_all_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
opts = {
active: true,
delisted: false,
code: nil,
currency: nil,
ticker: nil,
name: nil,
composite_mic: nil,
exchange_mic: nil,
stock_prices_after: nil,
stock_prices_before: nil,
cik: nil,
figi: nil,
composite_figi: nil,
share_class_figi: nil,
figi_unique_id: nil,
include_non_figi: false,
page_size: 100,
primary_listing: nil,
next_page: nil
}
result = security_api.get_all_securities(opts)
pp result
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
activeBOOLEANWhen true, return securities that are active. When false, return securities that are not active. A security is considered active if it has traded or has had a corporate action in the past 30 days, and has not been merged into another security (such as due to ticker changes or corporate restructurings).[optional]  
delistedBOOLEANWhen true, return securities that have been delisted from their exchange. Note that there may be a newer security for the same company that has been relisted on a differente exchange. When false, return securities that have not been delisted.[optional]  
codeStringReturn securities classified with the given code (reference).[optional]  
currencyStringReturn securities traded in the given 3-digit ISO 4217 currency code (reference).[optional]  
tickerStringReturn securities traded with the given ticker. Note that securities across the world (and through time) may trade with the same ticker but represent different companies. Use this in conjuction with other parameters for more specificity.[optional]  
nameStringReturn securities with the given text in their name (not case sensitive).[optional]  
composite_micStringReturn securities classified under the composite exchange with the given Market Identification Code (MIC). A composite exchange may or may not be a real exchange. For example, the USCOMP exchange (our only composite exchange to date) is a combination of exchanges with the following MICs: ARCX, XASE, XPOR, FINR, XCIS, XNAS, XNYS, BATS. This composite grouping is done for user convenience. At this time, all US securities are classified under the composite exchange with MIC USCOMP. To query for specific US exchanges, use the exchange_mic parameter below.[optional]  
exchange_micStringThe MIC code of the exchange where the security is actually traded.[optional]  
stock_prices_afterDateReturn securities with end-of-day stock prices on or after this date.[optional]  
stock_prices_beforeDateReturn securities with end-of-day stock prices on or before this date.[optional]  
cikStringReturn securities belonging to the company with the given Central Index Key (CIK).[optional]  
figiStringReturn securities with the given Exchange Level FIGI (reference).[optional]  
composite_figiStringReturn securities with the given Country Composite FIGI (reference).[optional]  
share_class_figiStringReturn securities with the given Global Share Class FIGI (reference).[optional]  
figi_unique_idStringReturn securities with the given FIGI Unique ID (reference).[optional]  
include_non_figiBOOLEANWhen true, include securities that do not have a FIGI. By default, this is false. If this parameter is not specified, only securities with a FIGI are returned.[optional] [default to false]  
page_sizeIntegerThe number of results to return[optional] [default to 100]  
primary_listingBOOLEANIf true, the Security is the primary issue for the company, otherwise it is a secondary issue on a secondary stock exchange. Returns both if omitted.[optional]  
next_pageStringGets the next page of data from a previous API call[optional]  

Return Type

object
Intrinio::ApiResponseSecurities

Properties

NameTypeDescription
securitiesArray 
next_pageStringThe token required to request the next page of the data. If null, no further results are available.  
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