Skip to content

Latest commit

 

History

History
966 lines (632 loc) · 28.4 KB

StockExchangeApi.md

File metadata and controls

966 lines (632 loc) · 28.4 KB

Intrinio.SDK.Api.StockExchangeApi

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

Method HTTP request Description
GetAllStockExchanges GET /stock_exchanges All Stock Exchanges
GetStockExchangeBetas GET /stock_exchanges/{identifier}/betas Security Betas
GetStockExchangeById GET /stock_exchanges/{identifier} Lookup Stock Exchange
GetStockExchangeGainers GET /stock_exchanges/{identifier}/gainers Top Gainers by Exchange
GetStockExchangeLosers GET /stock_exchanges/{identifier}/losers Top Losers by Exchange
GetStockExchangePriceAdjustments GET /stock_exchanges/{identifier}/prices/adjustments Stock Price Adjustments by Exchange
GetStockExchangePrices GET /stock_exchanges/{identifier}/prices Stock Prices by Exchange
GetStockExchangeQuote GET /stock_exchanges/{identifier}/quote Realtime Quote Prices by Exchange
GetStockExchangeRealtimePrices GET /stock_exchanges/{identifier}/prices/realtime Realtime Stock Prices by Exchange
GetStockExchangeSecurities GET /stock_exchanges/{identifier}/securities Securities by Exchange

GetAllStockExchanges

View Intrinio API Documentation

ApiResponseStockExchanges GetAllStockExchanges (string city = null, string country = null, string countryCode = null, int? pageSize = null)

All Stock Exchanges

Returns all Stock Exchanges matching the specified parameters

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 GetAllStockExchangesExample
  {
    public static void Main()
    {
      Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
      Configuration.Default.AllowRetries = true;
      
      var stockExchangeApi = new StockExchangeApi();
      
      string city = "New York";
      string country = "UNITED STATES OF AMERICA";
      string countryCode = "US";
      int? pageSize = 100;
      
      ApiResponseStockExchanges result = stockExchangeApi.GetAllStockExchanges(city, country, countryCode, pageSize);
      Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented));
    }
  }
}

Parameters

Name Type Description Notes
city string Filter by city [optional]  
country string Filter by country [optional]  
countryCode string Filter by ISO country code [optional]  
pageSize int? The number of results to return [optional] [default to 100]  

Return type

ApiResponseStockExchanges

GetStockExchangeBetas

View Intrinio API Documentation

ApiResponseStockExchangeBetas GetStockExchangeBetas (string identifier, string type = null, Object date = null, int? pageSize = null, string nextPage = null)

Security Betas

Returns security beta data in the Stock Exchange with the given identifier

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 GetStockExchangeBetasExample
  {
    public static void Main()
    {
      Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
      Configuration.Default.AllowRetries = true;
      
      var stockExchangeApi = new StockExchangeApi();
      
      string identifier = "USCOMP";
      string type = null;
      var date = new Object();
      int? pageSize = 100;
      string nextPage = null;
      
      ApiResponseStockExchangeBetas result = stockExchangeApi.GetStockExchangeBetas(identifier, type, date, pageSize, nextPage);
      Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented));
    }
  }
}

Parameters

Name Type Description Notes
identifier string A Stock Exchange identifier (MIC or Intrinio ID)  
type string Only of the given type [optional] [default to weekly]  
date Object Return data for this period end date. [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

ApiResponseStockExchangeBetas

GetStockExchangeById

View Intrinio API Documentation

StockExchange GetStockExchangeById (string identifier)

Lookup Stock Exchange

Returns the Stock Exchange with the given identifier

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 GetStockExchangeByIdExample
  {
    public static void Main()
    {
      Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
      Configuration.Default.AllowRetries = true;
      
      var stockExchangeApi = new StockExchangeApi();
      
      string identifier = "USCOMP";
      
      StockExchange result = stockExchangeApi.GetStockExchangeById(identifier);
      Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented));
    }
  }
}

Parameters

Name Type Description Notes
identifier string A Stock Exchange identifier (MIC or Intrinio ID)  

Return type

StockExchange

GetStockExchangeGainers

View Intrinio API Documentation

ApiResponseStockExchangeMovers GetStockExchangeGainers (string identifier, decimal? minPrice = null, int? pageSize = null, string source = null)

Top Gainers by Exchange

