ETF Holdings

ETF Holdings Ruby API Documentation

Returns holdings data that details all the constituent securities in each ETF with names, identifiers, and the weights for each security providing granular level transparency.

API Class:
Intrinio::ETFsApi
Instance Method:
get_etf_holdings()

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
eTFs_api = Intrinio::ETFsApi.new
identifier = "SPY"
opts = {
page_size: 100,
next_page: nil
}
result = eTFs_api.get_etf_holdings(identifier, opts)
pp result
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierStringAn ETF identifier (Ticker, Figi Ticker, ISIN, RIC, Intrinio ID) 
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::ApiResponseETFHoldings

Properties

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

Properties

NameTypeDescription
as_of_dateDateThe date on which the holding and their weights correspond  
nameStringThe common name for the holding  
tickerStringThe common exchange ticker for the holding  
typeStringThe type of instrument for this holding. Examples (Bond = 'BOND', Equity = 'EQUI', Options = ‘OPTN')  
composite_figiStringDEPRECATED  
share_class_figiStringThe OpenFIGI symbol for the holding  
isinStringInternational Securities Identification Number (ISIN) for the holding  
ricStringReuters Instrument Code (RIC) for the holding  
sedolStringStock Exchange Daily Official List (SEDOL) for the holding  
faceFloatFace value of the debt security, if available  
couponFloatCoupon rate of the debt security, if available  
market_value_heldFloatThe market value of this holding in the ETF as of the `as_of_date`  
notional_valueFloatNotional value of derivatives contracts held in the Exchange Traded Fund (ETF) or Exchange Traded Note (ETN)  
maturityDateMaturity date for the debt security, if available  
quantity_heldFloatNumber of units of the security held if available  
weightingFloatFraction of the funds market value held  
quantity_unitsFloatThe unit of the `quanity_held` field. Examples ('oz', 'shares', ‘contracts')  
quantity_per_shareFloatNumber of units of the security held per units of shares outstanding of the Exchange Traded Fund (ETF), if available  
contract_expiry_dateDateExpiry date for the futures contract held in the Exchange Traded Fund (ETF) or Exchange Traded Note (ETN)  
object
Intrinio::ETFSummary

Properties

NameTypeDescription
idStringThe Intrinio ID of the ETF  
nameStringThe common name of the ETF  
tickerStringThe common ticker symbol for the ETF  
figi_tickerStringThe OpenFIGI ticker for the ETF  
ricStringReuters Instrument Code (RIC) for the ETF  
isinStringInternational Securities Identification Number (ISIN) for the ETF  
sedolStringStock Exchange Daily Official List (SEDOL) for the ETF  
exchange_micStringThe exchange Market Identifier Code (MIC) from the International Standards Organization (ISO)