From b4ac54628186388a69ce07e04cb757685059e2a9 Mon Sep 17 00:00:00 2001 From: ssnyder-intrinio Date: Tue, 26 Nov 2024 21:55:03 -0600 Subject: [PATCH] No release notes for this build --- Intrinio.SDK.nuspec | 2 +- README.md | 7 +- docs/ApiResponseStockExchangeBetas.md | 24 ++ docs/Beta.md | 25 ++ docs/OptionInterval.md | 3 +- docs/OptionIntervalMover.md | 3 +- docs/OptionsApi.md | 10 +- docs/SecurityIntervalMover.md | 3 +- docs/StockExchangeApi.md | 97 +++++++ docs/StockPriceInterval.md | 1 + src/Intrinio.SDK.Test/Api/OptionsApiTests.cs | 3 +- .../Api/StockExchangeApiTests.cs | 16 ++ .../Intrinio.SDK.Test.csproj | 2 +- .../ApiResponseStockExchangeBetasTests.cs | 88 +++++++ src/Intrinio.SDK.Test/Model/BetaTests.cs | 120 +++++++++ .../Model/OptionIntervalMoverTests.cs | 8 + .../Model/OptionIntervalTests.cs | 8 + .../Model/SecurityIntervalMoverTests.cs | 8 + .../Model/StockPriceIntervalTests.cs | 8 + src/Intrinio.SDK/Api/OptionsApi.cs | 30 ++- src/Intrinio.SDK/Api/StockExchangeApi.cs | 228 +++++++++++++++++ src/Intrinio.SDK/Client/Configuration.cs | 8 +- src/Intrinio.SDK/Intrinio.SDK.csproj | 2 +- .../Model/ApiResponseStockExchangeBetas.cs | 151 +++++++++++ src/Intrinio.SDK/Model/Beta.cs | 240 ++++++++++++++++++ src/Intrinio.SDK/Model/OptionInterval.cs | 25 +- src/Intrinio.SDK/Model/OptionIntervalMover.cs | 25 +- .../Model/SecurityIntervalMover.cs | 25 +- src/Intrinio.SDK/Model/StockPriceInterval.cs | 19 +- 29 files changed, 1150 insertions(+), 39 deletions(-) create mode 100644 docs/ApiResponseStockExchangeBetas.md create mode 100644 docs/Beta.md create mode 100644 src/Intrinio.SDK.Test/Model/ApiResponseStockExchangeBetasTests.cs create mode 100644 src/Intrinio.SDK.Test/Model/BetaTests.cs create mode 100644 src/Intrinio.SDK/Model/ApiResponseStockExchangeBetas.cs create mode 100644 src/Intrinio.SDK/Model/Beta.cs diff --git a/Intrinio.SDK.nuspec b/Intrinio.SDK.nuspec index 5657419..03b0fd4 100644 --- a/Intrinio.SDK.nuspec +++ b/Intrinio.SDK.nuspec @@ -6,7 +6,7 @@ Intrinio - 7.11.0 + 7.12.0 Intrinio diff --git a/README.md b/README.md index e37147c..c463354 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ To get an API key, [sign up here](https://intrinio.com/). Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://docs.intrinio.com/documentation/api_v2). If you need additional help in using the API, please visit the [Intrinio website](https://intrinio.com) and click on the chat icon in the lower right corner. -- API version: 2.75.0 -- Package version: 7.11.0 +- API version: 2.76.3 +- Package version: 7.12.0 @@ -309,6 +309,7 @@ Class | Method | HTTP request | Description *SecurityApi* | [**ScreenSecurities**](docs/SecurityApi.md#screensecurities) | **POST** /securities/screen | Screen Securities *SecurityApi* | [**SearchSecurities**](docs/SecurityApi.md#searchsecurities) | **GET** /securities/search | Search Securities *StockExchangeApi* | [**GetAllStockExchanges**](docs/StockExchangeApi.md#getallstockexchanges) | **GET** /stock_exchanges | All Stock Exchanges +*StockExchangeApi* | [**GetStockExchangeBetas**](docs/StockExchangeApi.md#getstockexchangebetas) | **GET** /stock_exchanges/{identifier}/betas | Security Betas *StockExchangeApi* | [**GetStockExchangeById**](docs/StockExchangeApi.md#getstockexchangebyid) | **GET** /stock_exchanges/{identifier} | Lookup Stock Exchange *StockExchangeApi* | [**GetStockExchangeGainers**](docs/StockExchangeApi.md#getstockexchangegainers) | **GET** /stock_exchanges/{identifier}/gainers | Top Gainers by Exchange *StockExchangeApi* | [**GetStockExchangeLosers**](docs/StockExchangeApi.md#getstockexchangelosers) | **GET** /stock_exchanges/{identifier}/losers | Top Losers by Exchange @@ -485,6 +486,7 @@ Class | Method | HTTP request | Description - [Model.ApiResponseSecurityZacksSalesSurprises](docs/ApiResponseSecurityZacksSalesSurprises.md) - [Model.ApiResponseStandardizedFinancials](docs/ApiResponseStandardizedFinancials.md) - [Model.ApiResponseStandardizedFinancialsDimensions](docs/ApiResponseStandardizedFinancialsDimensions.md) + - [Model.ApiResponseStockExchangeBetas](docs/ApiResponseStockExchangeBetas.md) - [Model.ApiResponseStockExchangeMovers](docs/ApiResponseStockExchangeMovers.md) - [Model.ApiResponseStockExchangeQuote](docs/ApiResponseStockExchangeQuote.md) - [Model.ApiResponseStockExchangeRealtimeStockPrices](docs/ApiResponseStockExchangeRealtimeStockPrices.md) @@ -513,6 +515,7 @@ Class | Method | HTTP request | Description - [Model.AverageDirectionalIndexTechnicalValue](docs/AverageDirectionalIndexTechnicalValue.md) - [Model.AverageTrueRangeTechnicalValue](docs/AverageTrueRangeTechnicalValue.md) - [Model.AwesomeOscillatorTechnicalValue](docs/AwesomeOscillatorTechnicalValue.md) + - [Model.Beta](docs/Beta.md) - [Model.BollingerBandsTechnicalValue](docs/BollingerBandsTechnicalValue.md) - [Model.BulkDownloadLinks](docs/BulkDownloadLinks.md) - [Model.BulkDownloadSummary](docs/BulkDownloadSummary.md) diff --git a/docs/ApiResponseStockExchangeBetas.md b/docs/ApiResponseStockExchangeBetas.md new file mode 100644 index 0000000..5564424 --- /dev/null +++ b/docs/ApiResponseStockExchangeBetas.md @@ -0,0 +1,24 @@ +[//]: # (CLASS:Intrinio.SDK.Model.ApiResponseStockExchangeBetas) + +[//]: # (KIND:object) + +### Intrinio.SDK.Model.ApiResponseStockExchangeBetas +#### Properties + +[//]: # (START_DEFINITION) + +Name | Type | Description +------------ | ------------- | ------------- +**Betas** | [**List<Beta>**](Beta.md) | The mover security.   +**StockExchange** | [**StockExchange**](StockExchange.md) | The Stock Exchange resolved from the given identifier   +**NextPage** | string | The token required to request the next page of the data. If null, no further results are available.   + +[//]: # (END_DEFINITION) + + +[//]: # (CONTAINED_CLASS:Intrinio.SDK.Model.Beta) + + +[//]: # (CONTAINED_CLASS:Intrinio.SDK.Model.StockExchange) + + diff --git a/docs/Beta.md b/docs/Beta.md new file mode 100644 index 0000000..74cb4f9 --- /dev/null +++ b/docs/Beta.md @@ -0,0 +1,25 @@ +[//]: # (CLASS:Intrinio.SDK.Model.Beta) + +[//]: # (KIND:object) + +### Intrinio.SDK.Model.Beta +#### Properties + +[//]: # (START_DEFINITION) + +Name | Type | Description +------------ | ------------- | ------------- +**PeriodType** | string | Type of period for this beta value.   +**OneYearBeta** | decimal? | The one year beta value for this security.   +**ThreeYearBeta** | decimal? | The three year beta value for this security.   +**FiveYearBeta** | decimal? | The five year beta value for this security.   +**SevenYearBeta** | decimal? | The seven year beta value for this security.   +**TenYearBeta** | decimal? | The ten year beta value for this security.   +**Security** | [**SecuritySummary**](SecuritySummary.md) | The Security.   + +[//]: # (END_DEFINITION) + + +[//]: # (CONTAINED_CLASS:Intrinio.SDK.Model.SecuritySummary) + + diff --git a/docs/OptionInterval.md b/docs/OptionInterval.md index 2cfa3e4..a53a8f8 100644 --- a/docs/OptionInterval.md +++ b/docs/OptionInterval.md @@ -15,9 +15,10 @@ Name | Type | Description **High** | decimal? | The highest traded contract price in this interval.   **Low** | decimal? | The lowest traded contract price in this interval.   **Close** | decimal? | The last traded contract price in this interval.   -**Volume** | decimal? | The volume of contract trades in this interval.   +**Volume** | decimal? | The volume of contracts traded in this interval.   **Average** | decimal? | The volume weighted average price of contract trades in this interval.   **Change** | decimal? | The ratio of Close minus Open to Open.   +**TradeCount** | decimal? | The number of qualified trades executed during the period   [//]: # (END_DEFINITION) diff --git a/docs/OptionIntervalMover.md b/docs/OptionIntervalMover.md index a5ebbec..ca3fa05 100644 --- a/docs/OptionIntervalMover.md +++ b/docs/OptionIntervalMover.md @@ -15,8 +15,9 @@ Name | Type | Description **High** | decimal? | The highest traded contract price in this interval.   **Low** | decimal? | The lowest traded contract price in this interval.   **Close** | decimal? | The last traded contract price in this interval.   -**Volume** | decimal? | The volume of contract trades in this interval.   +**Volume** | decimal? | The volume of contracts traded in this interval.   **Average** | decimal? | The volume weighted average price of contract trades in this interval.   +**TradeCount** | decimal? | The number of contract trades executed in this interval   [//]: # (END_DEFINITION) diff --git a/docs/OptionsApi.md b/docs/OptionsApi.md index 6ae82e2..1d33599 100644 --- a/docs/OptionsApi.md +++ b/docs/OptionsApi.md @@ -61,7 +61,7 @@ Method | HTTP request | Description [//]: # (START_OVERVIEW) -> ApiResponseOptionsTickers GetAllOptionsTickers () +> ApiResponseOptionsTickers GetAllOptionsTickers (bool? useUnderlyingSymbols = null) #### Options Tickers @@ -94,8 +94,9 @@ namespace Example var optionsApi = new OptionsApi(); + bool? useUnderlyingSymbols = false; - ApiResponseOptionsTickers result = optionsApi.GetAllOptionsTickers(); + ApiResponseOptionsTickers result = optionsApi.GetAllOptionsTickers(useUnderlyingSymbols); Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented)); } } @@ -108,7 +109,10 @@ namespace Example [//]: # (START_PARAMETERS) -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **useUnderlyingSymbols** | bool?| Use underlying symbol vs contract symbol | [optional] [default to false]  
[//]: # (END_PARAMETERS) diff --git a/docs/SecurityIntervalMover.md b/docs/SecurityIntervalMover.md index 306d858..ffa44cb 100644 --- a/docs/SecurityIntervalMover.md +++ b/docs/SecurityIntervalMover.md @@ -15,8 +15,9 @@ Name | Type | Description **High** | decimal? | The highest traded price in this interval.   **Low** | decimal? | The lowest traded price in this interval.   **Close** | decimal? | The last traded price in this interval.   -**Volume** | decimal? | The volume of trades in this interval.   +**Volume** | decimal? | The volume of shares in this interval.   **Average** | decimal? | The volume weighted average price of trades in this interval.   +**TradeCount** | decimal? | The of trades in this interval.   [//]: # (END_DEFINITION) diff --git a/docs/StockExchangeApi.md b/docs/StockExchangeApi.md index 9df51e4..56e78a9 100644 --- a/docs/StockExchangeApi.md +++ b/docs/StockExchangeApi.md @@ -5,6 +5,7 @@ All URIs are relative to *https://api-v2.intrinio.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**GetAllStockExchanges**](StockExchangeApi.md#getallstockexchanges) | **GET** /stock_exchanges | All Stock Exchanges +[**GetStockExchangeBetas**](StockExchangeApi.md#getstockexchangebetas) | **GET** /stock_exchanges/{identifier}/betas | Security Betas [**GetStockExchangeById**](StockExchangeApi.md#getstockexchangebyid) | **GET** /stock_exchanges/{identifier} | Lookup Stock Exchange [**GetStockExchangeGainers**](StockExchangeApi.md#getstockexchangegainers) | **GET** /stock_exchanges/{identifier}/gainers | Top Gainers by Exchange [**GetStockExchangeLosers**](StockExchangeApi.md#getstockexchangelosers) | **GET** /stock_exchanges/{identifier}/losers | Top Losers by Exchange @@ -110,6 +111,102 @@ Name | Type | Description | Notes [//]: # (END_OPERATION) +[//]: # (START_OPERATION) + +[//]: # (CLASS:Intrinio.SDK.Api.StockExchangeApi) + +[//]: # (METHOD:GetStockExchangeBetas) + +[//]: # (RETURN_TYPE:Intrinio.SDK.Model.ApiResponseStockExchangeBetas) + +[//]: # (RETURN_TYPE_KIND:object) + +[//]: # (RETURN_TYPE_DOC:ApiResponseStockExchangeBetas.md) + +[//]: # (OPERATION:GetStockExchangeBetas_v2) + +[//]: # (ENDPOINT:/stock_exchanges/{identifier}/betas) + +[//]: # (DOCUMENT_LINK:StockExchangeApi.md#getstockexchangebetas) + + +## **GetStockExchangeBetas** + +[**View Intrinio API Documentation**](https://docs.intrinio.com/documentation/csharp/GetStockExchangeBetas_v2) + +[//]: # (START_OVERVIEW) + +> 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` + +[//]: # (END_OVERVIEW) + +### Example + +[//]: # (START_CODE_EXAMPLE) + +```csharp +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)); + } + } +} +``` + +[//]: # (END_CODE_EXAMPLE) + +### Parameters + +[//]: # (START_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**](Object.md)| 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]   +
+ +[//]: # (END_PARAMETERS) + +### Return type + +[**ApiResponseStockExchangeBetas**](ApiResponseStockExchangeBetas.md) + +[//]: # (END_OPERATION) + + [//]: # (START_OPERATION) [//]: # (CLASS:Intrinio.SDK.Api.StockExchangeApi) diff --git a/docs/StockPriceInterval.md b/docs/StockPriceInterval.md index fa9d5c1..86d2ec8 100644 --- a/docs/StockPriceInterval.md +++ b/docs/StockPriceInterval.md @@ -33,6 +33,7 @@ Name | Type | Description **AskFirstTime** | DateTime? | The timestamp that represents the first ask time from the interval span.   **AskLastTime** | DateTime? | The timestamp that represents the last ask time from the interval span.   **AskChangePercent** | decimal? | The ratio of the close to open ask difference, in percent.   +**TradeCount** | decimal? | The number of qualified trades executed during the period   [//]: # (END_DEFINITION) diff --git a/src/Intrinio.SDK.Test/Api/OptionsApiTests.cs b/src/Intrinio.SDK.Test/Api/OptionsApiTests.cs index ba05817..e539b20 100644 --- a/src/Intrinio.SDK.Test/Api/OptionsApiTests.cs +++ b/src/Intrinio.SDK.Test/Api/OptionsApiTests.cs @@ -59,7 +59,8 @@ public void InstanceTest() public void GetAllOptionsTickersTest() { // TODO uncomment below to test the method and replace null with proper value - //var response = instance.GetAllOptionsTickers(); + //bool? useUnderlyingSymbols = null; + //var response = instance.GetAllOptionsTickers(useUnderlyingSymbols); //Assert.IsInstanceOf (response, "response is ApiResponseOptionsTickers"); } diff --git a/src/Intrinio.SDK.Test/Api/StockExchangeApiTests.cs b/src/Intrinio.SDK.Test/Api/StockExchangeApiTests.cs index dbe779d..800465d 100644 --- a/src/Intrinio.SDK.Test/Api/StockExchangeApiTests.cs +++ b/src/Intrinio.SDK.Test/Api/StockExchangeApiTests.cs @@ -67,6 +67,22 @@ public void GetAllStockExchangesTest() //Assert.IsInstanceOf (response, "response is ApiResponseStockExchanges"); } + /// + /// Test GetStockExchangeBetas + /// + [Test] + public void GetStockExchangeBetasTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string identifier = null; + //string type = null; + //Object date = null; + //int? pageSize = null; + //string nextPage = null; + //var response = instance.GetStockExchangeBetas(identifier, type, date, pageSize, nextPage); + //Assert.IsInstanceOf (response, "response is ApiResponseStockExchangeBetas"); + } + /// /// Test GetStockExchangeById /// diff --git a/src/Intrinio.SDK.Test/Intrinio.SDK.Test.csproj b/src/Intrinio.SDK.Test/Intrinio.SDK.Test.csproj index a8cf175..d8d9d51 100644 --- a/src/Intrinio.SDK.Test/Intrinio.SDK.Test.csproj +++ b/src/Intrinio.SDK.Test/Intrinio.SDK.Test.csproj @@ -4,7 +4,7 @@ Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://docs.intrinio.com/documentation/api_v2). If you need additional help in using the API, please visit the [Intrinio website](https://intrinio.com) and click on the chat icon in the lower right corner. - OpenAPI spec version: 2.75.0 + OpenAPI spec version: 2.76.3 --> diff --git a/src/Intrinio.SDK.Test/Model/ApiResponseStockExchangeBetasTests.cs b/src/Intrinio.SDK.Test/Model/ApiResponseStockExchangeBetasTests.cs new file mode 100644 index 0000000..ff889f7 --- /dev/null +++ b/src/Intrinio.SDK.Test/Model/ApiResponseStockExchangeBetasTests.cs @@ -0,0 +1,88 @@ + + + +using NUnit.Framework; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Intrinio.SDK.Api; +using Intrinio.SDK.Model; +using Intrinio.SDK.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Intrinio.SDK.Test +{ + /// + /// Class for testing ApiResponseStockExchangeBetas + /// + /// + /// This file is automatically generated by Swagger Codegen. + /// Please update the test case below to test the model. + /// + [TestFixture] + public class ApiResponseStockExchangeBetasTests + { + // TODO uncomment below to declare an instance variable for ApiResponseStockExchangeBetas + //private ApiResponseStockExchangeBetas instance; + + /// + /// Setup before each test + /// + [SetUp] + public void Init() + { + // TODO uncomment below to create an instance of ApiResponseStockExchangeBetas + //instance = new ApiResponseStockExchangeBetas(); + } + + /// + /// Clean up after each test + /// + [TearDown] + public void Cleanup() + { + + } + + /// + /// Test an instance of ApiResponseStockExchangeBetas + /// + [Test] + public void ApiResponseStockExchangeBetasInstanceTest() + { + // TODO uncomment below to test "IsInstanceOfType" ApiResponseStockExchangeBetas + //Assert.IsInstanceOfType (instance, "variable 'instance' is a ApiResponseStockExchangeBetas"); + } + + + /// + /// Test the property 'Betas' + /// + [Test] + public void BetasTest() + { + // TODO unit test for the property 'Betas' + } + /// + /// Test the property 'StockExchange' + /// + [Test] + public void StockExchangeTest() + { + // TODO unit test for the property 'StockExchange' + } + /// + /// Test the property 'NextPage' + /// + [Test] + public void NextPageTest() + { + // TODO unit test for the property 'NextPage' + } + + } + +} diff --git a/src/Intrinio.SDK.Test/Model/BetaTests.cs b/src/Intrinio.SDK.Test/Model/BetaTests.cs new file mode 100644 index 0000000..0ce002f --- /dev/null +++ b/src/Intrinio.SDK.Test/Model/BetaTests.cs @@ -0,0 +1,120 @@ + + + +using NUnit.Framework; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Intrinio.SDK.Api; +using Intrinio.SDK.Model; +using Intrinio.SDK.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Intrinio.SDK.Test +{ + /// + /// Class for testing Beta + /// + /// + /// This file is automatically generated by Swagger Codegen. + /// Please update the test case below to test the model. + /// + [TestFixture] + public class BetaTests + { + // TODO uncomment below to declare an instance variable for Beta + //private Beta instance; + + /// + /// Setup before each test + /// + [SetUp] + public void Init() + { + // TODO uncomment below to create an instance of Beta + //instance = new Beta(); + } + + /// + /// Clean up after each test + /// + [TearDown] + public void Cleanup() + { + + } + + /// + /// Test an instance of Beta + /// + [Test] + public void BetaInstanceTest() + { + // TODO uncomment below to test "IsInstanceOfType" Beta + //Assert.IsInstanceOfType (instance, "variable 'instance' is a Beta"); + } + + + /// + /// Test the property 'PeriodType' + /// + [Test] + public void PeriodTypeTest() + { + // TODO unit test for the property 'PeriodType' + } + /// + /// Test the property 'OneYearBeta' + /// + [Test] + public void OneYearBetaTest() + { + // TODO unit test for the property 'OneYearBeta' + } + /// + /// Test the property 'ThreeYearBeta' + /// + [Test] + public void ThreeYearBetaTest() + { + // TODO unit test for the property 'ThreeYearBeta' + } + /// + /// Test the property 'FiveYearBeta' + /// + [Test] + public void FiveYearBetaTest() + { + // TODO unit test for the property 'FiveYearBeta' + } + /// + /// Test the property 'SevenYearBeta' + /// + [Test] + public void SevenYearBetaTest() + { + // TODO unit test for the property 'SevenYearBeta' + } + /// + /// Test the property 'TenYearBeta' + /// + [Test] + public void TenYearBetaTest() + { + // TODO unit test for the property 'TenYearBeta' + } + /// + /// Test the property 'Security' + /// + [Test] + public void SecurityTest() + { + // TODO unit test for the property 'Security' + } + + } + +} diff --git a/src/Intrinio.SDK.Test/Model/OptionIntervalMoverTests.cs b/src/Intrinio.SDK.Test/Model/OptionIntervalMoverTests.cs index deada10..235e29b 100644 --- a/src/Intrinio.SDK.Test/Model/OptionIntervalMoverTests.cs +++ b/src/Intrinio.SDK.Test/Model/OptionIntervalMoverTests.cs @@ -122,6 +122,14 @@ public void AverageTest() { // TODO unit test for the property 'Average' } + /// + /// Test the property 'TradeCount' + /// + [Test] + public void TradeCountTest() + { + // TODO unit test for the property 'TradeCount' + } } diff --git a/src/Intrinio.SDK.Test/Model/OptionIntervalTests.cs b/src/Intrinio.SDK.Test/Model/OptionIntervalTests.cs index 7bb0452..1e1eb9b 100644 --- a/src/Intrinio.SDK.Test/Model/OptionIntervalTests.cs +++ b/src/Intrinio.SDK.Test/Model/OptionIntervalTests.cs @@ -130,6 +130,14 @@ public void ChangeTest() { // TODO unit test for the property 'Change' } + /// + /// Test the property 'TradeCount' + /// + [Test] + public void TradeCountTest() + { + // TODO unit test for the property 'TradeCount' + } } diff --git a/src/Intrinio.SDK.Test/Model/SecurityIntervalMoverTests.cs b/src/Intrinio.SDK.Test/Model/SecurityIntervalMoverTests.cs index 1310404..4250d03 100644 --- a/src/Intrinio.SDK.Test/Model/SecurityIntervalMoverTests.cs +++ b/src/Intrinio.SDK.Test/Model/SecurityIntervalMoverTests.cs @@ -122,6 +122,14 @@ public void AverageTest() { // TODO unit test for the property 'Average' } + /// + /// Test the property 'TradeCount' + /// + [Test] + public void TradeCountTest() + { + // TODO unit test for the property 'TradeCount' + } } diff --git a/src/Intrinio.SDK.Test/Model/StockPriceIntervalTests.cs b/src/Intrinio.SDK.Test/Model/StockPriceIntervalTests.cs index 2240eab..b2c8368 100644 --- a/src/Intrinio.SDK.Test/Model/StockPriceIntervalTests.cs +++ b/src/Intrinio.SDK.Test/Model/StockPriceIntervalTests.cs @@ -250,6 +250,14 @@ public void AskChangePercentTest() { // TODO unit test for the property 'AskChangePercent' } + /// + /// Test the property 'TradeCount' + /// + [Test] + public void TradeCountTest() + { + // TODO unit test for the property 'TradeCount' + } } diff --git a/src/Intrinio.SDK/Api/OptionsApi.cs b/src/Intrinio.SDK/Api/OptionsApi.cs index 839d9f5..6e9e309 100644 --- a/src/Intrinio.SDK/Api/OptionsApi.cs +++ b/src/Intrinio.SDK/Api/OptionsApi.cs @@ -24,8 +24,9 @@ public interface IOptionsApi : IApiAccessor /// Returns all tickers that have existing options contracts. /// /// Thrown when fails to make API call + /// Use underlying symbol vs contract symbol (optional, default to false) /// ApiResponseOptionsTickers - ApiResponseOptionsTickers GetAllOptionsTickers (); + ApiResponseOptionsTickers GetAllOptionsTickers (bool? useUnderlyingSymbols = null); /// /// Options Tickers @@ -34,8 +35,9 @@ public interface IOptionsApi : IApiAccessor /// Returns all tickers that have existing options contracts. /// /// Thrown when fails to make API call + /// Use underlying symbol vs contract symbol (optional, default to false) /// ApiResponse of ApiResponseOptionsTickers - ApiResponse GetAllOptionsTickersWithHttpInfo (); + ApiResponse GetAllOptionsTickersWithHttpInfo (bool? useUnderlyingSymbols = null); /// /// Total open interest and volume aggregated by ticker /// @@ -917,8 +919,9 @@ public interface IOptionsApi : IApiAccessor /// Returns all tickers that have existing options contracts. /// /// Thrown when fails to make API call + /// Use underlying symbol vs contract symbol (optional, default to false) /// Task of ApiResponseOptionsTickers - System.Threading.Tasks.Task GetAllOptionsTickersAsync (); + System.Threading.Tasks.Task GetAllOptionsTickersAsync (bool? useUnderlyingSymbols = null); /// /// Options Tickers @@ -927,8 +930,9 @@ public interface IOptionsApi : IApiAccessor /// Returns all tickers that have existing options contracts. /// /// Thrown when fails to make API call + /// Use underlying symbol vs contract symbol (optional, default to false) /// Task of ApiResponse (ApiResponseOptionsTickers) - System.Threading.Tasks.Task> GetAllOptionsTickersAsyncWithHttpInfo (); + System.Threading.Tasks.Task> GetAllOptionsTickersAsyncWithHttpInfo (bool? useUnderlyingSymbols = null); /// /// Total open interest and volume aggregated by ticker /// @@ -1916,10 +1920,11 @@ private static bool ValidateTimeParam(string time) { /// Options Tickers Returns all tickers that have existing options contracts. /// /// Thrown when fails to make API call + /// Use underlying symbol vs contract symbol (optional, default to false) /// ApiResponseOptionsTickers - public ApiResponseOptionsTickers GetAllOptionsTickers () + public ApiResponseOptionsTickers GetAllOptionsTickers (bool? useUnderlyingSymbols = null) { - ApiResponse localVarResponse = GetAllOptionsTickersWithHttpInfo(); + ApiResponse localVarResponse = GetAllOptionsTickersWithHttpInfo(useUnderlyingSymbols); return localVarResponse.Data; } @@ -1927,9 +1932,10 @@ public ApiResponseOptionsTickers GetAllOptionsTickers () /// Options Tickers Returns all tickers that have existing options contracts. /// /// Thrown when fails to make API call + /// Use underlying symbol vs contract symbol (optional, default to false) /// ApiResponse of ApiResponseOptionsTickers - public ApiResponse< ApiResponseOptionsTickers > GetAllOptionsTickersWithHttpInfo () + public ApiResponse< ApiResponseOptionsTickers > GetAllOptionsTickersWithHttpInfo (bool? useUnderlyingSymbols = null) { var localVarPath = "/options/tickers"; @@ -1954,6 +1960,7 @@ public ApiResponse< ApiResponseOptionsTickers > GetAllOptionsTickersWithHttpInfo localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + if (useUnderlyingSymbols != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "use_underlying_symbols", useUnderlyingSymbols)); // query parameter // authentication (ApiKeyAuth) required if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key"))) @@ -1983,10 +1990,11 @@ public ApiResponse< ApiResponseOptionsTickers > GetAllOptionsTickersWithHttpInfo /// Options Tickers Returns all tickers that have existing options contracts. /// /// Thrown when fails to make API call + /// Use underlying symbol vs contract symbol (optional, default to false) /// Task of ApiResponseOptionsTickers - public async System.Threading.Tasks.Task GetAllOptionsTickersAsync () + public async System.Threading.Tasks.Task GetAllOptionsTickersAsync (bool? useUnderlyingSymbols = null) { - ApiResponse localVarResponse = await GetAllOptionsTickersAsyncWithHttpInfo(); + ApiResponse localVarResponse = await GetAllOptionsTickersAsyncWithHttpInfo(useUnderlyingSymbols); return localVarResponse.Data; } @@ -1995,8 +2003,9 @@ public async System.Threading.Tasks.Task GetAllOption /// Options Tickers Returns all tickers that have existing options contracts. /// /// Thrown when fails to make API call + /// Use underlying symbol vs contract symbol (optional, default to false) /// Task of ApiResponse (ApiResponseOptionsTickers) - public async System.Threading.Tasks.Task> GetAllOptionsTickersAsyncWithHttpInfo () + public async System.Threading.Tasks.Task> GetAllOptionsTickersAsyncWithHttpInfo (bool? useUnderlyingSymbols = null) { var localVarPath = "/options/tickers"; @@ -2021,6 +2030,7 @@ public async System.Threading.Tasks.Task> localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + if (useUnderlyingSymbols != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "use_underlying_symbols", useUnderlyingSymbols)); // query parameter // authentication (ApiKeyAuth) required if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key"))) diff --git a/src/Intrinio.SDK/Api/StockExchangeApi.cs b/src/Intrinio.SDK/Api/StockExchangeApi.cs index 5755fd4..f9ec099 100644 --- a/src/Intrinio.SDK/Api/StockExchangeApi.cs +++ b/src/Intrinio.SDK/Api/StockExchangeApi.cs @@ -45,6 +45,35 @@ public interface IStockExchangeApi : IApiAccessor /// ApiResponse of ApiResponseStockExchanges ApiResponse GetAllStockExchangesWithHttpInfo (string city = null, string country = null, string countryCode = null, int? pageSize = null); /// + /// Security Betas + /// + /// + /// Returns security beta data in the Stock Exchange with the given `identifier` + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// Only of the given type (optional, default to weekly) + /// Return data for this period end date. (optional) + /// The number of results to return (optional, default to 100) + /// Gets the next page of data from a previous API call (optional) + /// ApiResponseStockExchangeBetas + 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` + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// Only of the given type (optional, default to weekly) + /// Return data for this period end date. (optional) + /// The number of results to return (optional, default to 100) + /// Gets the next page of data from a previous API call (optional) + /// ApiResponse of ApiResponseStockExchangeBetas + ApiResponse GetStockExchangeBetasWithHttpInfo (string identifier, string type = null, Object date = null, int? pageSize = null, string nextPage = null); + /// /// Lookup Stock Exchange /// /// @@ -296,6 +325,35 @@ public interface IStockExchangeApi : IApiAccessor /// Task of ApiResponse (ApiResponseStockExchanges) System.Threading.Tasks.Task> GetAllStockExchangesAsyncWithHttpInfo (string city = null, string country = null, string countryCode = null, int? pageSize = null); /// + /// Security Betas + /// + /// + /// Returns security beta data in the Stock Exchange with the given `identifier` + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// Only of the given type (optional, default to weekly) + /// Return data for this period end date. (optional) + /// The number of results to return (optional, default to 100) + /// Gets the next page of data from a previous API call (optional) + /// Task of ApiResponseStockExchangeBetas + System.Threading.Tasks.Task GetStockExchangeBetasAsync (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` + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// Only of the given type (optional, default to weekly) + /// Return data for this period end date. (optional) + /// The number of results to return (optional, default to 100) + /// Gets the next page of data from a previous API call (optional) + /// Task of ApiResponse (ApiResponseStockExchangeBetas) + System.Threading.Tasks.Task> GetStockExchangeBetasAsyncWithHttpInfo (string identifier, string type = null, Object date = null, int? pageSize = null, string nextPage = null); + /// /// Lookup Stock Exchange /// /// @@ -786,6 +844,176 @@ public async System.Threading.Tasks.Task> (ApiResponseStockExchanges) Configuration.ApiClient.Deserialize(localVarResponse, typeof(ApiResponseStockExchanges))); } + /// + /// Security Betas Returns security beta data in the Stock Exchange with the given `identifier` + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// Only of the given type (optional, default to weekly) + /// Return data for this period end date. (optional) + /// The number of results to return (optional, default to 100) + /// Gets the next page of data from a previous API call (optional) + /// ApiResponseStockExchangeBetas + public ApiResponseStockExchangeBetas GetStockExchangeBetas (string identifier, string type = null, Object date = null, int? pageSize = null, string nextPage = null) + { + ApiResponse localVarResponse = GetStockExchangeBetasWithHttpInfo(identifier, type, date, pageSize, nextPage); + return localVarResponse.Data; + } + + /// + /// Security Betas Returns security beta data in the Stock Exchange with the given `identifier` + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// Only of the given type (optional, default to weekly) + /// Return data for this period end date. (optional) + /// The number of results to return (optional, default to 100) + /// Gets the next page of data from a previous API call (optional) + /// ApiResponse of ApiResponseStockExchangeBetas + + public ApiResponse< ApiResponseStockExchangeBetas > GetStockExchangeBetasWithHttpInfo (string identifier, string type = null, Object date = null, int? pageSize = null, string nextPage = null) + { + // verify the required parameter 'identifier' is set + if (identifier == null) + throw new ApiException(400, "Missing required parameter 'identifier' when calling StockExchangeApi->GetStockExchangeBetas"); + + var localVarPath = "/stock_exchanges/{identifier}/betas"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + if (identifier != null) localVarPathParams.Add("identifier", Configuration.ApiClient.ParameterToString(identifier)); // path parameter + if (type != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "type", type)); // query parameter + if (date != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "date", date)); // query parameter + if (pageSize != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "page_size", pageSize)); // query parameter + if (nextPage != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "next_page", nextPage)); // query parameter + + // authentication (ApiKeyAuth) required + if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key"))) + { + localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "api_key", Configuration.GetApiKeyWithPrefix("api_key"))); + } + + // make the HTTP request + RestResponse localVarResponse = (RestResponse) Configuration.ApiClient.CallApi(localVarPath, + RestSharp.Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStockExchangeBetas", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.Select(x => new KeyValuePair(x.Name, x.Value.ToString())).ToList(), + (ApiResponseStockExchangeBetas) Configuration.ApiClient.Deserialize(localVarResponse, typeof(ApiResponseStockExchangeBetas))); + } + + /// + /// Security Betas Returns security beta data in the Stock Exchange with the given `identifier` + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// Only of the given type (optional, default to weekly) + /// Return data for this period end date. (optional) + /// The number of results to return (optional, default to 100) + /// Gets the next page of data from a previous API call (optional) + /// Task of ApiResponseStockExchangeBetas + public async System.Threading.Tasks.Task GetStockExchangeBetasAsync (string identifier, string type = null, Object date = null, int? pageSize = null, string nextPage = null) + { + ApiResponse localVarResponse = await GetStockExchangeBetasAsyncWithHttpInfo(identifier, type, date, pageSize, nextPage); + return localVarResponse.Data; + + } + + /// + /// Security Betas Returns security beta data in the Stock Exchange with the given `identifier` + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// Only of the given type (optional, default to weekly) + /// Return data for this period end date. (optional) + /// The number of results to return (optional, default to 100) + /// Gets the next page of data from a previous API call (optional) + /// Task of ApiResponse (ApiResponseStockExchangeBetas) + public async System.Threading.Tasks.Task> GetStockExchangeBetasAsyncWithHttpInfo (string identifier, string type = null, Object date = null, int? pageSize = null, string nextPage = null) + { + // verify the required parameter 'identifier' is set + if (identifier == null) + throw new ApiException(400, "Missing required parameter 'identifier' when calling StockExchangeApi->GetStockExchangeBetas"); + + var localVarPath = "/stock_exchanges/{identifier}/betas"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + if (identifier != null) localVarPathParams.Add("identifier", Configuration.ApiClient.ParameterToString(identifier)); // path parameter + if (type != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "type", type)); // query parameter + if (date != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "date", date)); // query parameter + if (pageSize != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "page_size", pageSize)); // query parameter + if (nextPage != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "next_page", nextPage)); // query parameter + + // authentication (ApiKeyAuth) required + if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key"))) + { + localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "api_key", Configuration.GetApiKeyWithPrefix("api_key"))); + } + + // make the HTTP request + RestResponse localVarResponse = (RestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath, + RestSharp.Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStockExchangeBetas", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.Select(x => new KeyValuePair(x.Name, x.Value.ToString())).ToList(), + (ApiResponseStockExchangeBetas) Configuration.ApiClient.Deserialize(localVarResponse, typeof(ApiResponseStockExchangeBetas))); + } + /// /// Lookup Stock Exchange Returns the Stock Exchange with the given `identifier` /// diff --git a/src/Intrinio.SDK/Client/Configuration.cs b/src/Intrinio.SDK/Client/Configuration.cs index fbafe0b..a2fea29 100644 --- a/src/Intrinio.SDK/Client/Configuration.cs +++ b/src/Intrinio.SDK/Client/Configuration.cs @@ -21,7 +21,7 @@ public class Configuration : IReadableConfiguration /// Version of the package. /// /// Version of the package. - public const string Version = "7.11.0"; + public const string Version = "7.12.0"; /// /// Identifier for ISO 8601 DateTime Format @@ -106,7 +106,7 @@ static Configuration() /// public Configuration() { - UserAgent = "Swagger-Codegen/7.11.0/csharp"; + UserAgent = "Swagger-Codegen/7.12.0/csharp"; BasePath = "https://api-v2.intrinio.com"; DefaultHeader = new ConcurrentDictionary(); ApiKey = new ConcurrentDictionary(); @@ -366,8 +366,8 @@ public static String ToDebugReport() String report = "C# SDK (Intrinio.SDK) Debug Report:\n"; report += " OS: " + System.Environment.OSVersion + "\n"; report += " .NET Framework Version: " + System.Environment.Version + "\n"; - report += " Version of the API: 2.75.0\n"; - report += " SDK Package Version: 7.11.0\n"; + report += " Version of the API: 2.76.3\n"; + report += " SDK Package Version: 7.12.0\n"; return report; } diff --git a/src/Intrinio.SDK/Intrinio.SDK.csproj b/src/Intrinio.SDK/Intrinio.SDK.csproj index a3735ac..908bd0b 100644 --- a/src/Intrinio.SDK/Intrinio.SDK.csproj +++ b/src/Intrinio.SDK/Intrinio.SDK.csproj @@ -4,7 +4,7 @@ Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://docs.intrinio.com/documentation/api_v2). If you need additional help in using the API, please visit the [Intrinio website](https://intrinio.com) and click on the chat icon in the lower right corner. - OpenAPI spec version: 2.75.0 + OpenAPI spec version: 2.76.3 --> diff --git a/src/Intrinio.SDK/Model/ApiResponseStockExchangeBetas.cs b/src/Intrinio.SDK/Model/ApiResponseStockExchangeBetas.cs new file mode 100644 index 0000000..66c69c3 --- /dev/null +++ b/src/Intrinio.SDK/Model/ApiResponseStockExchangeBetas.cs @@ -0,0 +1,151 @@ + + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using SwaggerDateConverter = Intrinio.SDK.Client.SwaggerDateConverter; + +namespace Intrinio.SDK.Model +{ + /// + /// ApiResponseStockExchangeBetas + /// + [DataContract] + public partial class ApiResponseStockExchangeBetas : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The mover security.. + /// The Stock Exchange resolved from the given identifier. + /// The token required to request the next page of the data. If null, no further results are available.. + public ApiResponseStockExchangeBetas(List Betas = default(List), StockExchange StockExchange = default(StockExchange), string NextPage = default(string)) + { + this.Betas = Betas; + this.StockExchange = StockExchange; + this.NextPage = NextPage; + } + + /// + /// The mover security. + /// + /// The mover security. + [DataMember(Name="betas", EmitDefaultValue=false)] + public List Betas { get; set; } + + /// + /// The Stock Exchange resolved from the given identifier + /// + /// The Stock Exchange resolved from the given identifier + [DataMember(Name="stock_exchange", EmitDefaultValue=false)] + public StockExchange StockExchange { get; set; } + + /// + /// The token required to request the next page of the data. If null, no further results are available. + /// + /// The token required to request the next page of the data. If null, no further results are available. + [DataMember(Name="next_page", EmitDefaultValue=false)] + public string NextPage { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ApiResponseStockExchangeBetas {\n"); + sb.Append(" Betas: ").Append(Betas).Append("\n"); + sb.Append(" StockExchange: ").Append(StockExchange).Append("\n"); + sb.Append(" NextPage: ").Append(NextPage).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ApiResponseStockExchangeBetas); + } + + /// + /// Returns true if ApiResponseStockExchangeBetas instances are equal + /// + /// Instance of ApiResponseStockExchangeBetas to be compared + /// Boolean + public bool Equals(ApiResponseStockExchangeBetas input) + { + if (input == null) + return false; + + return + ( + this.Betas == input.Betas || + this.Betas != null && + this.Betas.SequenceEqual(input.Betas) + ) && + ( + this.StockExchange == input.StockExchange || + (this.StockExchange != null && + this.StockExchange.Equals(input.StockExchange)) + ) && + ( + this.NextPage == input.NextPage || + (this.NextPage != null && + this.NextPage.Equals(input.NextPage)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Betas != null) + hashCode = hashCode * 59 + this.Betas.GetHashCode(); + if (this.StockExchange != null) + hashCode = hashCode * 59 + this.StockExchange.GetHashCode(); + if (this.NextPage != null) + hashCode = hashCode * 59 + this.NextPage.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/Intrinio.SDK/Model/Beta.cs b/src/Intrinio.SDK/Model/Beta.cs new file mode 100644 index 0000000..9b680ed --- /dev/null +++ b/src/Intrinio.SDK/Model/Beta.cs @@ -0,0 +1,240 @@ + + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using SwaggerDateConverter = Intrinio.SDK.Client.SwaggerDateConverter; + +namespace Intrinio.SDK.Model +{ + /// + /// A beta value for a security. + /// + [DataContract] + public partial class Beta : IEquatable, IValidatableObject + { + /// + /// Type of period for this beta value. + /// + /// Type of period for this beta value. + [JsonConverter(typeof(StringEnumConverter))] + public enum PeriodTypeEnum + { + + /// + /// Enum Weekly for value: weekly + /// + [EnumMember(Value = "weekly")] + Weekly = 1, + + /// + /// Enum Monthly for value: monthly + /// + [EnumMember(Value = "monthly")] + Monthly = 2 + } + + /// + /// Type of period for this beta value. + /// + /// Type of period for this beta value. + [DataMember(Name="period_type", EmitDefaultValue=false)] + public PeriodTypeEnum? PeriodType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Type of period for this beta value.. + /// The one year beta value for this security.. + /// The three year beta value for this security.. + /// The five year beta value for this security.. + /// The seven year beta value for this security.. + /// The ten year beta value for this security.. + /// The Security.. + public Beta(PeriodTypeEnum? PeriodType = default(PeriodTypeEnum?), decimal? OneYearBeta = default(decimal?), decimal? ThreeYearBeta = default(decimal?), decimal? FiveYearBeta = default(decimal?), decimal? SevenYearBeta = default(decimal?), decimal? TenYearBeta = default(decimal?), SecuritySummary Security = default(SecuritySummary)) + { + this.PeriodType = PeriodType; + this.OneYearBeta = OneYearBeta; + this.ThreeYearBeta = ThreeYearBeta; + this.FiveYearBeta = FiveYearBeta; + this.SevenYearBeta = SevenYearBeta; + this.TenYearBeta = TenYearBeta; + this.Security = Security; + } + + + /// + /// The one year beta value for this security. + /// + /// The one year beta value for this security. + [DataMember(Name="one_year_beta", EmitDefaultValue=false)] + public decimal? OneYearBeta { get; set; } + + /// + /// The three year beta value for this security. + /// + /// The three year beta value for this security. + [DataMember(Name="three_year_beta", EmitDefaultValue=false)] + public decimal? ThreeYearBeta { get; set; } + + /// + /// The five year beta value for this security. + /// + /// The five year beta value for this security. + [DataMember(Name="five_year_beta", EmitDefaultValue=false)] + public decimal? FiveYearBeta { get; set; } + + /// + /// The seven year beta value for this security. + /// + /// The seven year beta value for this security. + [DataMember(Name="seven_year_beta", EmitDefaultValue=false)] + public decimal? SevenYearBeta { get; set; } + + /// + /// The ten year beta value for this security. + /// + /// The ten year beta value for this security. + [DataMember(Name="ten_year_beta", EmitDefaultValue=false)] + public decimal? TenYearBeta { get; set; } + + /// + /// The Security. + /// + /// The Security. + [DataMember(Name="security", EmitDefaultValue=false)] + public SecuritySummary Security { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Beta {\n"); + sb.Append(" PeriodType: ").Append(PeriodType).Append("\n"); + sb.Append(" OneYearBeta: ").Append(OneYearBeta).Append("\n"); + sb.Append(" ThreeYearBeta: ").Append(ThreeYearBeta).Append("\n"); + sb.Append(" FiveYearBeta: ").Append(FiveYearBeta).Append("\n"); + sb.Append(" SevenYearBeta: ").Append(SevenYearBeta).Append("\n"); + sb.Append(" TenYearBeta: ").Append(TenYearBeta).Append("\n"); + sb.Append(" Security: ").Append(Security).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Beta); + } + + /// + /// Returns true if Beta instances are equal + /// + /// Instance of Beta to be compared + /// Boolean + public bool Equals(Beta input) + { + if (input == null) + return false; + + return + ( + this.PeriodType == input.PeriodType || + (this.PeriodType != null && + this.PeriodType.Equals(input.PeriodType)) + ) && + ( + this.OneYearBeta == input.OneYearBeta || + (this.OneYearBeta != null && + this.OneYearBeta.Equals(input.OneYearBeta)) + ) && + ( + this.ThreeYearBeta == input.ThreeYearBeta || + (this.ThreeYearBeta != null && + this.ThreeYearBeta.Equals(input.ThreeYearBeta)) + ) && + ( + this.FiveYearBeta == input.FiveYearBeta || + (this.FiveYearBeta != null && + this.FiveYearBeta.Equals(input.FiveYearBeta)) + ) && + ( + this.SevenYearBeta == input.SevenYearBeta || + (this.SevenYearBeta != null && + this.SevenYearBeta.Equals(input.SevenYearBeta)) + ) && + ( + this.TenYearBeta == input.TenYearBeta || + (this.TenYearBeta != null && + this.TenYearBeta.Equals(input.TenYearBeta)) + ) && + ( + this.Security == input.Security || + (this.Security != null && + this.Security.Equals(input.Security)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PeriodType != null) + hashCode = hashCode * 59 + this.PeriodType.GetHashCode(); + if (this.OneYearBeta != null) + hashCode = hashCode * 59 + this.OneYearBeta.GetHashCode(); + if (this.ThreeYearBeta != null) + hashCode = hashCode * 59 + this.ThreeYearBeta.GetHashCode(); + if (this.FiveYearBeta != null) + hashCode = hashCode * 59 + this.FiveYearBeta.GetHashCode(); + if (this.SevenYearBeta != null) + hashCode = hashCode * 59 + this.SevenYearBeta.GetHashCode(); + if (this.TenYearBeta != null) + hashCode = hashCode * 59 + this.TenYearBeta.GetHashCode(); + if (this.Security != null) + hashCode = hashCode * 59 + this.Security.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/Intrinio.SDK/Model/OptionInterval.cs b/src/Intrinio.SDK/Model/OptionInterval.cs index 5d8cafc..31ff8bb 100644 --- a/src/Intrinio.SDK/Model/OptionInterval.cs +++ b/src/Intrinio.SDK/Model/OptionInterval.cs @@ -31,10 +31,11 @@ public partial class OptionInterval : IEquatable, IValidatableO /// The highest traded contract price in this interval.. /// The lowest traded contract price in this interval.. /// The last traded contract price in this interval.. - /// The volume of contract trades in this interval.. + /// The volume of contracts traded in this interval.. /// The volume weighted average price of contract trades in this interval.. /// The ratio of Close minus Open to Open.. - public OptionInterval(DateTime? OpenTime = default(DateTime?), DateTime? CloseTime = default(DateTime?), decimal? Open = default(decimal?), decimal? High = default(decimal?), decimal? Low = default(decimal?), decimal? Close = default(decimal?), decimal? Volume = default(decimal?), decimal? Average = default(decimal?), decimal? Change = default(decimal?)) + /// The number of qualified trades executed during the period. + public OptionInterval(DateTime? OpenTime = default(DateTime?), DateTime? CloseTime = default(DateTime?), decimal? Open = default(decimal?), decimal? High = default(decimal?), decimal? Low = default(decimal?), decimal? Close = default(decimal?), decimal? Volume = default(decimal?), decimal? Average = default(decimal?), decimal? Change = default(decimal?), decimal? TradeCount = default(decimal?)) { this.OpenTime = OpenTime; this.CloseTime = CloseTime; @@ -45,6 +46,7 @@ public partial class OptionInterval : IEquatable, IValidatableO this.Volume = Volume; this.Average = Average; this.Change = Change; + this.TradeCount = TradeCount; } /// @@ -90,9 +92,9 @@ public partial class OptionInterval : IEquatable, IValidatableO public decimal? Close { get; set; } /// - /// The volume of contract trades in this interval. + /// The volume of contracts traded in this interval. /// - /// The volume of contract trades in this interval. + /// The volume of contracts traded in this interval. [DataMember(Name="volume", EmitDefaultValue=false)] public decimal? Volume { get; set; } @@ -110,6 +112,13 @@ public partial class OptionInterval : IEquatable, IValidatableO [DataMember(Name="change", EmitDefaultValue=false)] public decimal? Change { get; set; } + /// + /// The number of qualified trades executed during the period + /// + /// The number of qualified trades executed during the period + [DataMember(Name="trade_count", EmitDefaultValue=false)] + public decimal? TradeCount { get; set; } + /// /// Returns the string presentation of the object /// @@ -127,6 +136,7 @@ public override string ToString() sb.Append(" Volume: ").Append(Volume).Append("\n"); sb.Append(" Average: ").Append(Average).Append("\n"); sb.Append(" Change: ").Append(Change).Append("\n"); + sb.Append(" TradeCount: ").Append(TradeCount).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -205,6 +215,11 @@ public bool Equals(OptionInterval input) this.Change == input.Change || (this.Change != null && this.Change.Equals(input.Change)) + ) && + ( + this.TradeCount == input.TradeCount || + (this.TradeCount != null && + this.TradeCount.Equals(input.TradeCount)) ); } @@ -235,6 +250,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.Average.GetHashCode(); if (this.Change != null) hashCode = hashCode * 59 + this.Change.GetHashCode(); + if (this.TradeCount != null) + hashCode = hashCode * 59 + this.TradeCount.GetHashCode(); return hashCode; } } diff --git a/src/Intrinio.SDK/Model/OptionIntervalMover.cs b/src/Intrinio.SDK/Model/OptionIntervalMover.cs index faefebe..a059fd4 100644 --- a/src/Intrinio.SDK/Model/OptionIntervalMover.cs +++ b/src/Intrinio.SDK/Model/OptionIntervalMover.cs @@ -31,9 +31,10 @@ public partial class OptionIntervalMover : IEquatable, IVa /// The highest traded contract price in this interval.. /// The lowest traded contract price in this interval.. /// The last traded contract price in this interval.. - /// The volume of contract trades in this interval.. + /// The volume of contracts traded in this interval.. /// The volume weighted average price of contract trades in this interval.. - public OptionIntervalMover(string Contract = default(string), decimal? Change = default(decimal?), decimal? Open = default(decimal?), decimal? High = default(decimal?), decimal? Low = default(decimal?), decimal? Close = default(decimal?), decimal? Volume = default(decimal?), decimal? Average = default(decimal?)) + /// The number of contract trades executed in this interval. + public OptionIntervalMover(string Contract = default(string), decimal? Change = default(decimal?), decimal? Open = default(decimal?), decimal? High = default(decimal?), decimal? Low = default(decimal?), decimal? Close = default(decimal?), decimal? Volume = default(decimal?), decimal? Average = default(decimal?), decimal? TradeCount = default(decimal?)) { this.Contract = Contract; this.Change = Change; @@ -43,6 +44,7 @@ public partial class OptionIntervalMover : IEquatable, IVa this.Close = Close; this.Volume = Volume; this.Average = Average; + this.TradeCount = TradeCount; } /// @@ -88,9 +90,9 @@ public partial class OptionIntervalMover : IEquatable, IVa public decimal? Close { get; set; } /// - /// The volume of contract trades in this interval. + /// The volume of contracts traded in this interval. /// - /// The volume of contract trades in this interval. + /// The volume of contracts traded in this interval. [DataMember(Name="volume", EmitDefaultValue=false)] public decimal? Volume { get; set; } @@ -101,6 +103,13 @@ public partial class OptionIntervalMover : IEquatable, IVa [DataMember(Name="average", EmitDefaultValue=false)] public decimal? Average { get; set; } + /// + /// The number of contract trades executed in this interval + /// + /// The number of contract trades executed in this interval + [DataMember(Name="trade_count", EmitDefaultValue=false)] + public decimal? TradeCount { get; set; } + /// /// Returns the string presentation of the object /// @@ -117,6 +126,7 @@ public override string ToString() sb.Append(" Close: ").Append(Close).Append("\n"); sb.Append(" Volume: ").Append(Volume).Append("\n"); sb.Append(" Average: ").Append(Average).Append("\n"); + sb.Append(" TradeCount: ").Append(TradeCount).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -190,6 +200,11 @@ public bool Equals(OptionIntervalMover input) this.Average == input.Average || (this.Average != null && this.Average.Equals(input.Average)) + ) && + ( + this.TradeCount == input.TradeCount || + (this.TradeCount != null && + this.TradeCount.Equals(input.TradeCount)) ); } @@ -218,6 +233,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.Volume.GetHashCode(); if (this.Average != null) hashCode = hashCode * 59 + this.Average.GetHashCode(); + if (this.TradeCount != null) + hashCode = hashCode * 59 + this.TradeCount.GetHashCode(); return hashCode; } } diff --git a/src/Intrinio.SDK/Model/SecurityIntervalMover.cs b/src/Intrinio.SDK/Model/SecurityIntervalMover.cs index 24e5c4e..e6cfff2 100644 --- a/src/Intrinio.SDK/Model/SecurityIntervalMover.cs +++ b/src/Intrinio.SDK/Model/SecurityIntervalMover.cs @@ -31,9 +31,10 @@ public partial class SecurityIntervalMover : IEquatable, /// The highest traded price in this interval.. /// The lowest traded price in this interval.. /// The last traded price in this interval.. - /// The volume of trades in this interval.. + /// The volume of shares in this interval.. /// The volume weighted average price of trades in this interval.. - public SecurityIntervalMover(string Symbol = default(string), decimal? Change = default(decimal?), decimal? Open = default(decimal?), decimal? High = default(decimal?), decimal? Low = default(decimal?), decimal? Close = default(decimal?), decimal? Volume = default(decimal?), decimal? Average = default(decimal?)) + /// The of trades in this interval.. + public SecurityIntervalMover(string Symbol = default(string), decimal? Change = default(decimal?), decimal? Open = default(decimal?), decimal? High = default(decimal?), decimal? Low = default(decimal?), decimal? Close = default(decimal?), decimal? Volume = default(decimal?), decimal? Average = default(decimal?), decimal? TradeCount = default(decimal?)) { this.Symbol = Symbol; this.Change = Change; @@ -43,6 +44,7 @@ public partial class SecurityIntervalMover : IEquatable, this.Close = Close; this.Volume = Volume; this.Average = Average; + this.TradeCount = TradeCount; } /// @@ -88,9 +90,9 @@ public partial class SecurityIntervalMover : IEquatable, public decimal? Close { get; set; } /// - /// The volume of trades in this interval. + /// The volume of shares in this interval. /// - /// The volume of trades in this interval. + /// The volume of shares in this interval. [DataMember(Name="volume", EmitDefaultValue=false)] public decimal? Volume { get; set; } @@ -101,6 +103,13 @@ public partial class SecurityIntervalMover : IEquatable, [DataMember(Name="average", EmitDefaultValue=false)] public decimal? Average { get; set; } + /// + /// The of trades in this interval. + /// + /// The of trades in this interval. + [DataMember(Name="trade_count", EmitDefaultValue=false)] + public decimal? TradeCount { get; set; } + /// /// Returns the string presentation of the object /// @@ -117,6 +126,7 @@ public override string ToString() sb.Append(" Close: ").Append(Close).Append("\n"); sb.Append(" Volume: ").Append(Volume).Append("\n"); sb.Append(" Average: ").Append(Average).Append("\n"); + sb.Append(" TradeCount: ").Append(TradeCount).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -190,6 +200,11 @@ public bool Equals(SecurityIntervalMover input) this.Average == input.Average || (this.Average != null && this.Average.Equals(input.Average)) + ) && + ( + this.TradeCount == input.TradeCount || + (this.TradeCount != null && + this.TradeCount.Equals(input.TradeCount)) ); } @@ -218,6 +233,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.Volume.GetHashCode(); if (this.Average != null) hashCode = hashCode * 59 + this.Average.GetHashCode(); + if (this.TradeCount != null) + hashCode = hashCode * 59 + this.TradeCount.GetHashCode(); return hashCode; } } diff --git a/src/Intrinio.SDK/Model/StockPriceInterval.cs b/src/Intrinio.SDK/Model/StockPriceInterval.cs index 0cf20f2..ee0b079 100644 --- a/src/Intrinio.SDK/Model/StockPriceInterval.cs +++ b/src/Intrinio.SDK/Model/StockPriceInterval.cs @@ -100,7 +100,8 @@ public enum IntervalEnum /// The timestamp that represents the first ask time from the interval span.. /// The timestamp that represents the last ask time from the interval span.. /// The ratio of the close to open ask difference, in percent.. - public StockPriceInterval(DateTime? Time = default(DateTime?), decimal? Open = default(decimal?), decimal? Close = default(decimal?), decimal? High = default(decimal?), decimal? Low = default(decimal?), decimal? Volume = default(decimal?), DateTime? CloseTime = default(DateTime?), IntervalEnum? Interval = default(IntervalEnum?), decimal? Average = default(decimal?), decimal? Change = default(decimal?), decimal? BidHigh = default(decimal?), decimal? BidLow = default(decimal?), decimal? BidClose = default(decimal?), decimal? BidOpen = default(decimal?), DateTime? BidFirstTime = default(DateTime?), DateTime? BidLastTime = default(DateTime?), decimal? BidChangePercent = default(decimal?), decimal? AskHigh = default(decimal?), decimal? AskLow = default(decimal?), decimal? AskClose = default(decimal?), decimal? AskOpen = default(decimal?), DateTime? AskFirstTime = default(DateTime?), DateTime? AskLastTime = default(DateTime?), decimal? AskChangePercent = default(decimal?)) + /// The number of qualified trades executed during the period. + public StockPriceInterval(DateTime? Time = default(DateTime?), decimal? Open = default(decimal?), decimal? Close = default(decimal?), decimal? High = default(decimal?), decimal? Low = default(decimal?), decimal? Volume = default(decimal?), DateTime? CloseTime = default(DateTime?), IntervalEnum? Interval = default(IntervalEnum?), decimal? Average = default(decimal?), decimal? Change = default(decimal?), decimal? BidHigh = default(decimal?), decimal? BidLow = default(decimal?), decimal? BidClose = default(decimal?), decimal? BidOpen = default(decimal?), DateTime? BidFirstTime = default(DateTime?), DateTime? BidLastTime = default(DateTime?), decimal? BidChangePercent = default(decimal?), decimal? AskHigh = default(decimal?), decimal? AskLow = default(decimal?), decimal? AskClose = default(decimal?), decimal? AskOpen = default(decimal?), DateTime? AskFirstTime = default(DateTime?), DateTime? AskLastTime = default(DateTime?), decimal? AskChangePercent = default(decimal?), decimal? TradeCount = default(decimal?)) { this.Time = Time; this.Open = Open; @@ -126,6 +127,7 @@ public enum IntervalEnum this.AskFirstTime = AskFirstTime; this.AskLastTime = AskLastTime; this.AskChangePercent = AskChangePercent; + this.TradeCount = TradeCount; } /// @@ -290,6 +292,13 @@ public enum IntervalEnum [DataMember(Name="ask_change_percent", EmitDefaultValue=false)] public decimal? AskChangePercent { get; set; } + /// + /// The number of qualified trades executed during the period + /// + /// The number of qualified trades executed during the period + [DataMember(Name="trade_count", EmitDefaultValue=false)] + public decimal? TradeCount { get; set; } + /// /// Returns the string presentation of the object /// @@ -322,6 +331,7 @@ public override string ToString() sb.Append(" AskFirstTime: ").Append(AskFirstTime).Append("\n"); sb.Append(" AskLastTime: ").Append(AskLastTime).Append("\n"); sb.Append(" AskChangePercent: ").Append(AskChangePercent).Append("\n"); + sb.Append(" TradeCount: ").Append(TradeCount).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -475,6 +485,11 @@ public bool Equals(StockPriceInterval input) this.AskChangePercent == input.AskChangePercent || (this.AskChangePercent != null && this.AskChangePercent.Equals(input.AskChangePercent)) + ) && + ( + this.TradeCount == input.TradeCount || + (this.TradeCount != null && + this.TradeCount.Equals(input.TradeCount)) ); } @@ -535,6 +550,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.AskLastTime.GetHashCode(); if (this.AskChangePercent != null) hashCode = hashCode * 59 + this.AskChangePercent.GetHashCode(); + if (this.TradeCount != null) + hashCode = hashCode * 59 + this.TradeCount.GetHashCode(); return hashCode; } }