Skip to content

Latest commit

 

History

History
552 lines (350 loc) · 12.5 KB

ETFsApi.md

File metadata and controls

552 lines (350 loc) · 12.5 KB

Intrinio.SDK.Api.ETFsApi

All URIs are relative to https://api-v2.intrinio.com

Method HTTP request Description
GetAllEtfs GET /etfs All ETFs
GetEtf GET /etfs/{identifier} Lookup ETF
GetEtfAnalytics GET /etfs/{identifier}/analytics ETF Analytics
GetEtfHoldings GET /etfs/{identifier}/holdings ETF Holdings
GetEtfStats GET /etfs/{identifier}/stats Exchange Traded Fund (ETF) stats
SearchEtfs GET /etfs/search Search ETFs

GetAllEtfs

View Intrinio API Documentation

ApiResponseETFs GetAllEtfs (string exchange = null, int? pageSize = null, string nextPage = null)

All ETFs

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.

Example

using System;
using System.Diagnostics;
using System.Collections;
using System.Collections.Generic;
using Intrinio.SDK.Api;
using Intrinio.SDK.Client;
using Intrinio.SDK.Model;
using Newtonsoft.Json;

namespace Example
{
  public class GetAllEtfsExample
  {
    public static void Main()
    {
      Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
      Configuration.Default.AllowRetries = true;
      
      var eTFsApi = new ETFsApi();
      
      string exchange = "XNAS";
      int? pageSize = 100;
      string nextPage = null;
      
      ApiResponseETFs result = eTFsApi.GetAllEtfs(exchange, pageSize, nextPage);
      Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented));
    }
  }
}

Parameters

Name Type Description Notes
exchange string [optional]  
pageSize int? The number of results to return [optional] [default to 100]  
nextPage string Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseETFs

GetEtf

View Intrinio API Documentation

ETF GetEtf (string identifier)

Lookup ETF

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.

Example

using System;
using System.Diagnostics;
using System.Collections;
using System.Collections.Generic;
using Intrinio.SDK.Api;
using Intrinio.SDK.Client;
using Intrinio.SDK.Model;
using Newtonsoft.Json;

namespace Example
{
  public class GetEtfExample
  {
    public static void Main()
    {
      Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
      Configuration.Default.AllowRetries = true;
      
      var eTFsApi = new ETFsApi();
      
      string identifier = "SPY";
      
      ETF result = eTFsApi.GetEtf(identifier);
      Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented));
    }
  }
}

Parameters

Name Type Description Notes
identifier string An ETF identifier (Ticker, Figi Ticker, ISIN, RIC, Intrinio ID)  

Return type

ETF

GetEtfAnalytics

View Intrinio API Documentation

ETFAnalytics GetEtfAnalytics (string identifier)

ETF Analytics

Returns latest market analytics for a specified US ETF, including volume, trailing volume, market cap, 52 week high, and 52 week low.

Example

using System;
using System.Diagnostics;
using System.Collections;
using System.Collections.Generic;
using Intrinio.SDK.Api;
using Intrinio.SDK.Client;
using Intrinio.SDK.Model;
using Newtonsoft.Json;

namespace Example
{
  public class GetEtfAnalyticsExample
  {
    public static void Main()
    {
      Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
      Configuration.Default.AllowRetries = true;
      
      var eTFsApi = new ETFsApi();
      
      string identifier = "SPY";
      
      ETFAnalytics result = eTFsApi.GetEtfAnalytics(identifier);
      Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented));
    }
  }
}

Parameters

Name Type Description Notes
identifier string An ETF identifier (Ticker, Figi Ticker, ISIN, RIC, Intrinio ID)  

Return type

ETFAnalytics

GetEtfHoldings

View Intrinio API Documentation

ApiResponseETFHoldings GetEtfHoldings (string identifier, int? pageSize = null, string nextPage = null)

ETF Holdings

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.

Example

using System;
using System.Diagnostics;
using System.Collections;
using System.Collections.Generic;
using Intrinio.SDK.Api;
using Intrinio.SDK.Client;
using Intrinio.SDK.Model;
using Newtonsoft.Json;

namespace Example
{
  public class GetEtfHoldingsExample
  {
    public static void Main()
    {
      Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
      Configuration.Default.AllowRetries = true;
      
      var eTFsApi = new ETFsApi();
      
      string identifier = "SPY";
      int? pageSize = 100;
      string nextPage = null;
      
      ApiResponseETFHoldings result = eTFsApi.GetEtfHoldings(identifier, pageSize, nextPage);
      Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented));
    }
  }
}

Parameters

Name Type Description Notes
identifier string An ETF identifier (Ticker, Figi Ticker, ISIN, RIC, Intrinio ID)  
pageSize int? The number of results to return [optional] [default to 100]  
nextPage string Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseETFHoldings

GetEtfStats

View Intrinio API Documentation

ETFStats GetEtfStats (string identifier)

Exchange Traded Fund (ETF) stats

Returns comprehensive key US ETF performance statistics, including prices, NAVs, flows, returns, and much more for both trailing and calendar year periods.

Example

using System;
using System.Diagnostics;
using System.Collections;
using System.Collections.Generic;
using Intrinio.SDK.Api;
using Intrinio.SDK.Client;
using Intrinio.SDK.Model;
using Newtonsoft.Json;

namespace Example
{
  public class GetEtfStatsExample
  {
    public static void Main()
    {
      Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
      Configuration.Default.AllowRetries = true;
      
      var eTFsApi = new ETFsApi();
      
      string identifier = "SPY";
      
      ETFStats result = eTFsApi.GetEtfStats(identifier);
      Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented));
    }
  }
}

Parameters

Name Type Description Notes
identifier string An ETF identifier (Ticker, Figi Ticker, ISIN, RIC, Intrinio ID)  

Return type

ETFStats

SearchEtfs

View Intrinio API Documentation

ApiResponseETFs SearchEtfs (string query, string mode = null)

Search ETFs

Accepts a string of keyword combinations, and searches across the ETF name and ticker and returns a list of ETFs with related keywords.

Example

using System;
using System.Diagnostics;
using System.Collections;
using System.Collections.Generic;
using Intrinio.SDK.Api;
using Intrinio.SDK.Client;
using Intrinio.SDK.Model;
using Newtonsoft.Json;

namespace Example
{
  public class SearchEtfsExample
  {
    public static void Main()
    {
      Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
      Configuration.Default.AllowRetries = true;
      
      var eTFsApi = new ETFsApi();
      
      string query = "iShares";
      string mode = null;
      
      ApiResponseETFs result = eTFsApi.SearchEtfs(query, mode);
      Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented));
    }
  }
}

Parameters

Name Type Description Notes
query string  
mode string When set, changes search mode to the specified mode. Paging is not available in rank_order. [optional]  

Return type

ApiResponseETFs