Lookup Security

Lookup Security Ruby API Documentation

Returns security reference data such as ticker, FIGI, primary exchange, CIK, and a unique security identifier.

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

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
identifier = "AAPL"
result = security_api.get_security_by_id(identifier)
pp result
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierStringA Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) 

Return Type

object
Intrinio::Security

Properties

NameTypeDescription
idStringThe Intrinio ID for the Security  
company_idStringThe Intrinio ID for the company for which the Security is issued  
nameStringThe name of the Security  
typeStringThe Security's type  
codeStringA 2-3 digit code classifying the Security (reference)  
share_classStringThe Security's share class (if applicable)  
currencyStringThe currency in which the Security is traded on the exchange  
round_lot_sizeFloatThe normal unit of trading  
tickerStringThe common ticker  
exchange_tickerStringThe exchange-level ticker  
composite_tickerStringThe country-composite ticker  
alternate_tickersArrayAlternate formats of the common ticker  
figiStringThe exchange-level OpenFIGI identifier  
cikStringCentral Index Key issued by the SEC, which is the unique identifier for all owner filings  
composite_figiStringThe country-composite OpenFIGI identifier  
share_class_figiStringThe global-composite OpenFIGI identifier  
figi_uniqueidStringThe OpenFIGI unique ID  
activeBOOLEANIf true, the Security is active and has been recently traded  
etfBOOLEANIf true, this Security is an ETF  
delistedBOOLEANIf true, the Security is no longer traded on the exchange  
primary_listingBOOLEANIf true, the Security is the primary issue for the company, otherwise it is a secondary issue on a secondary stock exchange  
primary_securityBOOLEANIf true, the Security is considered by Intrinio to be the primary Security for its company  
first_stock_priceDateThe date of the first recorded stock price  
last_stock_priceDateThe date of the last recorded stock price (or the most recent trading day)  
last_stock_price_adjustmentDateThe date of the last stock price adjustment (dividend, split, etc)  
last_corporate_actionDateThe date of the last corporate action  
previous_tickersArrayPrevious tickers used by this security  
listing_exchange_micStringThe MIC code of the exchange on which this security primarily trades