Returns securities with the highest gain percent change traded on the chosen stock exchange.

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 GetStockExchangeGainersExample
  {
    public static void Main()
    {
      Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
      Configuration.Default.AllowRetries = true;
      
      var stockExchangeApi = new StockExchangeApi();
      
      string identifier = "USCOMP";
      decimal? minPrice = 8.14;
      int? pageSize = 100;
      string source = "delayed_sip";
      
      ApiResponseStockExchangeMovers result = stockExchangeApi.GetStockExchangeGainers(identifier, minPrice, pageSize, source);
      Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented));
    }
  }
}

Parameters

Name Type Description Notes
identifier string A Stock Exchange identifier (MIC or Intrinio ID)  
minPrice decimal? The minimum price filter [optional]  
pageSize int? The number of results to return [optional] [default to 100]  
source string Return the realtime price from the specified source instead of the most recent. [optional]  

Return type

ApiResponseStockExchangeMovers

GetStockExchangeLosers

View Intrinio API Documentation

ApiResponseStockExchangeMovers GetStockExchangeLosers (string identifier, decimal? minPrice = null, int? pageSize = null, string source = null)

Top Losers by Exchange

Returns securities with the highest loss percent change traded on the chosen stock exchange.

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 GetStockExchangeLosersExample
  {
    public static void Main()
    {
      Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
      Configuration.Default.AllowRetries = true;
      
      var stockExchangeApi = new StockExchangeApi();
      
      string identifier = "USCOMP";
      decimal? minPrice = 8.14;
      int? pageSize = 100;
      string source = "delayed_sip";
      
      ApiResponseStockExchangeMovers result = stockExchangeApi.GetStockExchangeLosers(identifier, minPrice, pageSize, source);
      Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented));
    }
  }
}

Parameters

Name Type Description Notes
identifier string A Stock Exchange identifier (MIC or Intrinio ID)  
minPrice decimal? The minimum price filter [optional]  
pageSize int? The number of results to return [optional] [default to 100]  
source string Return the realtime price from the specified source instead of the most recent. [optional]  

Return type

ApiResponseStockExchangeMovers

GetStockExchangePriceAdjustments

View Intrinio API Documentation

ApiResponseStockExchangeStockPriceAdjustments GetStockExchangePriceAdjustments (string identifier, DateTime? date = null, int? pageSize = null, string nextPage = null)

Stock Price Adjustments by Exchange

Returns stock price adjustments for the Stock Exchange with the given identifier

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 GetStockExchangePriceAdjustmentsExample
  {
    public static void Main()
    {
      Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
      Configuration.Default.AllowRetries = true;
      
      var stockExchangeApi = new StockExchangeApi();
      
      string identifier = "USCOMP";
      DateTime? date = DateTime.Parse("2018-08-14");
      int? pageSize = 100;
      string nextPage = null;
      
      ApiResponseStockExchangeStockPriceAdjustments result = stockExchangeApi.GetStockExchangePriceAdjustments(identifier, date, pageSize, nextPage);
      Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented));
    }
  }
}

Parameters

Name Type Description Notes
identifier string A Stock Exchange identifier (MIC or Intrinio ID)  
date DateTime? The date for which to return price adjustments [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

ApiResponseStockExchangeStockPriceAdjustments

GetStockExchangePrices

View Intrinio API Documentation

ApiResponseStockExchangeStockPrices GetStockExchangePrices (string identifier, DateTime? date = null, DateTime? startDate = null, DateTime? endDate = null, int? pageSize = null, string nextPage = null, List tickers = null, string nextPage2 = null)

Stock Prices by Exchange

Returns end-of-day stock prices for Securities on the Stock Exchange with identifier and on the price_date (or the latest date that prices are available)

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 GetStockExchangePricesExample
  {
    public static void Main()
    {
      Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
      Configuration.Default.AllowRetries = true;
      
      var stockExchangeApi = new StockExchangeApi();
      
      string identifier = "USCOMP";
      DateTime? date = DateTime.Parse("2018-08-14");
      DateTime? startDate = DateTime.Parse("2020-08-14");
      DateTime? endDate = DateTime.Parse("2022-08-14");
      int? pageSize = 100;
      string nextPage = null;
      var tickers = new List<string>();
      string nextPage2 = "";
      
      ApiResponseStockExchangeStockPrices result = stockExchangeApi.GetStockExchangePrices(identifier, date, startDate, endDate, pageSize, nextPage, tickers, nextPage2);
      Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented));
    }
  }
}

Parameters

