All URIs are relative to https://api-v2.intrinio.com
Method | HTTP request | Description |
---|---|---|
get_all_etfs | GET /etfs | All ETFs |
get_etf | GET /etfs/{identifier} | Lookup ETF |
get_etf_analytics | GET /etfs/{identifier}/analytics | ETF Analytics |
get_etf_holdings | GET /etfs/{identifier}/holdings | ETF Holdings |
get_etf_stats | GET /etfs/{identifier}/stats | Exchange Traded Fund (ETF) stats |
search_etfs | GET /etfs/search | Search ETFs |
View Intrinio API Documentation
ApiResponseETFs get_all_etfs(exchange=exchange, page_size=page_size, next_page=next_page)
Returns a list of all currently listed ETFs, with relevant identification information including the ETF Name, Ticker, FIGI Ticker, and Exchange MIC for further usage with our ETF Metadata, Holdings, Stats, and Analytics offerings.
from __future__ import print_function
import time
import intrinio_sdk as intrinio
from intrinio_sdk.rest import ApiException
intrinio.ApiClient().set_api_key('YOUR_API_KEY')
intrinio.ApiClient().allow_retries(True)
exchange = 'XNAS'
page_size = 100
next_page = ''
response = intrinio.ETFsApi().get_all_etfs(exchange=exchange, page_size=page_size, next_page=next_page)
print(response)
# Note: For a Pandas DataFrame, import Pandas and use pd.DataFrame(response.property_name_dict)
Name | Type | Description | Notes |
---|---|---|---|
exchange | str | [optional] | |
page_size | int | The number of results to return | [optional] [default to 100] |
next_page | str | Gets the next page of data from a previous API call | [optional] |
View Intrinio API Documentation
ETF get_etf(identifier)
Returns classifications and reference data which consists of ~90 columns that give detailed information about an ETF. These granular details include asset class, expense ratio, index name, index weighting scheme, smart beta type and specific investment objectives.
from __future__ import print_function
import time
import intrinio_sdk as intrinio
from intrinio_sdk.rest import ApiException
intrinio.ApiClient().set_api_key('YOUR_API_KEY')
intrinio.ApiClient().allow_retries(True)
identifier = 'SPY'
response = intrinio.ETFsApi().get_etf(identifier)
print(response)
# Note: For a Pandas DataFrame, import Pandas and use pd.DataFrame(response.property_name_dict)
Name | Type | Description | Notes |
---|---|---|---|
identifier | str | An ETF identifier (Ticker, Figi Ticker, ISIN, RIC, Intrinio ID) |
View Intrinio API Documentation
ETFAnalytics get_etf_analytics(identifier)
Returns latest market analytics for a specified US ETF, including volume, trailing volume, market cap, 52 week high, and 52 week low.
from __future__ import print_function
import time
import intrinio_sdk as intrinio
from intrinio_sdk.rest import ApiException
intrinio.ApiClient().set_api_key('YOUR_API_KEY')
intrinio.ApiClient().allow_retries(True)
identifier = 'SPY'
response = intrinio.ETFsApi().get_etf_analytics(identifier)
print(response)
# Note: For a Pandas DataFrame, import Pandas and use pd.DataFrame(response.property_name_dict)
Name | Type | Description | Notes |
---|---|---|---|
identifier | str | An ETF identifier (Ticker, Figi Ticker, ISIN, RIC, Intrinio ID) |
View Intrinio API Documentation
ApiResponseETFHoldings get_etf_holdings(identifier, page_size=page_size, next_page=next_page)
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.
from __future__ import print_function
import time
import intrinio_sdk as intrinio
from intrinio_sdk.rest import ApiException
intrinio.ApiClient().set_api_key('YOUR_API_KEY')
intrinio.ApiClient().allow_retries(True)
identifier = 'SPY'
page_size = 100
next_page = ''
response = intrinio.ETFsApi().get_etf_holdings(identifier, page_size=page_size, next_page=next_page)
print(response)
# Note: For a Pandas DataFrame, import Pandas and use pd.DataFrame(response.property_name_dict)
Name | Type | Description | Notes |
---|---|---|---|
identifier | str | An ETF identifier (Ticker, Figi Ticker, ISIN, RIC, Intrinio ID) | |
page_size | int | The number of results to return | [optional] [default to 100] |
next_page | str | Gets the next page of data from a previous API call | [optional] |
View Intrinio API Documentation
ETFStats get_etf_stats(identifier)
Returns comprehensive key US ETF performance statistics, including prices, NAVs, flows, returns, and much more for both trailing and calendar year periods.
from __future__ import print_function
import time
import intrinio_sdk as intrinio
from intrinio_sdk.rest import ApiException
intrinio.ApiClient().set_api_key('YOUR_API_KEY')
intrinio.ApiClient().allow_retries(True)
identifier = 'SPY'
response = intrinio.ETFsApi().get_etf_stats(identifier)
print(response)
# Note: For a Pandas DataFrame, import Pandas and use pd.DataFrame(response.property_name_dict)
Name | Type | Description | Notes |
---|---|---|---|
identifier | str | An ETF identifier (Ticker, Figi Ticker, ISIN, RIC, Intrinio ID) |
View Intrinio API Documentation
ApiResponseETFs search_etfs(query, mode=mode)
Accepts a string of keyword combinations, and searches across the ETF name and ticker and returns a list of ETFs with related keywords.
from __future__ import print_function
import time
import intrinio_sdk as intrinio
from intrinio_sdk.rest import ApiException
intrinio.ApiClient().set_api_key('YOUR_API_KEY')
intrinio.ApiClient().allow_retries(True)
query = 'iShares'
mode = ''
response = intrinio.ETFsApi().search_etfs(query, mode=mode)
print(response)
# Note: For a Pandas DataFrame, import Pandas and use pd.DataFrame(response.property_name_dict)
Name | Type | Description | Notes |
---|---|---|---|
query | str | ||
mode | str | When set, changes search mode to the specified mode. Paging is not available in rank_order. | [optional] |