Name Type Description Notes
identifier string A Stock Exchange identifier (MIC or Intrinio ID)  
date DateTime? The date for which to return prices. May not be used with the start_date and end_date parameters. [optional]  
startDate DateTime? The start of the date range you're querying. May not be used with date parameter. [optional]  
endDate DateTime? The end of the date range you're querying. May not be used with date parameter. [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]  
tickers List<string> The comma-delimited list of ticker symbols to filter down to. If not provided, the entire stock exchange is returned. [optional]  
nextPage2 string Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseStockExchangeStockPrices

GetStockExchangeQuote

View Intrinio API Documentation

ApiResponseStockExchangeQuote GetStockExchangeQuote (string identifier, List tickers, string source = null, bool? activeOnly = null)

Realtime Quote Prices by Exchange

Returns many popular metrics for securities from a given exchange 'identifier' from multiple products conveniently in one API. Realtime stock price data requires at least one realtime product subscription (IEX, NASDAQ Basic, and/or Delayed SIP). If you are subscribed to multiple realtime stock price products, the api will return the most recent realtime stock price. Previous close price and percent change fields require both an EoD US Stock Price subscription and a realtime stock price subscription. Market_cap, price_to_earnings, and dividendyield data fields require a fundamentals subscription.

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 GetStockExchangeQuoteExample
  {
    public static void Main()
    {
      Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
      Configuration.Default.AllowRetries = true;
      
      var stockExchangeApi = new StockExchangeApi();
      
      string identifier = "USCOMP";
      var tickers = new List<string>();
      string source = "delayed_sip";
      bool? activeOnly = null;
      
      ApiResponseStockExchangeQuote result = stockExchangeApi.GetStockExchangeQuote(identifier, tickers, source, activeOnly);
      Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented));
    }
  }
}

Parameters

Name Type Description Notes
identifier string A Stock Exchange identifier (MIC or Intrinio ID)  
tickers List<string> The comma-delimited list of ticker symbols to return quotes for.  
source string Return the realtime price from the specified source instead of the most recent. [optional]  
activeOnly bool? Returns prices only from the most recent trading day. [optional]  

Return type

ApiResponseStockExchangeQuote

GetStockExchangeRealtimePrices

View Intrinio API Documentation

ApiResponseStockExchangeRealtimeStockPrices GetStockExchangeRealtimePrices (string identifier, List source = null, bool? activeOnly = null, bool? tradedToday = null, int? pageSize = null, List tickers = null, string nextPage = null)

Realtime Stock Prices by Exchange

Returns realtime stock prices for the Stock Exchange with the given identifier

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 GetStockExchangeRealtimePricesExample
  {
    public static void Main()
    {
      Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
      Configuration.Default.AllowRetries = true;
      
      var stockExchangeApi = new StockExchangeApi();
      
      string identifier = "USCOMP";
      List<string> source = "iex,delayed_sip";
      bool? activeOnly = null;
      bool? tradedToday = null;
      int? pageSize = 100;
      var tickers = new List<string>();
      string nextPage = null;
      
      ApiResponseStockExchangeRealtimeStockPrices result = stockExchangeApi.GetStockExchangeRealtimePrices(identifier, source, activeOnly, tradedToday, pageSize, tickers, nextPage);
      Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented));
    }
  }
}

Parameters

Name Type Description Notes
identifier string A Stock Exchange identifier (MIC or Intrinio ID)  
source List<string> Return realtime prices from the specified comma-delimited data sources. If no source is specified, all sources available to user are used. [optional]  
activeOnly bool? Returns prices only from the most recent trading day. [optional]  
tradedToday bool? Returns prices only from securities which have traded on the most recent trading day. [optional]  
pageSize int? The number of results to return [optional] [default to 100]  
tickers List<string> The comma-delimited list of ticker symbols to filter to. If not provided, the entire stock exchange is returned. [optional]  
nextPage string Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseStockExchangeRealtimeStockPrices

GetStockExchangeSecurities

View Intrinio API Documentation

ApiResponseStockExchangeSecurities GetStockExchangeSecurities (string identifier, int? pageSize = null, string nextPage = null)

Securities by Exchange

Returns Securities traded on the Stock Exchange with identifier

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 GetStockExchangeSecuritiesExample
  {
    public static void Main()
    {
      Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
      Configuration.Default.AllowRetries = true;
      
      var stockExchangeApi = new StockExchangeApi();
      
      string identifier = "USCOMP";
      int? pageSize = 100;
      string nextPage = null;
      
      ApiResponseStockExchangeSecurities result = stockExchangeApi.GetStockExchangeSecurities(identifier, pageSize, nextPage);
      Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented));
    }
  }
}

Parameters

Name Type Description Notes
identifier string A Stock Exchange identifier (MIC or 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

ApiResponseStockExchangeSecurities