From 49639bfb77807e299345842e3c751fecf00f57e9 Mon Sep 17 00:00:00 2001 From: ssnyder-intrinio Date: Thu, 31 Oct 2024 11:51:20 -0500 Subject: [PATCH] No release notes for this build --- Intrinio.SDK.nuspec | 10 +- README.md | 18 +- build.bat | 8 +- build.sh | 8 +- docs/ApiResponseSecurityQuote.md | 9 + docs/ApiResponseStockExchangeMovers.md | 23 + docs/ApiResponseStockExchangeQuote.md | 23 + docs/BulkDownloadSummary.md | 1 + docs/CompanyApi.md | 6 +- docs/OptionsApi.md | 16 +- docs/RealtimeStockPrice.md | 8 + docs/SecurityApi.md | 4 +- docs/StockExchangeApi.md | 291 +++++++- docs/StockExchangeMover.md | 22 + mono_nunit_test.sh | 4 +- src/Intrinio.SDK.Test/Api/OptionsApiTests.cs | 8 +- .../Api/StockExchangeApiTests.cs | 48 +- .../Intrinio.SDK.Test.csproj | 10 +- .../Model/ApiResponseSecurityQuoteTests.cs | 72 ++ .../ApiResponseStockExchangeMoversTests.cs | 80 ++ .../ApiResponseStockExchangeQuoteTests.cs | 80 ++ .../Model/BulkDownloadSummaryTests.cs | 8 + .../Model/RealtimeStockPriceTests.cs | 64 ++ .../Model/StockExchangeMoverTests.cs | 120 +++ src/Intrinio.SDK/Api/CompanyApi.cs | 24 +- src/Intrinio.SDK/Api/OptionsApi.cs | 80 +- src/Intrinio.SDK/Api/SecurityApi.cs | 32 +- src/Intrinio.SDK/Api/StockExchangeApi.cs | 690 +++++++++++++++++- src/Intrinio.SDK/Client/ApiClient.cs | 37 +- src/Intrinio.SDK/Client/Configuration.cs | 73 +- src/Intrinio.SDK/Intrinio.SDK.csproj | 10 +- .../Model/ApiResponseSecurityQuote.cs | 155 +++- .../Model/ApiResponseStockExchangeMovers.cs | 134 ++++ .../Model/ApiResponseStockExchangeQuote.cs | 134 ++++ src/Intrinio.SDK/Model/BulkDownloadSummary.cs | 20 +- src/Intrinio.SDK/Model/RealtimeStockPrice.cs | 139 +++- src/Intrinio.SDK/Model/StockExchangeMover.cs | 219 ++++++ 37 files changed, 2489 insertions(+), 199 deletions(-) create mode 100644 docs/ApiResponseStockExchangeMovers.md create mode 100644 docs/ApiResponseStockExchangeQuote.md create mode 100644 docs/StockExchangeMover.md create mode 100644 src/Intrinio.SDK.Test/Model/ApiResponseStockExchangeMoversTests.cs create mode 100644 src/Intrinio.SDK.Test/Model/ApiResponseStockExchangeQuoteTests.cs create mode 100644 src/Intrinio.SDK.Test/Model/StockExchangeMoverTests.cs create mode 100644 src/Intrinio.SDK/Model/ApiResponseStockExchangeMovers.cs create mode 100644 src/Intrinio.SDK/Model/ApiResponseStockExchangeQuote.cs create mode 100644 src/Intrinio.SDK/Model/StockExchangeMover.cs diff --git a/Intrinio.SDK.nuspec b/Intrinio.SDK.nuspec index cd580c4..0117d96 100644 --- a/Intrinio.SDK.nuspec +++ b/Intrinio.SDK.nuspec @@ -6,7 +6,7 @@ Intrinio - 7.8.0 + 7.10.0 Intrinio @@ -26,10 +26,10 @@ - - - - + + + + diff --git a/README.md b/README.md index 61f5b00..ec32034 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.66.2 -- Package version: 7.8.0 +- API version: 2.72.2 +- Package version: 7.10.0 @@ -24,10 +24,10 @@ Alternatively, you can download the required DLLs from the [Releases page](https ## Dependencies -- [RestSharp](https://www.nuget.org/packages/RestSharp) - 108.0.1 or later +- [RestSharp](https://www.nuget.org/packages/RestSharp) - 112.0.0 or later - [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 7.0.0 or later -- [JsonSubTypes](https://www.nuget.org/packages/JsonSubTypes/) - 1.9.0 or later -- [Polly](https://www.nuget.org/packages/Polly) - 7.2.3 or later +- [JsonSubTypes](https://www.nuget.org/packages/JsonSubTypes/) - 2.0.1 or later +- [Polly](https://www.nuget.org/packages/Polly) - 8.4.1 or later The DLLs included in the package may not be the latest version. We recommend using [NuGet] (https://docs.nuget.org/consume/installing-nuget) to obtain the latest version of the packages: ``` @@ -138,7 +138,7 @@ Class | Method | HTTP request | Description *CompanyApi* | [**GetCompanyHistoricalData**](docs/CompanyApi.md#getcompanyhistoricaldata) | **GET** /companies/{identifier}/historical_data/{tag} | Historical Data for Company *CompanyApi* | [**GetCompanyIpos**](docs/CompanyApi.md#getcompanyipos) | **GET** /companies/ipos | IPOs *CompanyApi* | [**GetCompanyNews**](docs/CompanyApi.md#getcompanynews) | **GET** /companies/{identifier}/news | All News by Company -*CompanyApi* | [**GetCompanyNewsBody**](docs/CompanyApi.md#getcompanynewsbody) | **GET** /companies/news/body | The body of a news article. This endpoint requires additional authorization beyond basic news access. Please see a representative for details. +*CompanyApi* | [**GetCompanyNewsBody**](docs/CompanyApi.md#getcompanynewsbody) | **GET** /companies/news/body | News Article Body *CompanyApi* | [**GetCompanyPublicFloat**](docs/CompanyApi.md#getcompanypublicfloat) | **GET** /companies/{identifier}/public_float | Get Company's public float *CompanyApi* | [**GetCompanySecurities**](docs/CompanyApi.md#getcompanysecurities) | **GET** /companies/{identifier}/securities | All Securities by Company *CompanyApi* | [**InsiderTransactionFilingsByCompany**](docs/CompanyApi.md#insidertransactionfilingsbycompany) | **GET** /companies/{identifier}/insider_transaction_filings | Insider Transaction Filings by Company @@ -306,8 +306,11 @@ Class | Method | HTTP request | Description *SecurityApi* | [**SearchSecurities**](docs/SecurityApi.md#searchsecurities) | **GET** /securities/search | Search Securities *StockExchangeApi* | [**GetAllStockExchanges**](docs/StockExchangeApi.md#getallstockexchanges) | **GET** /stock_exchanges | All Stock Exchanges *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 *StockExchangeApi* | [**GetStockExchangePriceAdjustments**](docs/StockExchangeApi.md#getstockexchangepriceadjustments) | **GET** /stock_exchanges/{identifier}/prices/adjustments | Stock Price Adjustments by Exchange *StockExchangeApi* | [**GetStockExchangePrices**](docs/StockExchangeApi.md#getstockexchangeprices) | **GET** /stock_exchanges/{identifier}/prices | Stock Prices by Exchange +*StockExchangeApi* | [**GetStockExchangeQuote**](docs/StockExchangeApi.md#getstockexchangequote) | **GET** /stock_exchanges/{identifier}/quote | Realtime Quote Prices by Exchange *StockExchangeApi* | [**GetStockExchangeRealtimePrices**](docs/StockExchangeApi.md#getstockexchangerealtimeprices) | **GET** /stock_exchanges/{identifier}/prices/realtime | Realtime Stock Prices by Exchange *StockExchangeApi* | [**GetStockExchangeSecurities**](docs/StockExchangeApi.md#getstockexchangesecurities) | **GET** /stock_exchanges/{identifier}/securities | Securities by Exchange *TechnicalApi* | [**GetSecurityPriceTechnicalsAdi**](docs/TechnicalApi.md#getsecuritypricetechnicalsadi) | **GET** /securities/{identifier}/prices/technicals/adi | Accumulation/Distribution Index @@ -476,6 +479,8 @@ Class | Method | HTTP request | Description - [Model.ApiResponseSecurityZacksSalesSurprises](docs/ApiResponseSecurityZacksSalesSurprises.md) - [Model.ApiResponseStandardizedFinancials](docs/ApiResponseStandardizedFinancials.md) - [Model.ApiResponseStandardizedFinancialsDimensions](docs/ApiResponseStandardizedFinancialsDimensions.md) + - [Model.ApiResponseStockExchangeMovers](docs/ApiResponseStockExchangeMovers.md) + - [Model.ApiResponseStockExchangeQuote](docs/ApiResponseStockExchangeQuote.md) - [Model.ApiResponseStockExchangeRealtimeStockPrices](docs/ApiResponseStockExchangeRealtimeStockPrices.md) - [Model.ApiResponseStockExchangeSecurities](docs/ApiResponseStockExchangeSecurities.md) - [Model.ApiResponseStockExchangeStockPriceAdjustments](docs/ApiResponseStockExchangeStockPriceAdjustments.md) @@ -620,6 +625,7 @@ Class | Method | HTTP request | Description - [Model.StandardizedFinancialsDimension](docs/StandardizedFinancialsDimension.md) - [Model.StochasticOscillatorTechnicalValue](docs/StochasticOscillatorTechnicalValue.md) - [Model.StockExchange](docs/StockExchange.md) + - [Model.StockExchangeMover](docs/StockExchangeMover.md) - [Model.StockMarketIndex](docs/StockMarketIndex.md) - [Model.StockMarketIndexSummary](docs/StockMarketIndexSummary.md) - [Model.StockPrice](docs/StockPrice.md) diff --git a/build.bat b/build.bat index 249c0ce..f7d2c95 100644 --- a/build.bat +++ b/build.bat @@ -9,8 +9,8 @@ if not exist ".\nuget.exe" powershell -Command "(new-object System.Net.WebClient if not exist ".\bin" mkdir bin -copy packages\Newtonsoft.Json.13.0.2\lib\net45\Newtonsoft.Json.dll bin\Newtonsoft.Json.dll -copy packages\JsonSubTypes.1.9.0\lib\net45\JsonSubTypes.dll bin\JsonSubTypes.dll -copy packages\RestSharp.108.0.1\lib\net45\RestSharp.dll bin\RestSharp.dll -copy packages\Polly.7.2.3\lib\net472\Polly.dll bin\Polly.dll +copy packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll bin\Newtonsoft.Json.dll +copy packages\JsonSubTypes.2.0.1\lib\net45\JsonSubTypes.dll bin\JsonSubTypes.dll +copy packages\RestSharp.112.0.0\lib\net45\RestSharp.dll bin\RestSharp.dll +copy packages\Polly.8.4.1\lib\net472\Polly.dll bin\Polly.dll %CSCPATH%\csc /reference:bin\Newtonsoft.Json.dll;bin\JsonSubTypes.dll;bin\RestSharp.dll;bin\Polly.dll;System.ComponentModel.DataAnnotations.dll /target:library /out:bin\Intrinio.SDK.dll /recurse:src\Intrinio.SDK\*.cs /doc:bin\Intrinio.SDK.xml diff --git a/build.sh b/build.sh index 85b8ef8..4205278 100644 --- a/build.sh +++ b/build.sh @@ -41,10 +41,10 @@ ${nuget_cmd} install src/Intrinio.SDK/packages.config -o packages; echo "[INFO] Copy DLLs to the 'bin' folder" mkdir -p bin; -cp packages/Newtonsoft.Json.13.0.2/lib/net45/Newtonsoft.Json.dll bin/Newtonsoft.Json.dll; -cp packages/RestSharp.108.0.1/lib/net45/RestSharp.dll bin/RestSharp.dll; -cp packages/JsonSubTypes.1.9.0/lib/net45/JsonSubTypes.dll bin/JsonSubTypes.dll -cp packages/Polly.7.2.3/lib/net472/Polly.dll bin/Polly.dll +cp packages/Newtonsoft.Json.13.0.3/lib/net45/Newtonsoft.Json.dll bin/Newtonsoft.Json.dll; +cp packages/RestSharp.112.0.0/lib/net45/RestSharp.dll bin/RestSharp.dll; +cp packages/JsonSubTypes.2.0.1/lib/net45/JsonSubTypes.dll bin/JsonSubTypes.dll +cp packages/Polly.8.4.1/lib/net472/Polly.dll bin/Polly.dll echo "[INFO] Run 'mcs' to build bin/Intrinio.SDK.dll" mcs -langversion:${langversion} -sdk:${sdk} -r:bin/Newtonsoft.Json.dll,bin/JsonSubTypes.dll,\ diff --git a/docs/ApiResponseSecurityQuote.md b/docs/ApiResponseSecurityQuote.md index 835e26c..acd2077 100644 --- a/docs/ApiResponseSecurityQuote.md +++ b/docs/ApiResponseSecurityQuote.md @@ -28,14 +28,23 @@ Name | Type | Description **ChangePercent** | decimal? | The percent difference in last price from the last close price   **AdjClose5DaysAgo** | decimal? | The adjusted close price 5 days ago.   **AdjClose30DaysAgo** | decimal? | The adjusted close price 30 days ago.   +**AdjClose90DaysAgo** | decimal? | The adjusted close price 90 days ago.   **AdjClose180DaysAgo** | decimal? | The adjusted close price 180 days ago.   **AdjClose365DaysAgo** | decimal? | The adjusted close price 365 days ago.   +**AdjClose730DaysAgo** | decimal? | The adjusted close price 730 days ago.   **AdjClose1825DaysAgo** | decimal? | The adjusted close price 1825 days ago.   +**AdjCloseYearToDate** | decimal? | The adjusted close price at the start of the calendar year.   **ChangePercent5Days** | decimal? | The percent change from the adjusted price 5 days ago to now.   **ChangePercent30Days** | decimal? | The percent change from the adjusted price 30 days ago to now.   +**ChangePercent90Days** | decimal? | The percent change from the adjusted price 90 days ago to now.   **ChangePercent180Days** | decimal? | The percent change from the adjusted price 180 days ago to now.   **ChangePercent365Days** | decimal? | The percent change from the adjusted price 365 days ago to now.   +**ChangePercent730DaysAgo** | decimal? | The percent change from the adjusted price 730 days ago to now.   **ChangePercent1825Days** | decimal? | The percent change from the adjusted price 1825 days ago to now.   +**ChangePercentYearToDate** | decimal? | The percent change from the adjusted price since the start of the calendar year to now.   +**ExtendedHoursLast** | decimal? | The price of the latest trade in pre and post market trading. Might be null during normal trading   +**ExtendedHoursChange** | decimal? | The difference in extended_hours_last price from most recent official close price   +**ExtendedHoursChangePercent** | decimal? | The percent difference in extended_hours_last from the most recent official close price   [//]: # (END_DEFINITION) diff --git a/docs/ApiResponseStockExchangeMovers.md b/docs/ApiResponseStockExchangeMovers.md new file mode 100644 index 0000000..232d67c --- /dev/null +++ b/docs/ApiResponseStockExchangeMovers.md @@ -0,0 +1,23 @@ +[//]: # (CLASS:Intrinio.SDK.Model.ApiResponseStockExchangeMovers) + +[//]: # (KIND:object) + +### Intrinio.SDK.Model.ApiResponseStockExchangeMovers +#### Properties + +[//]: # (START_DEFINITION) + +Name | Type | Description +------------ | ------------- | ------------- +**Movers** | [**List<StockExchangeMover>**](StockExchangeMover.md) | The mover security.   +**StockExchange** | [**StockExchange**](StockExchange.md) | The Stock Exchange resolved from the given identifier   + +[//]: # (END_DEFINITION) + + +[//]: # (CONTAINED_CLASS:Intrinio.SDK.Model.StockExchangeMover) + + +[//]: # (CONTAINED_CLASS:Intrinio.SDK.Model.StockExchange) + + diff --git a/docs/ApiResponseStockExchangeQuote.md b/docs/ApiResponseStockExchangeQuote.md new file mode 100644 index 0000000..ab54709 --- /dev/null +++ b/docs/ApiResponseStockExchangeQuote.md @@ -0,0 +1,23 @@ +[//]: # (CLASS:Intrinio.SDK.Model.ApiResponseStockExchangeQuote) + +[//]: # (KIND:object) + +### Intrinio.SDK.Model.ApiResponseStockExchangeQuote +#### Properties + +[//]: # (START_DEFINITION) + +Name | Type | Description +------------ | ------------- | ------------- +**Quotes** | [**List<ApiResponseSecurityQuote>**](ApiResponseSecurityQuote.md) | The realtime stock prices for all Securities traded on the Stock Exchange   +**StockExchange** | [**StockExchange**](StockExchange.md) | The Stock Exchange resolved from the given identifier   + +[//]: # (END_DEFINITION) + + +[//]: # (CONTAINED_CLASS:Intrinio.SDK.Model.ApiResponseSecurityQuote) + + +[//]: # (CONTAINED_CLASS:Intrinio.SDK.Model.StockExchange) + + diff --git a/docs/BulkDownloadSummary.md b/docs/BulkDownloadSummary.md index 680da57..07a8126 100644 --- a/docs/BulkDownloadSummary.md +++ b/docs/BulkDownloadSummary.md @@ -14,6 +14,7 @@ Name | Type | Description **Format** | string | The file format of the bulk download   **DataLengthBytes** | string | The total length of the bulk download data in bytes   **UpdateFrequency** | string | The update frequency for the bulk download   +**LastUpdated** | DateTime? | The date on which the bulk download was last updated   **Links** | [**List<BulkDownloadLinks>**](BulkDownloadLinks.md) | Links to all of the files comprising the bulk download. Links expire in 24 hours.   [//]: # (END_DEFINITION) diff --git a/docs/CompanyApi.md b/docs/CompanyApi.md index 6e16cc7..aa4790a 100644 --- a/docs/CompanyApi.md +++ b/docs/CompanyApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**GetCompanyHistoricalData**](CompanyApi.md#getcompanyhistoricaldata) | **GET** /companies/{identifier}/historical_data/{tag} | Historical Data for Company [**GetCompanyIpos**](CompanyApi.md#getcompanyipos) | **GET** /companies/ipos | IPOs [**GetCompanyNews**](CompanyApi.md#getcompanynews) | **GET** /companies/{identifier}/news | All News by Company -[**GetCompanyNewsBody**](CompanyApi.md#getcompanynewsbody) | **GET** /companies/news/body | The body of a news article. This endpoint requires additional authorization beyond basic news access. Please see a representative for details. +[**GetCompanyNewsBody**](CompanyApi.md#getcompanynewsbody) | **GET** /companies/news/body | News Article Body [**GetCompanyPublicFloat**](CompanyApi.md#getcompanypublicfloat) | **GET** /companies/{identifier}/public_float | Get Company's public float [**GetCompanySecurities**](CompanyApi.md#getcompanysecurities) | **GET** /companies/{identifier}/securities | All Securities by Company [**InsiderTransactionFilingsByCompany**](CompanyApi.md#insidertransactionfilingsbycompany) | **GET** /companies/{identifier}/insider_transaction_filings | Insider Transaction Filings by Company @@ -1362,9 +1362,9 @@ Name | Type | Description | Notes > ApiResponseCompanyNewsBody GetCompanyNewsBody (string newsStoryId, DateTime? publicationDate, string specificSource = null, string nextPage = null) -#### The body of a news article. This endpoint requires additional authorization beyond basic news access. Please see a representative for details. +#### News Article Body -Returns the news article body. +Returns the body of a news article. This endpoint requires additional authorization beyond basic news access. Please see a representative for details. [//]: # (END_OVERVIEW) diff --git a/docs/OptionsApi.md b/docs/OptionsApi.md index 3cc0021..3958e82 100644 --- a/docs/OptionsApi.md +++ b/docs/OptionsApi.md @@ -142,7 +142,7 @@ This endpoint does not need any parameter. [//]: # (START_OVERVIEW) -> ApiResponseOptionsAggregates GetOptionAggregates (Object date = null) +> ApiResponseOptionsAggregates GetOptionAggregates (Object date = null, int? pageSize = null, string nextPage = null) #### Total open interest and volume aggregated by ticker @@ -176,8 +176,10 @@ namespace Example var optionsApi = new OptionsApi(); var date = new Object(); + int? pageSize = 100; + string nextPage = null; - ApiResponseOptionsAggregates result = optionsApi.GetOptionAggregates(date); + ApiResponseOptionsAggregates result = optionsApi.GetOptionAggregates(date, pageSize, nextPage); Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented)); } } @@ -194,6 +196,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **date** | [**Object**](Object.md)| Return aggregated data for this 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) @@ -1899,7 +1903,7 @@ Name | Type | Description | Notes [//]: # (START_OVERVIEW) -> ApiResponseOptionsPricesByTickerRealtime GetOptionsPricesRealtimeByTicker (string symbol, string source = null, string ivMode = null, string nextPage = null, int? pageSize = null, string stockPriceSource = null, string model = null, bool? showExtendedPrice = null) +> ApiResponseOptionsPricesByTickerRealtime GetOptionsPricesRealtimeByTicker (string symbol, string source = null, string ivMode = null, string nextPage = null, int? pageSize = null, string stockPriceSource = null, string model = null, bool? showExtendedPrice = null, Object expirationStartDate = null, Object expirationEndDate = null) #### Option Prices Realtime By Ticker @@ -1940,8 +1944,10 @@ namespace Example string stockPriceSource = null; string model = null; bool? showExtendedPrice = null; + var expirationStartDate = new Object(); + var expirationEndDate = new Object(); - ApiResponseOptionsPricesByTickerRealtime result = optionsApi.GetOptionsPricesRealtimeByTicker(symbol, source, ivMode, nextPage, pageSize, stockPriceSource, model, showExtendedPrice); + ApiResponseOptionsPricesByTickerRealtime result = optionsApi.GetOptionsPricesRealtimeByTicker(symbol, source, ivMode, nextPage, pageSize, stockPriceSource, model, showExtendedPrice, expirationStartDate, expirationEndDate); Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented)); } } @@ -1965,6 +1971,8 @@ Name | Type | Description | Notes **stockPriceSource** | string| Source for underlying price for calculating Greeks. | [optional]   **model** | string| Model for calculating Greek values. Default is black_scholes. | [optional]   **showExtendedPrice** | bool?| Whether to include open close high low type fields. | [optional]   + **expirationStartDate** | [**Object**](Object.md)| Filter out contracts that expire before this date. | [optional]   + **expirationEndDate** | [**Object**](Object.md)| Filter out contracts that expire after this date. | [optional]  
[//]: # (END_PARAMETERS) diff --git a/docs/RealtimeStockPrice.md b/docs/RealtimeStockPrice.md index f408384..4a8b6a8 100644 --- a/docs/RealtimeStockPrice.md +++ b/docs/RealtimeStockPrice.md @@ -25,6 +25,14 @@ Name | Type | Description **ExchangeVolume** | decimal? | The number of shares exchanged during the trading day on the exchange.   **MarketVolume** | decimal? | The number of shares exchanged during the trading day for the whole market.   **UpdatedOn** | DateTime? | The date and time when the data was last updated.   +**EodClosePrice** | decimal? | The previous trading session's closing price.   +**EodCloseDate** | DateTime? | The date of the previous trading session's closing price.   +**NormalMarketHoursLastTime** | DateTime? | The date and time of the last trade that qualifies for last price consideration during normal market hours according to exchange rules on trade conditions.   +**NormalMarketHoursLastPrice** | decimal? | The price of the last that qualifies for last price consideration during normal market hours according to exchange rules on trade conditions.   +**NormalMarketHoursLastSize** | decimal? | The size of the last trade that qualifies for last price consideration during normal market hours according to exchange rules on trade conditions.   +**QualifiedLastPrice** | decimal? | The price of the last trade that qualifies for last price consideration according to exchange rules on trade conditions.   +**QualifiedLastTime** | DateTime? | The date and time of the last trade that qualifies for last price consideration according to exchange rules on trade conditions.   +**QualifiedLastSize** | decimal? | The size of the last trade that qualifies for last price consideration according to exchange rules on trade conditions.   **Source** | string | The source of the data.   **ListingVenue** | string | The listing venue where the trade took place. Available only where source is SIP. Listing Venue Modifiers include: Q – Nasdaq | N – NYSE | A – NYSE American | P – NYSE Arca | u – Other OTC Markets | V – Investors Exchange LLC   **SalesConditions** | string | When applicable, indicates any sales condition modifiers associated with the trade. Sales Condition Modifers include: @ – Regular Sale | A – Acquisition | B – Bunched Trade | C – Cash Sale | D – Distribution | E – Placeholder | F – Intermarket Sweep | G – Bunched Sold Trade | H – Priced Variation Trade | I – Odd Lot Trade | K – Rule 155 Trade (AMEX) | L – Sold Last | M – Market Center Official Close | N – Next Day | O – Opening Prints | P – Prior Reference Price | Q – Market Center Official Open | R – Seller | S – Split Trade | T – Form T | U – Extended Trading Hours (Sold Out of Sequence) | V – Contingent Trade | W – Average Price Trade | X – Cross/Periodic Auction Trade | Y – Yellow Flag Regular Trade | Z – Sold (Out of Sequence) | 1 – Stopped Stock (Regular Trade) | 4 – Derivatively Priced | 5 – Re-Opening Prints | 6 – Closing Prints | 7 – Qualified Contingent Trade (QCT) | 8 – Placeholder for 611 Exempt | 9 – Corrected Consolidated Close (Per Listing Market)   diff --git a/docs/SecurityApi.md b/docs/SecurityApi.md index fd0c367..214e469 100644 --- a/docs/SecurityApi.md +++ b/docs/SecurityApi.md @@ -1193,7 +1193,7 @@ Name | Type | Description | Notes **startTime** | string| Return intervals starting at the specified time on the `start_date` (24-hour in 'hh:mm:ss' format) | [optional]   **endDate** | DateTime?| Return intervals stopping at the specified date | [optional]   **endTime** | string| Return intervals stopping at the specified time on the `end_date` (24-hour in 'hh:mm:ss' format) | [optional]   - **timezone** | string| Returns trading times in this timezone | [optional] [default to UTC]   + **timezone** | string| Interprets the input times in this time zone, as well as returns times in this timezone. | [optional] [default to UTC]   **pageSize** | int?| The number of results to return | [optional] [default to 100]   **splitAdjusted** | bool?| Whether to return the values adjusted for splits or not. Default is false. | [optional] [default to false]   **includeQuoteOnlyBars** | bool?| If true, also include bars where no trades occurred but quotes did. | [optional] [default to false]   @@ -4602,7 +4602,7 @@ Name | Type | Description | Notes #### Quote for a Security -Return a current pricing quote for a security across multiple sources. +Returns many popular metrics for a security 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. [//]: # (END_OVERVIEW) diff --git a/docs/StockExchangeApi.md b/docs/StockExchangeApi.md index 9d1ae9b..9df51e4 100644 --- a/docs/StockExchangeApi.md +++ b/docs/StockExchangeApi.md @@ -6,8 +6,11 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**GetAllStockExchanges**](StockExchangeApi.md#getallstockexchanges) | **GET** /stock_exchanges | All Stock Exchanges [**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 [**GetStockExchangePriceAdjustments**](StockExchangeApi.md#getstockexchangepriceadjustments) | **GET** /stock_exchanges/{identifier}/prices/adjustments | Stock Price Adjustments by Exchange [**GetStockExchangePrices**](StockExchangeApi.md#getstockexchangeprices) | **GET** /stock_exchanges/{identifier}/prices | Stock Prices by Exchange +[**GetStockExchangeQuote**](StockExchangeApi.md#getstockexchangequote) | **GET** /stock_exchanges/{identifier}/quote | Realtime Quote Prices by Exchange [**GetStockExchangeRealtimePrices**](StockExchangeApi.md#getstockexchangerealtimeprices) | **GET** /stock_exchanges/{identifier}/prices/realtime | Realtime Stock Prices by Exchange [**GetStockExchangeSecurities**](StockExchangeApi.md#getstockexchangesecurities) | **GET** /stock_exchanges/{identifier}/securities | Securities by Exchange @@ -195,6 +198,194 @@ Name | Type | Description | Notes [//]: # (END_OPERATION) +[//]: # (START_OPERATION) + +[//]: # (CLASS:Intrinio.SDK.Api.StockExchangeApi) + +[//]: # (METHOD:GetStockExchangeGainers) + +[//]: # (RETURN_TYPE:Intrinio.SDK.Model.ApiResponseStockExchangeMovers) + +[//]: # (RETURN_TYPE_KIND:object) + +[//]: # (RETURN_TYPE_DOC:ApiResponseStockExchangeMovers.md) + +[//]: # (OPERATION:GetStockExchangeGainers_v2) + +[//]: # (ENDPOINT:/stock_exchanges/{identifier}/gainers) + +[//]: # (DOCUMENT_LINK:StockExchangeApi.md#getstockexchangegainers) + + +## **GetStockExchangeGainers** + +[**View Intrinio API Documentation**](https://docs.intrinio.com/documentation/csharp/GetStockExchangeGainers_v2) + +[//]: # (START_OVERVIEW) + +> 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. + +[//]: # (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 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)); + } + } +} +``` + +[//]: # (END_CODE_EXAMPLE) + +### Parameters + +[//]: # (START_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]   +
+ +[//]: # (END_PARAMETERS) + +### Return type + +[**ApiResponseStockExchangeMovers**](ApiResponseStockExchangeMovers.md) + +[//]: # (END_OPERATION) + + +[//]: # (START_OPERATION) + +[//]: # (CLASS:Intrinio.SDK.Api.StockExchangeApi) + +[//]: # (METHOD:GetStockExchangeLosers) + +[//]: # (RETURN_TYPE:Intrinio.SDK.Model.ApiResponseStockExchangeMovers) + +[//]: # (RETURN_TYPE_KIND:object) + +[//]: # (RETURN_TYPE_DOC:ApiResponseStockExchangeMovers.md) + +[//]: # (OPERATION:GetStockExchangeLosers_v2) + +[//]: # (ENDPOINT:/stock_exchanges/{identifier}/losers) + +[//]: # (DOCUMENT_LINK:StockExchangeApi.md#getstockexchangelosers) + + +## **GetStockExchangeLosers** + +[**View Intrinio API Documentation**](https://docs.intrinio.com/documentation/csharp/GetStockExchangeLosers_v2) + +[//]: # (START_OVERVIEW) + +> 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. + +[//]: # (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 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)); + } + } +} +``` + +[//]: # (END_CODE_EXAMPLE) + +### Parameters + +[//]: # (START_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]   +
+ +[//]: # (END_PARAMETERS) + +### Return type + +[**ApiResponseStockExchangeMovers**](ApiResponseStockExchangeMovers.md) + +[//]: # (END_OPERATION) + + [//]: # (START_OPERATION) [//]: # (CLASS:Intrinio.SDK.Api.StockExchangeApi) @@ -391,6 +582,100 @@ Name | Type | Description | Notes [//]: # (END_OPERATION) +[//]: # (START_OPERATION) + +[//]: # (CLASS:Intrinio.SDK.Api.StockExchangeApi) + +[//]: # (METHOD:GetStockExchangeQuote) + +[//]: # (RETURN_TYPE:Intrinio.SDK.Model.ApiResponseStockExchangeQuote) + +[//]: # (RETURN_TYPE_KIND:object) + +[//]: # (RETURN_TYPE_DOC:ApiResponseStockExchangeQuote.md) + +[//]: # (OPERATION:GetStockExchangeQuote_v2) + +[//]: # (ENDPOINT:/stock_exchanges/{identifier}/quote) + +[//]: # (DOCUMENT_LINK:StockExchangeApi.md#getstockexchangequote) + + +## **GetStockExchangeQuote** + +[**View Intrinio API Documentation**](https://docs.intrinio.com/documentation/csharp/GetStockExchangeQuote_v2) + +[//]: # (START_OVERVIEW) + +> 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. + +[//]: # (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 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 source = "delayed_sip"; + bool? activeOnly = null; + + ApiResponseStockExchangeQuote result = stockExchangeApi.GetStockExchangeQuote(identifier, tickers, source, activeOnly); + 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) |   + **tickers** | [**List<string>**](string.md)| 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]   +
+ +[//]: # (END_PARAMETERS) + +### Return type + +[**ApiResponseStockExchangeQuote**](ApiResponseStockExchangeQuote.md) + +[//]: # (END_OPERATION) + + [//]: # (START_OPERATION) [//]: # (CLASS:Intrinio.SDK.Api.StockExchangeApi) @@ -416,7 +701,7 @@ Name | Type | Description | Notes [//]: # (START_OVERVIEW) -> ApiResponseStockExchangeRealtimeStockPrices GetStockExchangeRealtimePrices (string identifier, List source = null, bool? activeOnly = null, int? pageSize = null, List tickers = null, string nextPage = null) +> 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 @@ -452,11 +737,12 @@ namespace Example string identifier = "USCOMP"; List source = "iex,delayed_sip"; bool? activeOnly = null; + bool? tradedToday = null; int? pageSize = 100; var tickers = new List(); string nextPage = null; - ApiResponseStockExchangeRealtimeStockPrices result = stockExchangeApi.GetStockExchangeRealtimePrices(identifier, source, activeOnly, pageSize, tickers, nextPage); + ApiResponseStockExchangeRealtimeStockPrices result = stockExchangeApi.GetStockExchangeRealtimePrices(identifier, source, activeOnly, tradedToday, pageSize, tickers, nextPage); Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented)); } } @@ -475,6 +761,7 @@ 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>**](string.md)| 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]   diff --git a/docs/StockExchangeMover.md b/docs/StockExchangeMover.md new file mode 100644 index 0000000..28e87fa --- /dev/null +++ b/docs/StockExchangeMover.md @@ -0,0 +1,22 @@ +[//]: # (CLASS:Intrinio.SDK.Model.StockExchangeMover) + +[//]: # (KIND:object) + +### Intrinio.SDK.Model.StockExchangeMover +#### Properties + +[//]: # (START_DEFINITION) + +Name | Type | Description +------------ | ------------- | ------------- +**SecurityId** | string | The Intrinio Identifier for this security.   +**Ticker** | string | The ticker symbol for this security.   +**LastPrice** | decimal? | The last price of the last trade.   +**Change** | decimal? | The raw change in price.   +**PercentChange** | decimal? | The percent change in price.   +**MarketVolume** | decimal? | The market volume for the most recent (today) trading day.   +**Source** | string | The source of the data.   + +[//]: # (END_DEFINITION) + + diff --git a/mono_nunit_test.sh b/mono_nunit_test.sh index 1c4272a..f2d238f 100644 --- a/mono_nunit_test.sh +++ b/mono_nunit_test.sh @@ -15,8 +15,8 @@ mozroots --import --sync mono nuget.exe install src/Intrinio.SDK.Test/packages.config -o packages echo "[INFO] Install NUnit runners via NuGet" -mono nuget.exe install NUnit.Runners -Version 2.6.4 -OutputDirectory packages +mono nuget.exe install NUnit.Runners -Version 4.2.2 -OutputDirectory packages echo "[INFO] Build the solution and run the unit test" xbuild Intrinio.SDK.sln && \ - mono ./packages/NUnit.Runners.2.6.4/tools/nunit-console.exe src/Intrinio.SDK.Test/bin/Debug/Intrinio.SDK.Test.dll + mono ./packages/NUnit.Runners.4.2.2/tools/nunit-console.exe src/Intrinio.SDK.Test/bin/Debug/Intrinio.SDK.Test.dll diff --git a/src/Intrinio.SDK.Test/Api/OptionsApiTests.cs b/src/Intrinio.SDK.Test/Api/OptionsApiTests.cs index 07adca8..3df0877 100644 --- a/src/Intrinio.SDK.Test/Api/OptionsApiTests.cs +++ b/src/Intrinio.SDK.Test/Api/OptionsApiTests.cs @@ -71,7 +71,9 @@ public void GetOptionAggregatesTest() { // TODO uncomment below to test the method and replace null with proper value //Object date = null; - //var response = instance.GetOptionAggregates(date); + //int? pageSize = null; + //string nextPage = null; + //var response = instance.GetOptionAggregates(date, pageSize, nextPage); //Assert.IsInstanceOf (response, "response is ApiResponseOptionsAggregates"); } @@ -380,7 +382,9 @@ public void GetOptionsPricesRealtimeByTickerTest() //string stockPriceSource = null; //string model = null; //bool? showExtendedPrice = null; - //var response = instance.GetOptionsPricesRealtimeByTicker(symbol, source, ivMode, nextPage, pageSize, stockPriceSource, model, showExtendedPrice); + //Object expirationStartDate = null; + //Object expirationEndDate = null; + //var response = instance.GetOptionsPricesRealtimeByTicker(symbol, source, ivMode, nextPage, pageSize, stockPriceSource, model, showExtendedPrice, expirationStartDate, expirationEndDate); //Assert.IsInstanceOf (response, "response is ApiResponseOptionsPricesByTickerRealtime"); } diff --git a/src/Intrinio.SDK.Test/Api/StockExchangeApiTests.cs b/src/Intrinio.SDK.Test/Api/StockExchangeApiTests.cs index 3c9ab86..dbe779d 100644 --- a/src/Intrinio.SDK.Test/Api/StockExchangeApiTests.cs +++ b/src/Intrinio.SDK.Test/Api/StockExchangeApiTests.cs @@ -79,6 +79,36 @@ public void GetStockExchangeByIdTest() //Assert.IsInstanceOf (response, "response is StockExchange"); } + /// + /// Test GetStockExchangeGainers + /// + [Test] + public void GetStockExchangeGainersTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string identifier = null; + //decimal? minPrice = null; + //int? pageSize = null; + //string source = null; + //var response = instance.GetStockExchangeGainers(identifier, minPrice, pageSize, source); + //Assert.IsInstanceOf (response, "response is ApiResponseStockExchangeMovers"); + } + + /// + /// Test GetStockExchangeLosers + /// + [Test] + public void GetStockExchangeLosersTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string identifier = null; + //decimal? minPrice = null; + //int? pageSize = null; + //string source = null; + //var response = instance.GetStockExchangeLosers(identifier, minPrice, pageSize, source); + //Assert.IsInstanceOf (response, "response is ApiResponseStockExchangeMovers"); + } + /// /// Test GetStockExchangePriceAdjustments /// @@ -113,6 +143,21 @@ public void GetStockExchangePricesTest() //Assert.IsInstanceOf (response, "response is ApiResponseStockExchangeStockPrices"); } + /// + /// Test GetStockExchangeQuote + /// + [Test] + public void GetStockExchangeQuoteTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string identifier = null; + //List tickers = null; + //string source = null; + //bool? activeOnly = null; + //var response = instance.GetStockExchangeQuote(identifier, tickers, source, activeOnly); + //Assert.IsInstanceOf (response, "response is ApiResponseStockExchangeQuote"); + } + /// /// Test GetStockExchangeRealtimePrices /// @@ -123,10 +168,11 @@ public void GetStockExchangeRealtimePricesTest() //string identifier = null; //List source = null; //bool? activeOnly = null; + //bool? tradedToday = null; //int? pageSize = null; //List tickers = null; //string nextPage = null; - //var response = instance.GetStockExchangeRealtimePrices(identifier, source, activeOnly, pageSize, tickers, nextPage); + //var response = instance.GetStockExchangeRealtimePrices(identifier, source, activeOnly, tradedToday, pageSize, tickers, nextPage); //Assert.IsInstanceOf (response, "response is ApiResponseStockExchangeRealtimeStockPrices"); } diff --git a/src/Intrinio.SDK.Test/Intrinio.SDK.Test.csproj b/src/Intrinio.SDK.Test/Intrinio.SDK.Test.csproj index 8f912e6..6b15db7 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.66.2 + OpenAPI spec version: 2.72.2 --> @@ -16,11 +16,11 @@ - - + + - - + + diff --git a/src/Intrinio.SDK.Test/Model/ApiResponseSecurityQuoteTests.cs b/src/Intrinio.SDK.Test/Model/ApiResponseSecurityQuoteTests.cs index 8154b72..05e92ff 100644 --- a/src/Intrinio.SDK.Test/Model/ApiResponseSecurityQuoteTests.cs +++ b/src/Intrinio.SDK.Test/Model/ApiResponseSecurityQuoteTests.cs @@ -211,6 +211,14 @@ public void AdjClose30DaysAgoTest() // TODO unit test for the property 'AdjClose30DaysAgo' } /// + /// Test the property 'AdjClose90DaysAgo' + /// + [Test] + public void AdjClose90DaysAgoTest() + { + // TODO unit test for the property 'AdjClose90DaysAgo' + } + /// /// Test the property 'AdjClose180DaysAgo' /// [Test] @@ -227,6 +235,14 @@ public void AdjClose365DaysAgoTest() // TODO unit test for the property 'AdjClose365DaysAgo' } /// + /// Test the property 'AdjClose730DaysAgo' + /// + [Test] + public void AdjClose730DaysAgoTest() + { + // TODO unit test for the property 'AdjClose730DaysAgo' + } + /// /// Test the property 'AdjClose1825DaysAgo' /// [Test] @@ -235,6 +251,14 @@ public void AdjClose1825DaysAgoTest() // TODO unit test for the property 'AdjClose1825DaysAgo' } /// + /// Test the property 'AdjCloseYearToDate' + /// + [Test] + public void AdjCloseYearToDateTest() + { + // TODO unit test for the property 'AdjCloseYearToDate' + } + /// /// Test the property 'ChangePercent5Days' /// [Test] @@ -251,6 +275,14 @@ public void ChangePercent30DaysTest() // TODO unit test for the property 'ChangePercent30Days' } /// + /// Test the property 'ChangePercent90Days' + /// + [Test] + public void ChangePercent90DaysTest() + { + // TODO unit test for the property 'ChangePercent90Days' + } + /// /// Test the property 'ChangePercent180Days' /// [Test] @@ -267,6 +299,14 @@ public void ChangePercent365DaysTest() // TODO unit test for the property 'ChangePercent365Days' } /// + /// Test the property 'ChangePercent730DaysAgo' + /// + [Test] + public void ChangePercent730DaysAgoTest() + { + // TODO unit test for the property 'ChangePercent730DaysAgo' + } + /// /// Test the property 'ChangePercent1825Days' /// [Test] @@ -274,6 +314,38 @@ public void ChangePercent1825DaysTest() { // TODO unit test for the property 'ChangePercent1825Days' } + /// + /// Test the property 'ChangePercentYearToDate' + /// + [Test] + public void ChangePercentYearToDateTest() + { + // TODO unit test for the property 'ChangePercentYearToDate' + } + /// + /// Test the property 'ExtendedHoursLast' + /// + [Test] + public void ExtendedHoursLastTest() + { + // TODO unit test for the property 'ExtendedHoursLast' + } + /// + /// Test the property 'ExtendedHoursChange' + /// + [Test] + public void ExtendedHoursChangeTest() + { + // TODO unit test for the property 'ExtendedHoursChange' + } + /// + /// Test the property 'ExtendedHoursChangePercent' + /// + [Test] + public void ExtendedHoursChangePercentTest() + { + // TODO unit test for the property 'ExtendedHoursChangePercent' + } } diff --git a/src/Intrinio.SDK.Test/Model/ApiResponseStockExchangeMoversTests.cs b/src/Intrinio.SDK.Test/Model/ApiResponseStockExchangeMoversTests.cs new file mode 100644 index 0000000..a29b287 --- /dev/null +++ b/src/Intrinio.SDK.Test/Model/ApiResponseStockExchangeMoversTests.cs @@ -0,0 +1,80 @@ + + + +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 ApiResponseStockExchangeMovers + /// + /// + /// This file is automatically generated by Swagger Codegen. + /// Please update the test case below to test the model. + /// + [TestFixture] + public class ApiResponseStockExchangeMoversTests + { + // TODO uncomment below to declare an instance variable for ApiResponseStockExchangeMovers + //private ApiResponseStockExchangeMovers instance; + + /// + /// Setup before each test + /// + [SetUp] + public void Init() + { + // TODO uncomment below to create an instance of ApiResponseStockExchangeMovers + //instance = new ApiResponseStockExchangeMovers(); + } + + /// + /// Clean up after each test + /// + [TearDown] + public void Cleanup() + { + + } + + /// + /// Test an instance of ApiResponseStockExchangeMovers + /// + [Test] + public void ApiResponseStockExchangeMoversInstanceTest() + { + // TODO uncomment below to test "IsInstanceOfType" ApiResponseStockExchangeMovers + //Assert.IsInstanceOfType (instance, "variable 'instance' is a ApiResponseStockExchangeMovers"); + } + + + /// + /// Test the property 'Movers' + /// + [Test] + public void MoversTest() + { + // TODO unit test for the property 'Movers' + } + /// + /// Test the property 'StockExchange' + /// + [Test] + public void StockExchangeTest() + { + // TODO unit test for the property 'StockExchange' + } + + } + +} diff --git a/src/Intrinio.SDK.Test/Model/ApiResponseStockExchangeQuoteTests.cs b/src/Intrinio.SDK.Test/Model/ApiResponseStockExchangeQuoteTests.cs new file mode 100644 index 0000000..7849b6f --- /dev/null +++ b/src/Intrinio.SDK.Test/Model/ApiResponseStockExchangeQuoteTests.cs @@ -0,0 +1,80 @@ + + + +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 ApiResponseStockExchangeQuote + /// + /// + /// This file is automatically generated by Swagger Codegen. + /// Please update the test case below to test the model. + /// + [TestFixture] + public class ApiResponseStockExchangeQuoteTests + { + // TODO uncomment below to declare an instance variable for ApiResponseStockExchangeQuote + //private ApiResponseStockExchangeQuote instance; + + /// + /// Setup before each test + /// + [SetUp] + public void Init() + { + // TODO uncomment below to create an instance of ApiResponseStockExchangeQuote + //instance = new ApiResponseStockExchangeQuote(); + } + + /// + /// Clean up after each test + /// + [TearDown] + public void Cleanup() + { + + } + + /// + /// Test an instance of ApiResponseStockExchangeQuote + /// + [Test] + public void ApiResponseStockExchangeQuoteInstanceTest() + { + // TODO uncomment below to test "IsInstanceOfType" ApiResponseStockExchangeQuote + //Assert.IsInstanceOfType (instance, "variable 'instance' is a ApiResponseStockExchangeQuote"); + } + + + /// + /// Test the property 'Quotes' + /// + [Test] + public void QuotesTest() + { + // TODO unit test for the property 'Quotes' + } + /// + /// Test the property 'StockExchange' + /// + [Test] + public void StockExchangeTest() + { + // TODO unit test for the property 'StockExchange' + } + + } + +} diff --git a/src/Intrinio.SDK.Test/Model/BulkDownloadSummaryTests.cs b/src/Intrinio.SDK.Test/Model/BulkDownloadSummaryTests.cs index 77ce3ee..7e6af28 100644 --- a/src/Intrinio.SDK.Test/Model/BulkDownloadSummaryTests.cs +++ b/src/Intrinio.SDK.Test/Model/BulkDownloadSummaryTests.cs @@ -99,6 +99,14 @@ public void UpdateFrequencyTest() // TODO unit test for the property 'UpdateFrequency' } /// + /// Test the property 'LastUpdated' + /// + [Test] + public void LastUpdatedTest() + { + // TODO unit test for the property 'LastUpdated' + } + /// /// Test the property 'Links' /// [Test] diff --git a/src/Intrinio.SDK.Test/Model/RealtimeStockPriceTests.cs b/src/Intrinio.SDK.Test/Model/RealtimeStockPriceTests.cs index 5a88d44..7253d5f 100644 --- a/src/Intrinio.SDK.Test/Model/RealtimeStockPriceTests.cs +++ b/src/Intrinio.SDK.Test/Model/RealtimeStockPriceTests.cs @@ -187,6 +187,70 @@ public void UpdatedOnTest() // TODO unit test for the property 'UpdatedOn' } /// + /// Test the property 'EodClosePrice' + /// + [Test] + public void EodClosePriceTest() + { + // TODO unit test for the property 'EodClosePrice' + } + /// + /// Test the property 'EodCloseDate' + /// + [Test] + public void EodCloseDateTest() + { + // TODO unit test for the property 'EodCloseDate' + } + /// + /// Test the property 'NormalMarketHoursLastTime' + /// + [Test] + public void NormalMarketHoursLastTimeTest() + { + // TODO unit test for the property 'NormalMarketHoursLastTime' + } + /// + /// Test the property 'NormalMarketHoursLastPrice' + /// + [Test] + public void NormalMarketHoursLastPriceTest() + { + // TODO unit test for the property 'NormalMarketHoursLastPrice' + } + /// + /// Test the property 'NormalMarketHoursLastSize' + /// + [Test] + public void NormalMarketHoursLastSizeTest() + { + // TODO unit test for the property 'NormalMarketHoursLastSize' + } + /// + /// Test the property 'QualifiedLastPrice' + /// + [Test] + public void QualifiedLastPriceTest() + { + // TODO unit test for the property 'QualifiedLastPrice' + } + /// + /// Test the property 'QualifiedLastTime' + /// + [Test] + public void QualifiedLastTimeTest() + { + // TODO unit test for the property 'QualifiedLastTime' + } + /// + /// Test the property 'QualifiedLastSize' + /// + [Test] + public void QualifiedLastSizeTest() + { + // TODO unit test for the property 'QualifiedLastSize' + } + /// /// Test the property 'Source' /// [Test] diff --git a/src/Intrinio.SDK.Test/Model/StockExchangeMoverTests.cs b/src/Intrinio.SDK.Test/Model/StockExchangeMoverTests.cs new file mode 100644 index 0000000..73f1563 --- /dev/null +++ b/src/Intrinio.SDK.Test/Model/StockExchangeMoverTests.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 StockExchangeMover + /// + /// + /// This file is automatically generated by Swagger Codegen. + /// Please update the test case below to test the model. + /// + [TestFixture] + public class StockExchangeMoverTests + { + // TODO uncomment below to declare an instance variable for StockExchangeMover + //private StockExchangeMover instance; + + /// + /// Setup before each test + /// + [SetUp] + public void Init() + { + // TODO uncomment below to create an instance of StockExchangeMover + //instance = new StockExchangeMover(); + } + + /// + /// Clean up after each test + /// + [TearDown] + public void Cleanup() + { + + } + + /// + /// Test an instance of StockExchangeMover + /// + [Test] + public void StockExchangeMoverInstanceTest() + { + // TODO uncomment below to test "IsInstanceOfType" StockExchangeMover + //Assert.IsInstanceOfType (instance, "variable 'instance' is a StockExchangeMover"); + } + + + /// + /// Test the property 'SecurityId' + /// + [Test] + public void SecurityIdTest() + { + // TODO unit test for the property 'SecurityId' + } + /// + /// Test the property 'Ticker' + /// + [Test] + public void TickerTest() + { + // TODO unit test for the property 'Ticker' + } + /// + /// Test the property 'LastPrice' + /// + [Test] + public void LastPriceTest() + { + // TODO unit test for the property 'LastPrice' + } + /// + /// Test the property 'Change' + /// + [Test] + public void ChangeTest() + { + // TODO unit test for the property 'Change' + } + /// + /// Test the property 'PercentChange' + /// + [Test] + public void PercentChangeTest() + { + // TODO unit test for the property 'PercentChange' + } + /// + /// Test the property 'MarketVolume' + /// + [Test] + public void MarketVolumeTest() + { + // TODO unit test for the property 'MarketVolume' + } + /// + /// Test the property 'Source' + /// + [Test] + public void SourceTest() + { + // TODO unit test for the property 'Source' + } + + } + +} diff --git a/src/Intrinio.SDK/Api/CompanyApi.cs b/src/Intrinio.SDK/Api/CompanyApi.cs index 4c7247c..ddf55cf 100644 --- a/src/Intrinio.SDK/Api/CompanyApi.cs +++ b/src/Intrinio.SDK/Api/CompanyApi.cs @@ -453,10 +453,10 @@ public interface ICompanyApi : IApiAccessor /// ApiResponse of ApiResponseCompanyNews ApiResponse GetCompanyNewsWithHttpInfo (string identifier, string specificSource = null, int? pageSize = null, string sentiment = null, string topic = null, string security = null, DateTime? startDate = null, DateTime? endDate = null, string language = null, int? wordCountGreaterThan = null, int? wordCountLessThan = null, bool? isSpam = null, decimal? businessRelevanceGreaterThan = null, decimal? businessRelevanceLessThan = null, string nextPage = null); /// - /// The body of a news article. This endpoint requires additional authorization beyond basic news access. Please see a representative for details. + /// News Article Body /// /// - /// Returns the news article body. + /// Returns the body of a news article. This endpoint requires additional authorization beyond basic news access. Please see a representative for details. /// /// Thrown when fails to make API call /// The identifier of the news story. @@ -467,10 +467,10 @@ public interface ICompanyApi : IApiAccessor ApiResponseCompanyNewsBody GetCompanyNewsBody (string newsStoryId, DateTime? publicationDate, string specificSource = null, string nextPage = null); /// - /// The body of a news article. This endpoint requires additional authorization beyond basic news access. Please see a representative for details. + /// News Article Body /// /// - /// Returns the news article body. + /// Returns the body of a news article. This endpoint requires additional authorization beyond basic news access. Please see a representative for details. /// /// Thrown when fails to make API call /// The identifier of the news story. @@ -1127,10 +1127,10 @@ public interface ICompanyApi : IApiAccessor /// Task of ApiResponse (ApiResponseCompanyNews) System.Threading.Tasks.Task> GetCompanyNewsAsyncWithHttpInfo (string identifier, string specificSource = null, int? pageSize = null, string sentiment = null, string topic = null, string security = null, DateTime? startDate = null, DateTime? endDate = null, string language = null, int? wordCountGreaterThan = null, int? wordCountLessThan = null, bool? isSpam = null, decimal? businessRelevanceGreaterThan = null, decimal? businessRelevanceLessThan = null, string nextPage = null); /// - /// The body of a news article. This endpoint requires additional authorization beyond basic news access. Please see a representative for details. + /// News Article Body /// /// - /// Returns the news article body. + /// Returns the body of a news article. This endpoint requires additional authorization beyond basic news access. Please see a representative for details. /// /// Thrown when fails to make API call /// The identifier of the news story. @@ -1141,10 +1141,10 @@ public interface ICompanyApi : IApiAccessor System.Threading.Tasks.Task GetCompanyNewsBodyAsync (string newsStoryId, DateTime? publicationDate, string specificSource = null, string nextPage = null); /// - /// The body of a news article. This endpoint requires additional authorization beyond basic news access. Please see a representative for details. + /// News Article Body /// /// - /// Returns the news article body. + /// Returns the body of a news article. This endpoint requires additional authorization beyond basic news access. Please see a representative for details. /// /// Thrown when fails to make API call /// The identifier of the news story. @@ -3859,7 +3859,7 @@ public async System.Threading.Tasks.Task> Ge } /// - /// The body of a news article. This endpoint requires additional authorization beyond basic news access. Please see a representative for details. Returns the news article body. + /// News Article Body Returns the body of a news article. This endpoint requires additional authorization beyond basic news access. Please see a representative for details. /// /// Thrown when fails to make API call /// The identifier of the news story. @@ -3874,7 +3874,7 @@ public ApiResponseCompanyNewsBody GetCompanyNewsBody (string newsStoryId, DateTi } /// - /// The body of a news article. This endpoint requires additional authorization beyond basic news access. Please see a representative for details. Returns the news article body. + /// News Article Body Returns the body of a news article. This endpoint requires additional authorization beyond basic news access. Please see a representative for details. /// /// Thrown when fails to make API call /// The identifier of the news story. @@ -3944,7 +3944,7 @@ public ApiResponse< ApiResponseCompanyNewsBody > GetCompanyNewsBodyWithHttpInfo } /// - /// The body of a news article. This endpoint requires additional authorization beyond basic news access. Please see a representative for details. Returns the news article body. + /// News Article Body Returns the body of a news article. This endpoint requires additional authorization beyond basic news access. Please see a representative for details. /// /// Thrown when fails to make API call /// The identifier of the news story. @@ -3960,7 +3960,7 @@ public async System.Threading.Tasks.Task GetCompanyN } /// - /// The body of a news article. This endpoint requires additional authorization beyond basic news access. Please see a representative for details. Returns the news article body. + /// News Article Body Returns the body of a news article. This endpoint requires additional authorization beyond basic news access. Please see a representative for details. /// /// Thrown when fails to make API call /// The identifier of the news story. diff --git a/src/Intrinio.SDK/Api/OptionsApi.cs b/src/Intrinio.SDK/Api/OptionsApi.cs index 7cd336f..9683887 100644 --- a/src/Intrinio.SDK/Api/OptionsApi.cs +++ b/src/Intrinio.SDK/Api/OptionsApi.cs @@ -44,8 +44,10 @@ public interface IOptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Return aggregated data for this date (optional) + /// The number of results to return (optional, default to 100) + /// Gets the next page of data from a previous API call (optional) /// ApiResponseOptionsAggregates - ApiResponseOptionsAggregates GetOptionAggregates (Object date = null); + ApiResponseOptionsAggregates GetOptionAggregates (Object date = null, int? pageSize = null, string nextPage = null); /// /// Total open interest and volume aggregated by ticker @@ -55,8 +57,10 @@ public interface IOptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Return aggregated data for this 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 ApiResponseOptionsAggregates - ApiResponse GetOptionAggregatesWithHttpInfo (Object date = null); + ApiResponse GetOptionAggregatesWithHttpInfo (Object date = null, int? pageSize = null, string nextPage = null); /// /// Options Expirations /// @@ -601,8 +605,10 @@ public interface IOptionsApi : IApiAccessor /// Source for underlying price for calculating Greeks. (optional) /// Model for calculating Greek values. Default is black_scholes. (optional) /// Whether to include open close high low type fields. (optional) + /// Filter out contracts that expire before this date. (optional) + /// Filter out contracts that expire after this date. (optional) /// ApiResponseOptionsPricesByTickerRealtime - ApiResponseOptionsPricesByTickerRealtime GetOptionsPricesRealtimeByTicker (string symbol, string source = null, string ivMode = null, string nextPage = null, int? pageSize = null, string stockPriceSource = null, string model = null, bool? showExtendedPrice = null); + ApiResponseOptionsPricesByTickerRealtime GetOptionsPricesRealtimeByTicker (string symbol, string source = null, string ivMode = null, string nextPage = null, int? pageSize = null, string stockPriceSource = null, string model = null, bool? showExtendedPrice = null, Object expirationStartDate = null, Object expirationEndDate = null); /// /// Option Prices Realtime By Ticker @@ -619,8 +625,10 @@ public interface IOptionsApi : IApiAccessor /// Source for underlying price for calculating Greeks. (optional) /// Model for calculating Greek values. Default is black_scholes. (optional) /// Whether to include open close high low type fields. (optional) + /// Filter out contracts that expire before this date. (optional) + /// Filter out contracts that expire after this date. (optional) /// ApiResponse of ApiResponseOptionsPricesByTickerRealtime - ApiResponse GetOptionsPricesRealtimeByTickerWithHttpInfo (string symbol, string source = null, string ivMode = null, string nextPage = null, int? pageSize = null, string stockPriceSource = null, string model = null, bool? showExtendedPrice = null); + ApiResponse GetOptionsPricesRealtimeByTickerWithHttpInfo (string symbol, string source = null, string ivMode = null, string nextPage = null, int? pageSize = null, string stockPriceSource = null, string model = null, bool? showExtendedPrice = null, Object expirationStartDate = null, Object expirationEndDate = null); /// /// Option Prices Realtime Snapshot /// @@ -814,8 +822,10 @@ public interface IOptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Return aggregated data for this 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 ApiResponseOptionsAggregates - System.Threading.Tasks.Task GetOptionAggregatesAsync (Object date = null); + System.Threading.Tasks.Task GetOptionAggregatesAsync (Object date = null, int? pageSize = null, string nextPage = null); /// /// Total open interest and volume aggregated by ticker @@ -825,8 +835,10 @@ public interface IOptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Return aggregated data for this 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 (ApiResponseOptionsAggregates) - System.Threading.Tasks.Task> GetOptionAggregatesAsyncWithHttpInfo (Object date = null); + System.Threading.Tasks.Task> GetOptionAggregatesAsyncWithHttpInfo (Object date = null, int? pageSize = null, string nextPage = null); /// /// Options Expirations /// @@ -1371,8 +1383,10 @@ public interface IOptionsApi : IApiAccessor /// Source for underlying price for calculating Greeks. (optional) /// Model for calculating Greek values. Default is black_scholes. (optional) /// Whether to include open close high low type fields. (optional) + /// Filter out contracts that expire before this date. (optional) + /// Filter out contracts that expire after this date. (optional) /// Task of ApiResponseOptionsPricesByTickerRealtime - System.Threading.Tasks.Task GetOptionsPricesRealtimeByTickerAsync (string symbol, string source = null, string ivMode = null, string nextPage = null, int? pageSize = null, string stockPriceSource = null, string model = null, bool? showExtendedPrice = null); + System.Threading.Tasks.Task GetOptionsPricesRealtimeByTickerAsync (string symbol, string source = null, string ivMode = null, string nextPage = null, int? pageSize = null, string stockPriceSource = null, string model = null, bool? showExtendedPrice = null, Object expirationStartDate = null, Object expirationEndDate = null); /// /// Option Prices Realtime By Ticker @@ -1389,8 +1403,10 @@ public interface IOptionsApi : IApiAccessor /// Source for underlying price for calculating Greeks. (optional) /// Model for calculating Greek values. Default is black_scholes. (optional) /// Whether to include open close high low type fields. (optional) + /// Filter out contracts that expire before this date. (optional) + /// Filter out contracts that expire after this date. (optional) /// Task of ApiResponse (ApiResponseOptionsPricesByTickerRealtime) - System.Threading.Tasks.Task> GetOptionsPricesRealtimeByTickerAsyncWithHttpInfo (string symbol, string source = null, string ivMode = null, string nextPage = null, int? pageSize = null, string stockPriceSource = null, string model = null, bool? showExtendedPrice = null); + System.Threading.Tasks.Task> GetOptionsPricesRealtimeByTickerAsyncWithHttpInfo (string symbol, string source = null, string ivMode = null, string nextPage = null, int? pageSize = null, string stockPriceSource = null, string model = null, bool? showExtendedPrice = null, Object expirationStartDate = null, Object expirationEndDate = null); /// /// Option Prices Realtime Snapshot /// @@ -1805,10 +1821,12 @@ public async System.Threading.Tasks.Task> /// /// Thrown when fails to make API call /// Return aggregated data for this date (optional) + /// The number of results to return (optional, default to 100) + /// Gets the next page of data from a previous API call (optional) /// ApiResponseOptionsAggregates - public ApiResponseOptionsAggregates GetOptionAggregates (Object date = null) + public ApiResponseOptionsAggregates GetOptionAggregates (Object date = null, int? pageSize = null, string nextPage = null) { - ApiResponse localVarResponse = GetOptionAggregatesWithHttpInfo(date); + ApiResponse localVarResponse = GetOptionAggregatesWithHttpInfo(date, pageSize, nextPage); return localVarResponse.Data; } @@ -1817,9 +1835,11 @@ public ApiResponseOptionsAggregates GetOptionAggregates (Object date = null) /// /// Thrown when fails to make API call /// Return aggregated data for this 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 ApiResponseOptionsAggregates - public ApiResponse< ApiResponseOptionsAggregates > GetOptionAggregatesWithHttpInfo (Object date = null) + public ApiResponse< ApiResponseOptionsAggregates > GetOptionAggregatesWithHttpInfo (Object date = null, int? pageSize = null, string nextPage = null) { var localVarPath = "/options/aggregates"; @@ -1845,6 +1865,8 @@ public ApiResponse< ApiResponseOptionsAggregates > GetOptionAggregatesWithHttpIn 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"))) @@ -1875,10 +1897,12 @@ public ApiResponse< ApiResponseOptionsAggregates > GetOptionAggregatesWithHttpIn /// /// Thrown when fails to make API call /// Return aggregated data for this 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 ApiResponseOptionsAggregates - public async System.Threading.Tasks.Task GetOptionAggregatesAsync (Object date = null) + public async System.Threading.Tasks.Task GetOptionAggregatesAsync (Object date = null, int? pageSize = null, string nextPage = null) { - ApiResponse localVarResponse = await GetOptionAggregatesAsyncWithHttpInfo(date); + ApiResponse localVarResponse = await GetOptionAggregatesAsyncWithHttpInfo(date, pageSize, nextPage); return localVarResponse.Data; } @@ -1888,8 +1912,10 @@ public async System.Threading.Tasks.Task GetOption /// /// Thrown when fails to make API call /// Return aggregated data for this 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 (ApiResponseOptionsAggregates) - public async System.Threading.Tasks.Task> GetOptionAggregatesAsyncWithHttpInfo (Object date = null) + public async System.Threading.Tasks.Task> GetOptionAggregatesAsyncWithHttpInfo (Object date = null, int? pageSize = null, string nextPage = null) { var localVarPath = "/options/aggregates"; @@ -1915,6 +1941,8 @@ public async System.Threading.Tasks.TaskSource for underlying price for calculating Greeks. (optional) /// Model for calculating Greek values. Default is black_scholes. (optional) /// Whether to include open close high low type fields. (optional) + /// Filter out contracts that expire before this date. (optional) + /// Filter out contracts that expire after this date. (optional) /// ApiResponseOptionsPricesByTickerRealtime - public ApiResponseOptionsPricesByTickerRealtime GetOptionsPricesRealtimeByTicker (string symbol, string source = null, string ivMode = null, string nextPage = null, int? pageSize = null, string stockPriceSource = null, string model = null, bool? showExtendedPrice = null) + public ApiResponseOptionsPricesByTickerRealtime GetOptionsPricesRealtimeByTicker (string symbol, string source = null, string ivMode = null, string nextPage = null, int? pageSize = null, string stockPriceSource = null, string model = null, bool? showExtendedPrice = null, Object expirationStartDate = null, Object expirationEndDate = null) { - ApiResponse localVarResponse = GetOptionsPricesRealtimeByTickerWithHttpInfo(symbol, source, ivMode, nextPage, pageSize, stockPriceSource, model, showExtendedPrice); + ApiResponse localVarResponse = GetOptionsPricesRealtimeByTickerWithHttpInfo(symbol, source, ivMode, nextPage, pageSize, stockPriceSource, model, showExtendedPrice, expirationStartDate, expirationEndDate); return localVarResponse.Data; } @@ -4997,9 +5027,11 @@ public ApiResponseOptionsPricesByTickerRealtime GetOptionsPricesRealtimeByTicker /// Source for underlying price for calculating Greeks. (optional) /// Model for calculating Greek values. Default is black_scholes. (optional) /// Whether to include open close high low type fields. (optional) + /// Filter out contracts that expire before this date. (optional) + /// Filter out contracts that expire after this date. (optional) /// ApiResponse of ApiResponseOptionsPricesByTickerRealtime - public ApiResponse< ApiResponseOptionsPricesByTickerRealtime > GetOptionsPricesRealtimeByTickerWithHttpInfo (string symbol, string source = null, string ivMode = null, string nextPage = null, int? pageSize = null, string stockPriceSource = null, string model = null, bool? showExtendedPrice = null) + public ApiResponse< ApiResponseOptionsPricesByTickerRealtime > GetOptionsPricesRealtimeByTickerWithHttpInfo (string symbol, string source = null, string ivMode = null, string nextPage = null, int? pageSize = null, string stockPriceSource = null, string model = null, bool? showExtendedPrice = null, Object expirationStartDate = null, Object expirationEndDate = null) { // verify the required parameter 'symbol' is set if (symbol == null) @@ -5035,6 +5067,8 @@ public ApiResponse< ApiResponseOptionsPricesByTickerRealtime > GetOptionsPricesR if (stockPriceSource != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "stock_price_source", stockPriceSource)); // query parameter if (model != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "model", model)); // query parameter if (showExtendedPrice != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "show_extended_price", showExtendedPrice)); // query parameter + if (expirationStartDate != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "expiration_start_date", expirationStartDate)); // query parameter + if (expirationEndDate != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "expiration_end_date", expirationEndDate)); // query parameter // authentication (ApiKeyAuth) required if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key"))) @@ -5072,10 +5106,12 @@ public ApiResponse< ApiResponseOptionsPricesByTickerRealtime > GetOptionsPricesR /// Source for underlying price for calculating Greeks. (optional) /// Model for calculating Greek values. Default is black_scholes. (optional) /// Whether to include open close high low type fields. (optional) + /// Filter out contracts that expire before this date. (optional) + /// Filter out contracts that expire after this date. (optional) /// Task of ApiResponseOptionsPricesByTickerRealtime - public async System.Threading.Tasks.Task GetOptionsPricesRealtimeByTickerAsync (string symbol, string source = null, string ivMode = null, string nextPage = null, int? pageSize = null, string stockPriceSource = null, string model = null, bool? showExtendedPrice = null) + public async System.Threading.Tasks.Task GetOptionsPricesRealtimeByTickerAsync (string symbol, string source = null, string ivMode = null, string nextPage = null, int? pageSize = null, string stockPriceSource = null, string model = null, bool? showExtendedPrice = null, Object expirationStartDate = null, Object expirationEndDate = null) { - ApiResponse localVarResponse = await GetOptionsPricesRealtimeByTickerAsyncWithHttpInfo(symbol, source, ivMode, nextPage, pageSize, stockPriceSource, model, showExtendedPrice); + ApiResponse localVarResponse = await GetOptionsPricesRealtimeByTickerAsyncWithHttpInfo(symbol, source, ivMode, nextPage, pageSize, stockPriceSource, model, showExtendedPrice, expirationStartDate, expirationEndDate); return localVarResponse.Data; } @@ -5092,8 +5128,10 @@ public async System.Threading.Tasks.TaskSource for underlying price for calculating Greeks. (optional) /// Model for calculating Greek values. Default is black_scholes. (optional) /// Whether to include open close high low type fields. (optional) + /// Filter out contracts that expire before this date. (optional) + /// Filter out contracts that expire after this date. (optional) /// Task of ApiResponse (ApiResponseOptionsPricesByTickerRealtime) - public async System.Threading.Tasks.Task> GetOptionsPricesRealtimeByTickerAsyncWithHttpInfo (string symbol, string source = null, string ivMode = null, string nextPage = null, int? pageSize = null, string stockPriceSource = null, string model = null, bool? showExtendedPrice = null) + public async System.Threading.Tasks.Task> GetOptionsPricesRealtimeByTickerAsyncWithHttpInfo (string symbol, string source = null, string ivMode = null, string nextPage = null, int? pageSize = null, string stockPriceSource = null, string model = null, bool? showExtendedPrice = null, Object expirationStartDate = null, Object expirationEndDate = null) { // verify the required parameter 'symbol' is set if (symbol == null) @@ -5129,6 +5167,8 @@ public async System.Threading.Tasks.TaskReturn intervals starting at the specified time on the `start_date` (24-hour in 'hh:mm:ss' format) (optional) /// Return intervals stopping at the specified date (optional) /// Return intervals stopping at the specified time on the `end_date` (24-hour in 'hh:mm:ss' format) (optional) - /// Returns trading times in this timezone (optional, default to UTC) + /// Interprets the input times in this time zone, as well as returns times in this timezone. (optional, default to UTC) /// The number of results to return (optional, default to 100) /// Whether to return the values adjusted for splits or not. Default is false. (optional, default to false) /// If true, also include bars where no trades occurred but quotes did. (optional, default to false) @@ -348,7 +348,7 @@ public interface ISecurityApi : IApiAccessor /// Return intervals starting at the specified time on the `start_date` (24-hour in 'hh:mm:ss' format) (optional) /// Return intervals stopping at the specified date (optional) /// Return intervals stopping at the specified time on the `end_date` (24-hour in 'hh:mm:ss' format) (optional) - /// Returns trading times in this timezone (optional, default to UTC) + /// Interprets the input times in this time zone, as well as returns times in this timezone. (optional, default to UTC) /// The number of results to return (optional, default to 100) /// Whether to return the values adjusted for splits or not. Default is false. (optional, default to false) /// If true, also include bars where no trades occurred but quotes did. (optional, default to false) @@ -1445,7 +1445,7 @@ public interface ISecurityApi : IApiAccessor /// Quote for a Security /// /// - /// Return a current pricing quote for a security across multiple sources. + /// Returns many popular metrics for a security 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. /// /// Thrown when fails to make API call /// A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) @@ -1459,7 +1459,7 @@ public interface ISecurityApi : IApiAccessor /// Quote for a Security /// /// - /// Return a current pricing quote for a security across multiple sources. + /// Returns many popular metrics for a security 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. /// /// Thrown when fails to make API call /// A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) @@ -2166,7 +2166,7 @@ public interface ISecurityApi : IApiAccessor /// Return intervals starting at the specified time on the `start_date` (24-hour in 'hh:mm:ss' format) (optional) /// Return intervals stopping at the specified date (optional) /// Return intervals stopping at the specified time on the `end_date` (24-hour in 'hh:mm:ss' format) (optional) - /// Returns trading times in this timezone (optional, default to UTC) + /// Interprets the input times in this time zone, as well as returns times in this timezone. (optional, default to UTC) /// The number of results to return (optional, default to 100) /// Whether to return the values adjusted for splits or not. Default is false. (optional, default to false) /// If true, also include bars where no trades occurred but quotes did. (optional, default to false) @@ -2188,7 +2188,7 @@ public interface ISecurityApi : IApiAccessor /// Return intervals starting at the specified time on the `start_date` (24-hour in 'hh:mm:ss' format) (optional) /// Return intervals stopping at the specified date (optional) /// Return intervals stopping at the specified time on the `end_date` (24-hour in 'hh:mm:ss' format) (optional) - /// Returns trading times in this timezone (optional, default to UTC) + /// Interprets the input times in this time zone, as well as returns times in this timezone. (optional, default to UTC) /// The number of results to return (optional, default to 100) /// Whether to return the values adjusted for splits or not. Default is false. (optional, default to false) /// If true, also include bars where no trades occurred but quotes did. (optional, default to false) @@ -3285,7 +3285,7 @@ public interface ISecurityApi : IApiAccessor /// Quote for a Security /// /// - /// Return a current pricing quote for a security across multiple sources. + /// Returns many popular metrics for a security 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. /// /// Thrown when fails to make API call /// A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) @@ -3299,7 +3299,7 @@ public interface ISecurityApi : IApiAccessor /// Quote for a Security /// /// - /// Return a current pricing quote for a security across multiple sources. + /// Returns many popular metrics for a security 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. /// /// Thrown when fails to make API call /// A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) @@ -5609,7 +5609,7 @@ public async System.Threading.Tasks.TaskReturn intervals starting at the specified time on the `start_date` (24-hour in 'hh:mm:ss' format) (optional) /// Return intervals stopping at the specified date (optional) /// Return intervals stopping at the specified time on the `end_date` (24-hour in 'hh:mm:ss' format) (optional) - /// Returns trading times in this timezone (optional, default to UTC) + /// Interprets the input times in this time zone, as well as returns times in this timezone. (optional, default to UTC) /// The number of results to return (optional, default to 100) /// Whether to return the values adjusted for splits or not. Default is false. (optional, default to false) /// If true, also include bars where no trades occurred but quotes did. (optional, default to false) @@ -5632,7 +5632,7 @@ public ApiResponseSecurityIntervalPrices GetSecurityIntervalPrices (string ident /// Return intervals starting at the specified time on the `start_date` (24-hour in 'hh:mm:ss' format) (optional) /// Return intervals stopping at the specified date (optional) /// Return intervals stopping at the specified time on the `end_date` (24-hour in 'hh:mm:ss' format) (optional) - /// Returns trading times in this timezone (optional, default to UTC) + /// Interprets the input times in this time zone, as well as returns times in this timezone. (optional, default to UTC) /// The number of results to return (optional, default to 100) /// Whether to return the values adjusted for splits or not. Default is false. (optional, default to false) /// If true, also include bars where no trades occurred but quotes did. (optional, default to false) @@ -5731,7 +5731,7 @@ public ApiResponse< ApiResponseSecurityIntervalPrices > GetSecurityIntervalPrice /// Return intervals starting at the specified time on the `start_date` (24-hour in 'hh:mm:ss' format) (optional) /// Return intervals stopping at the specified date (optional) /// Return intervals stopping at the specified time on the `end_date` (24-hour in 'hh:mm:ss' format) (optional) - /// Returns trading times in this timezone (optional, default to UTC) + /// Interprets the input times in this time zone, as well as returns times in this timezone. (optional, default to UTC) /// The number of results to return (optional, default to 100) /// Whether to return the values adjusted for splits or not. Default is false. (optional, default to false) /// If true, also include bars where no trades occurred but quotes did. (optional, default to false) @@ -5755,7 +5755,7 @@ public async System.Threading.Tasks.Task GetS /// Return intervals starting at the specified time on the `start_date` (24-hour in 'hh:mm:ss' format) (optional) /// Return intervals stopping at the specified date (optional) /// Return intervals stopping at the specified time on the `end_date` (24-hour in 'hh:mm:ss' format) (optional) - /// Returns trading times in this timezone (optional, default to UTC) + /// Interprets the input times in this time zone, as well as returns times in this timezone. (optional, default to UTC) /// The number of results to return (optional, default to 100) /// Whether to return the values adjusted for splits or not. Default is false. (optional, default to false) /// If true, also include bars where no trades occurred but quotes did. (optional, default to false) @@ -11949,7 +11949,7 @@ public async System.Threading.Tasks.Task - /// Quote for a Security Return a current pricing quote for a security across multiple sources. + /// Quote for a Security Returns many popular metrics for a security 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. /// /// Thrown when fails to make API call /// A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) @@ -11964,7 +11964,7 @@ public ApiResponseSecurityQuote GetSecurityQuote (string identifier, bool? activ } /// - /// Quote for a Security Return a current pricing quote for a security across multiple sources. + /// Quote for a Security Returns many popular metrics for a security 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. /// /// Thrown when fails to make API call /// A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) @@ -12031,7 +12031,7 @@ public ApiResponse< ApiResponseSecurityQuote > GetSecurityQuoteWithHttpInfo (str } /// - /// Quote for a Security Return a current pricing quote for a security across multiple sources. + /// Quote for a Security Returns many popular metrics for a security 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. /// /// Thrown when fails to make API call /// A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) @@ -12047,7 +12047,7 @@ public async System.Threading.Tasks.Task GetSecurityQu } /// - /// Quote for a Security Return a current pricing quote for a security across multiple sources. + /// Quote for a Security Returns many popular metrics for a security 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. /// /// Thrown when fails to make API call /// A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) diff --git a/src/Intrinio.SDK/Api/StockExchangeApi.cs b/src/Intrinio.SDK/Api/StockExchangeApi.cs index 0a5cb72..5755fd4 100644 --- a/src/Intrinio.SDK/Api/StockExchangeApi.cs +++ b/src/Intrinio.SDK/Api/StockExchangeApi.cs @@ -66,6 +66,60 @@ public interface IStockExchangeApi : IApiAccessor /// ApiResponse of StockExchange ApiResponse GetStockExchangeByIdWithHttpInfo (string identifier); /// + /// Top Gainers by Exchange + /// + /// + /// Returns securities with the highest gain percent change traded on the chosen stock exchange. + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// The minimum price filter (optional) + /// The number of results to return (optional, default to 100) + /// Return the realtime price from the specified source instead of the most recent. (optional) + /// ApiResponseStockExchangeMovers + 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. + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// The minimum price filter (optional) + /// The number of results to return (optional, default to 100) + /// Return the realtime price from the specified source instead of the most recent. (optional) + /// ApiResponse of ApiResponseStockExchangeMovers + ApiResponse GetStockExchangeGainersWithHttpInfo (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. + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// The minimum price filter (optional) + /// The number of results to return (optional, default to 100) + /// Return the realtime price from the specified source instead of the most recent. (optional) + /// ApiResponseStockExchangeMovers + 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. + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// The minimum price filter (optional) + /// The number of results to return (optional, default to 100) + /// Return the realtime price from the specified source instead of the most recent. (optional) + /// ApiResponse of ApiResponseStockExchangeMovers + ApiResponse GetStockExchangeLosersWithHttpInfo (string identifier, decimal? minPrice = null, int? pageSize = null, string source = null); + /// /// Stock Price Adjustments by Exchange /// /// @@ -128,6 +182,33 @@ public interface IStockExchangeApi : IApiAccessor /// ApiResponse of ApiResponseStockExchangeStockPrices ApiResponse GetStockExchangePricesWithHttpInfo (string identifier, DateTime? date = null, DateTime? startDate = null, DateTime? endDate = null, int? pageSize = null, string nextPage = null, List tickers = null, string nextPage2 = 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. + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// The comma-delimited list of ticker symbols to return quotes for. + /// Return the realtime price from the specified source instead of the most recent. (optional) + /// Returns prices only from the most recent trading day. (optional) + /// ApiResponseStockExchangeQuote + 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. + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// The comma-delimited list of ticker symbols to return quotes for. + /// Return the realtime price from the specified source instead of the most recent. (optional) + /// Returns prices only from the most recent trading day. (optional) + /// ApiResponse of ApiResponseStockExchangeQuote + ApiResponse GetStockExchangeQuoteWithHttpInfo (string identifier, List tickers, string source = null, bool? activeOnly = null); + /// /// Realtime Stock Prices by Exchange /// /// @@ -137,11 +218,12 @@ public interface IStockExchangeApi : IApiAccessor /// A Stock Exchange identifier (MIC or Intrinio ID) /// Return realtime prices from the specified comma-delimited data sources. If no source is specified, all sources available to user are used. (optional) /// Returns prices only from the most recent trading day. (optional) + /// Returns prices only from securities which have traded on the most recent trading day. (optional) /// The number of results to return (optional, default to 100) /// The comma-delimited list of ticker symbols to filter to. If not provided, the entire stock exchange is returned. (optional) /// Gets the next page of data from a previous API call (optional) /// ApiResponseStockExchangeRealtimeStockPrices - ApiResponseStockExchangeRealtimeStockPrices GetStockExchangeRealtimePrices (string identifier, List source = null, bool? activeOnly = null, int? pageSize = null, List tickers = null, string nextPage = null); + 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 @@ -153,11 +235,12 @@ public interface IStockExchangeApi : IApiAccessor /// A Stock Exchange identifier (MIC or Intrinio ID) /// Return realtime prices from the specified comma-delimited data sources. If no source is specified, all sources available to user are used. (optional) /// Returns prices only from the most recent trading day. (optional) + /// Returns prices only from securities which have traded on the most recent trading day. (optional) /// The number of results to return (optional, default to 100) /// The comma-delimited list of ticker symbols to filter to. If not provided, the entire stock exchange is returned. (optional) /// Gets the next page of data from a previous API call (optional) /// ApiResponse of ApiResponseStockExchangeRealtimeStockPrices - ApiResponse GetStockExchangeRealtimePricesWithHttpInfo (string identifier, List source = null, bool? activeOnly = null, int? pageSize = null, List tickers = null, string nextPage = null); + ApiResponse GetStockExchangeRealtimePricesWithHttpInfo (string identifier, List source = null, bool? activeOnly = null, bool? tradedToday = null, int? pageSize = null, List tickers = null, string nextPage = null); /// /// Securities by Exchange /// @@ -234,6 +317,60 @@ public interface IStockExchangeApi : IApiAccessor /// Task of ApiResponse (StockExchange) System.Threading.Tasks.Task> GetStockExchangeByIdAsyncWithHttpInfo (string identifier); /// + /// Top Gainers by Exchange + /// + /// + /// Returns securities with the highest gain percent change traded on the chosen stock exchange. + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// The minimum price filter (optional) + /// The number of results to return (optional, default to 100) + /// Return the realtime price from the specified source instead of the most recent. (optional) + /// Task of ApiResponseStockExchangeMovers + System.Threading.Tasks.Task GetStockExchangeGainersAsync (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. + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// The minimum price filter (optional) + /// The number of results to return (optional, default to 100) + /// Return the realtime price from the specified source instead of the most recent. (optional) + /// Task of ApiResponse (ApiResponseStockExchangeMovers) + System.Threading.Tasks.Task> GetStockExchangeGainersAsyncWithHttpInfo (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. + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// The minimum price filter (optional) + /// The number of results to return (optional, default to 100) + /// Return the realtime price from the specified source instead of the most recent. (optional) + /// Task of ApiResponseStockExchangeMovers + System.Threading.Tasks.Task GetStockExchangeLosersAsync (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. + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// The minimum price filter (optional) + /// The number of results to return (optional, default to 100) + /// Return the realtime price from the specified source instead of the most recent. (optional) + /// Task of ApiResponse (ApiResponseStockExchangeMovers) + System.Threading.Tasks.Task> GetStockExchangeLosersAsyncWithHttpInfo (string identifier, decimal? minPrice = null, int? pageSize = null, string source = null); + /// /// Stock Price Adjustments by Exchange /// /// @@ -296,6 +433,33 @@ public interface IStockExchangeApi : IApiAccessor /// Task of ApiResponse (ApiResponseStockExchangeStockPrices) System.Threading.Tasks.Task> GetStockExchangePricesAsyncWithHttpInfo (string identifier, DateTime? date = null, DateTime? startDate = null, DateTime? endDate = null, int? pageSize = null, string nextPage = null, List tickers = null, string nextPage2 = 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. + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// The comma-delimited list of ticker symbols to return quotes for. + /// Return the realtime price from the specified source instead of the most recent. (optional) + /// Returns prices only from the most recent trading day. (optional) + /// Task of ApiResponseStockExchangeQuote + System.Threading.Tasks.Task GetStockExchangeQuoteAsync (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. + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// The comma-delimited list of ticker symbols to return quotes for. + /// Return the realtime price from the specified source instead of the most recent. (optional) + /// Returns prices only from the most recent trading day. (optional) + /// Task of ApiResponse (ApiResponseStockExchangeQuote) + System.Threading.Tasks.Task> GetStockExchangeQuoteAsyncWithHttpInfo (string identifier, List tickers, string source = null, bool? activeOnly = null); + /// /// Realtime Stock Prices by Exchange /// /// @@ -305,11 +469,12 @@ public interface IStockExchangeApi : IApiAccessor /// A Stock Exchange identifier (MIC or Intrinio ID) /// Return realtime prices from the specified comma-delimited data sources. If no source is specified, all sources available to user are used. (optional) /// Returns prices only from the most recent trading day. (optional) + /// Returns prices only from securities which have traded on the most recent trading day. (optional) /// The number of results to return (optional, default to 100) /// The comma-delimited list of ticker symbols to filter to. If not provided, the entire stock exchange is returned. (optional) /// Gets the next page of data from a previous API call (optional) /// Task of ApiResponseStockExchangeRealtimeStockPrices - System.Threading.Tasks.Task GetStockExchangeRealtimePricesAsync (string identifier, List source = null, bool? activeOnly = null, int? pageSize = null, List tickers = null, string nextPage = null); + System.Threading.Tasks.Task GetStockExchangeRealtimePricesAsync (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 @@ -321,11 +486,12 @@ public interface IStockExchangeApi : IApiAccessor /// A Stock Exchange identifier (MIC or Intrinio ID) /// Return realtime prices from the specified comma-delimited data sources. If no source is specified, all sources available to user are used. (optional) /// Returns prices only from the most recent trading day. (optional) + /// Returns prices only from securities which have traded on the most recent trading day. (optional) /// The number of results to return (optional, default to 100) /// The comma-delimited list of ticker symbols to filter to. If not provided, the entire stock exchange is returned. (optional) /// Gets the next page of data from a previous API call (optional) /// Task of ApiResponse (ApiResponseStockExchangeRealtimeStockPrices) - System.Threading.Tasks.Task> GetStockExchangeRealtimePricesAsyncWithHttpInfo (string identifier, List source = null, bool? activeOnly = null, int? pageSize = null, List tickers = null, string nextPage = null); + System.Threading.Tasks.Task> GetStockExchangeRealtimePricesAsyncWithHttpInfo (string identifier, List source = null, bool? activeOnly = null, bool? tradedToday = null, int? pageSize = null, List tickers = null, string nextPage = null); /// /// Securities by Exchange /// @@ -766,6 +932,334 @@ public async System.Threading.Tasks.Task> GetStockExc (StockExchange) Configuration.ApiClient.Deserialize(localVarResponse, typeof(StockExchange))); } + /// + /// Top Gainers by Exchange Returns securities with the highest gain percent change traded on the chosen stock exchange. + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// The minimum price filter (optional) + /// The number of results to return (optional, default to 100) + /// Return the realtime price from the specified source instead of the most recent. (optional) + /// ApiResponseStockExchangeMovers + public ApiResponseStockExchangeMovers GetStockExchangeGainers (string identifier, decimal? minPrice = null, int? pageSize = null, string source = null) + { + ApiResponse localVarResponse = GetStockExchangeGainersWithHttpInfo(identifier, minPrice, pageSize, source); + return localVarResponse.Data; + } + + /// + /// Top Gainers by Exchange Returns securities with the highest gain percent change traded on the chosen stock exchange. + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// The minimum price filter (optional) + /// The number of results to return (optional, default to 100) + /// Return the realtime price from the specified source instead of the most recent. (optional) + /// ApiResponse of ApiResponseStockExchangeMovers + + public ApiResponse< ApiResponseStockExchangeMovers > GetStockExchangeGainersWithHttpInfo (string identifier, decimal? minPrice = null, int? pageSize = null, string source = null) + { + // verify the required parameter 'identifier' is set + if (identifier == null) + throw new ApiException(400, "Missing required parameter 'identifier' when calling StockExchangeApi->GetStockExchangeGainers"); + + var localVarPath = "/stock_exchanges/{identifier}/gainers"; + 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 (minPrice != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "min_price", minPrice)); // query parameter + if (pageSize != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "page_size", pageSize)); // query parameter + if (source != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "source", source)); // 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("GetStockExchangeGainers", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.Select(x => new KeyValuePair(x.Name, x.Value.ToString())).ToList(), + (ApiResponseStockExchangeMovers) Configuration.ApiClient.Deserialize(localVarResponse, typeof(ApiResponseStockExchangeMovers))); + } + + /// + /// Top Gainers by Exchange Returns securities with the highest gain percent change traded on the chosen stock exchange. + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// The minimum price filter (optional) + /// The number of results to return (optional, default to 100) + /// Return the realtime price from the specified source instead of the most recent. (optional) + /// Task of ApiResponseStockExchangeMovers + public async System.Threading.Tasks.Task GetStockExchangeGainersAsync (string identifier, decimal? minPrice = null, int? pageSize = null, string source = null) + { + ApiResponse localVarResponse = await GetStockExchangeGainersAsyncWithHttpInfo(identifier, minPrice, pageSize, source); + return localVarResponse.Data; + + } + + /// + /// Top Gainers by Exchange Returns securities with the highest gain percent change traded on the chosen stock exchange. + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// The minimum price filter (optional) + /// The number of results to return (optional, default to 100) + /// Return the realtime price from the specified source instead of the most recent. (optional) + /// Task of ApiResponse (ApiResponseStockExchangeMovers) + public async System.Threading.Tasks.Task> GetStockExchangeGainersAsyncWithHttpInfo (string identifier, decimal? minPrice = null, int? pageSize = null, string source = null) + { + // verify the required parameter 'identifier' is set + if (identifier == null) + throw new ApiException(400, "Missing required parameter 'identifier' when calling StockExchangeApi->GetStockExchangeGainers"); + + var localVarPath = "/stock_exchanges/{identifier}/gainers"; + 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 (minPrice != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "min_price", minPrice)); // query parameter + if (pageSize != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "page_size", pageSize)); // query parameter + if (source != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "source", source)); // 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("GetStockExchangeGainers", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.Select(x => new KeyValuePair(x.Name, x.Value.ToString())).ToList(), + (ApiResponseStockExchangeMovers) Configuration.ApiClient.Deserialize(localVarResponse, typeof(ApiResponseStockExchangeMovers))); + } + + /// + /// Top Losers by Exchange Returns securities with the highest loss percent change traded on the chosen stock exchange. + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// The minimum price filter (optional) + /// The number of results to return (optional, default to 100) + /// Return the realtime price from the specified source instead of the most recent. (optional) + /// ApiResponseStockExchangeMovers + public ApiResponseStockExchangeMovers GetStockExchangeLosers (string identifier, decimal? minPrice = null, int? pageSize = null, string source = null) + { + ApiResponse localVarResponse = GetStockExchangeLosersWithHttpInfo(identifier, minPrice, pageSize, source); + return localVarResponse.Data; + } + + /// + /// Top Losers by Exchange Returns securities with the highest loss percent change traded on the chosen stock exchange. + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// The minimum price filter (optional) + /// The number of results to return (optional, default to 100) + /// Return the realtime price from the specified source instead of the most recent. (optional) + /// ApiResponse of ApiResponseStockExchangeMovers + + public ApiResponse< ApiResponseStockExchangeMovers > GetStockExchangeLosersWithHttpInfo (string identifier, decimal? minPrice = null, int? pageSize = null, string source = null) + { + // verify the required parameter 'identifier' is set + if (identifier == null) + throw new ApiException(400, "Missing required parameter 'identifier' when calling StockExchangeApi->GetStockExchangeLosers"); + + var localVarPath = "/stock_exchanges/{identifier}/losers"; + 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 (minPrice != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "min_price", minPrice)); // query parameter + if (pageSize != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "page_size", pageSize)); // query parameter + if (source != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "source", source)); // 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("GetStockExchangeLosers", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.Select(x => new KeyValuePair(x.Name, x.Value.ToString())).ToList(), + (ApiResponseStockExchangeMovers) Configuration.ApiClient.Deserialize(localVarResponse, typeof(ApiResponseStockExchangeMovers))); + } + + /// + /// Top Losers by Exchange Returns securities with the highest loss percent change traded on the chosen stock exchange. + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// The minimum price filter (optional) + /// The number of results to return (optional, default to 100) + /// Return the realtime price from the specified source instead of the most recent. (optional) + /// Task of ApiResponseStockExchangeMovers + public async System.Threading.Tasks.Task GetStockExchangeLosersAsync (string identifier, decimal? minPrice = null, int? pageSize = null, string source = null) + { + ApiResponse localVarResponse = await GetStockExchangeLosersAsyncWithHttpInfo(identifier, minPrice, pageSize, source); + return localVarResponse.Data; + + } + + /// + /// Top Losers by Exchange Returns securities with the highest loss percent change traded on the chosen stock exchange. + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// The minimum price filter (optional) + /// The number of results to return (optional, default to 100) + /// Return the realtime price from the specified source instead of the most recent. (optional) + /// Task of ApiResponse (ApiResponseStockExchangeMovers) + public async System.Threading.Tasks.Task> GetStockExchangeLosersAsyncWithHttpInfo (string identifier, decimal? minPrice = null, int? pageSize = null, string source = null) + { + // verify the required parameter 'identifier' is set + if (identifier == null) + throw new ApiException(400, "Missing required parameter 'identifier' when calling StockExchangeApi->GetStockExchangeLosers"); + + var localVarPath = "/stock_exchanges/{identifier}/losers"; + 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 (minPrice != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "min_price", minPrice)); // query parameter + if (pageSize != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "page_size", pageSize)); // query parameter + if (source != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "source", source)); // 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("GetStockExchangeLosers", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.Select(x => new KeyValuePair(x.Name, x.Value.ToString())).ToList(), + (ApiResponseStockExchangeMovers) Configuration.ApiClient.Deserialize(localVarResponse, typeof(ApiResponseStockExchangeMovers))); + } + /// /// Stock Price Adjustments by Exchange Returns stock price adjustments for the Stock Exchange with the given `identifier` /// @@ -1118,6 +1612,176 @@ public async System.Threading.Tasks.Task + /// 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. + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// The comma-delimited list of ticker symbols to return quotes for. + /// Return the realtime price from the specified source instead of the most recent. (optional) + /// Returns prices only from the most recent trading day. (optional) + /// ApiResponseStockExchangeQuote + public ApiResponseStockExchangeQuote GetStockExchangeQuote (string identifier, List tickers, string source = null, bool? activeOnly = null) + { + ApiResponse localVarResponse = GetStockExchangeQuoteWithHttpInfo(identifier, tickers, source, activeOnly); + return localVarResponse.Data; + } + + /// + /// 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. + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// The comma-delimited list of ticker symbols to return quotes for. + /// Return the realtime price from the specified source instead of the most recent. (optional) + /// Returns prices only from the most recent trading day. (optional) + /// ApiResponse of ApiResponseStockExchangeQuote + + public ApiResponse< ApiResponseStockExchangeQuote > GetStockExchangeQuoteWithHttpInfo (string identifier, List tickers, string source = null, bool? activeOnly = null) + { + // verify the required parameter 'identifier' is set + if (identifier == null) + throw new ApiException(400, "Missing required parameter 'identifier' when calling StockExchangeApi->GetStockExchangeQuote"); + // verify the required parameter 'tickers' is set + if (tickers == null) + throw new ApiException(400, "Missing required parameter 'tickers' when calling StockExchangeApi->GetStockExchangeQuote"); + + var localVarPath = "/stock_exchanges/{identifier}/quote"; + 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 (source != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "source", source)); // query parameter + if (activeOnly != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "active_only", activeOnly)); // query parameter + if (tickers != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("csv", "tickers", tickers)); // 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("GetStockExchangeQuote", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.Select(x => new KeyValuePair(x.Name, x.Value.ToString())).ToList(), + (ApiResponseStockExchangeQuote) Configuration.ApiClient.Deserialize(localVarResponse, typeof(ApiResponseStockExchangeQuote))); + } + + /// + /// 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. + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// The comma-delimited list of ticker symbols to return quotes for. + /// Return the realtime price from the specified source instead of the most recent. (optional) + /// Returns prices only from the most recent trading day. (optional) + /// Task of ApiResponseStockExchangeQuote + public async System.Threading.Tasks.Task GetStockExchangeQuoteAsync (string identifier, List tickers, string source = null, bool? activeOnly = null) + { + ApiResponse localVarResponse = await GetStockExchangeQuoteAsyncWithHttpInfo(identifier, tickers, source, activeOnly); + return localVarResponse.Data; + + } + + /// + /// 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. + /// + /// Thrown when fails to make API call + /// A Stock Exchange identifier (MIC or Intrinio ID) + /// The comma-delimited list of ticker symbols to return quotes for. + /// Return the realtime price from the specified source instead of the most recent. (optional) + /// Returns prices only from the most recent trading day. (optional) + /// Task of ApiResponse (ApiResponseStockExchangeQuote) + public async System.Threading.Tasks.Task> GetStockExchangeQuoteAsyncWithHttpInfo (string identifier, List tickers, string source = null, bool? activeOnly = null) + { + // verify the required parameter 'identifier' is set + if (identifier == null) + throw new ApiException(400, "Missing required parameter 'identifier' when calling StockExchangeApi->GetStockExchangeQuote"); + // verify the required parameter 'tickers' is set + if (tickers == null) + throw new ApiException(400, "Missing required parameter 'tickers' when calling StockExchangeApi->GetStockExchangeQuote"); + + var localVarPath = "/stock_exchanges/{identifier}/quote"; + 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 (source != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "source", source)); // query parameter + if (activeOnly != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "active_only", activeOnly)); // query parameter + if (tickers != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("csv", "tickers", tickers)); // 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("GetStockExchangeQuote", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.Select(x => new KeyValuePair(x.Name, x.Value.ToString())).ToList(), + (ApiResponseStockExchangeQuote) Configuration.ApiClient.Deserialize(localVarResponse, typeof(ApiResponseStockExchangeQuote))); + } + /// /// Realtime Stock Prices by Exchange Returns realtime stock prices for the Stock Exchange with the given `identifier` /// @@ -1125,13 +1789,14 @@ public async System.Threading.Tasks.TaskA Stock Exchange identifier (MIC or Intrinio ID) /// Return realtime prices from the specified comma-delimited data sources. If no source is specified, all sources available to user are used. (optional) /// Returns prices only from the most recent trading day. (optional) + /// Returns prices only from securities which have traded on the most recent trading day. (optional) /// The number of results to return (optional, default to 100) /// The comma-delimited list of ticker symbols to filter to. If not provided, the entire stock exchange is returned. (optional) /// Gets the next page of data from a previous API call (optional) /// ApiResponseStockExchangeRealtimeStockPrices - public ApiResponseStockExchangeRealtimeStockPrices GetStockExchangeRealtimePrices (string identifier, List source = null, bool? activeOnly = null, int? pageSize = null, List tickers = null, string nextPage = null) + public ApiResponseStockExchangeRealtimeStockPrices GetStockExchangeRealtimePrices (string identifier, List source = null, bool? activeOnly = null, bool? tradedToday = null, int? pageSize = null, List tickers = null, string nextPage = null) { - ApiResponse localVarResponse = GetStockExchangeRealtimePricesWithHttpInfo(identifier, source, activeOnly, pageSize, tickers, nextPage); + ApiResponse localVarResponse = GetStockExchangeRealtimePricesWithHttpInfo(identifier, source, activeOnly, tradedToday, pageSize, tickers, nextPage); return localVarResponse.Data; } @@ -1142,12 +1807,13 @@ public ApiResponseStockExchangeRealtimeStockPrices GetStockExchangeRealtimePrice /// A Stock Exchange identifier (MIC or Intrinio ID) /// Return realtime prices from the specified comma-delimited data sources. If no source is specified, all sources available to user are used. (optional) /// Returns prices only from the most recent trading day. (optional) + /// Returns prices only from securities which have traded on the most recent trading day. (optional) /// The number of results to return (optional, default to 100) /// The comma-delimited list of ticker symbols to filter to. If not provided, the entire stock exchange is returned. (optional) /// Gets the next page of data from a previous API call (optional) /// ApiResponse of ApiResponseStockExchangeRealtimeStockPrices - public ApiResponse< ApiResponseStockExchangeRealtimeStockPrices > GetStockExchangeRealtimePricesWithHttpInfo (string identifier, List source = null, bool? activeOnly = null, int? pageSize = null, List tickers = null, string nextPage = null) + public ApiResponse< ApiResponseStockExchangeRealtimeStockPrices > GetStockExchangeRealtimePricesWithHttpInfo (string identifier, List source = null, bool? activeOnly = null, bool? tradedToday = null, int? pageSize = null, List tickers = null, string nextPage = null) { // verify the required parameter 'identifier' is set if (identifier == null) @@ -1178,6 +1844,7 @@ public ApiResponse< ApiResponseStockExchangeRealtimeStockPrices > GetStockExchan if (identifier != null) localVarPathParams.Add("identifier", Configuration.ApiClient.ParameterToString(identifier)); // path parameter if (source != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("csv", "source", source)); // query parameter if (activeOnly != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "active_only", activeOnly)); // query parameter + if (tradedToday != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "traded_today", tradedToday)); // query parameter if (pageSize != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "page_size", pageSize)); // query parameter if (tickers != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("csv", "tickers", tickers)); // query parameter if (nextPage != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "next_page", nextPage)); // query parameter @@ -1213,13 +1880,14 @@ public ApiResponse< ApiResponseStockExchangeRealtimeStockPrices > GetStockExchan /// A Stock Exchange identifier (MIC or Intrinio ID) /// Return realtime prices from the specified comma-delimited data sources. If no source is specified, all sources available to user are used. (optional) /// Returns prices only from the most recent trading day. (optional) + /// Returns prices only from securities which have traded on the most recent trading day. (optional) /// The number of results to return (optional, default to 100) /// The comma-delimited list of ticker symbols to filter to. If not provided, the entire stock exchange is returned. (optional) /// Gets the next page of data from a previous API call (optional) /// Task of ApiResponseStockExchangeRealtimeStockPrices - public async System.Threading.Tasks.Task GetStockExchangeRealtimePricesAsync (string identifier, List source = null, bool? activeOnly = null, int? pageSize = null, List tickers = null, string nextPage = null) + public async System.Threading.Tasks.Task GetStockExchangeRealtimePricesAsync (string identifier, List source = null, bool? activeOnly = null, bool? tradedToday = null, int? pageSize = null, List tickers = null, string nextPage = null) { - ApiResponse localVarResponse = await GetStockExchangeRealtimePricesAsyncWithHttpInfo(identifier, source, activeOnly, pageSize, tickers, nextPage); + ApiResponse localVarResponse = await GetStockExchangeRealtimePricesAsyncWithHttpInfo(identifier, source, activeOnly, tradedToday, pageSize, tickers, nextPage); return localVarResponse.Data; } @@ -1231,11 +1899,12 @@ public async System.Threading.Tasks.TaskA Stock Exchange identifier (MIC or Intrinio ID) /// Return realtime prices from the specified comma-delimited data sources. If no source is specified, all sources available to user are used. (optional) /// Returns prices only from the most recent trading day. (optional) + /// Returns prices only from securities which have traded on the most recent trading day. (optional) /// The number of results to return (optional, default to 100) /// The comma-delimited list of ticker symbols to filter to. If not provided, the entire stock exchange is returned. (optional) /// Gets the next page of data from a previous API call (optional) /// Task of ApiResponse (ApiResponseStockExchangeRealtimeStockPrices) - public async System.Threading.Tasks.Task> GetStockExchangeRealtimePricesAsyncWithHttpInfo (string identifier, List source = null, bool? activeOnly = null, int? pageSize = null, List tickers = null, string nextPage = null) + public async System.Threading.Tasks.Task> GetStockExchangeRealtimePricesAsyncWithHttpInfo (string identifier, List source = null, bool? activeOnly = null, bool? tradedToday = null, int? pageSize = null, List tickers = null, string nextPage = null) { // verify the required parameter 'identifier' is set if (identifier == null) @@ -1266,6 +1935,7 @@ public async System.Threading.Tasks.Task class /// with default configuration. /// - public ApiClient() + public ApiClient() : this(Intrinio.SDK.Client.Configuration.Default) { - Configuration = Intrinio.SDK.Client.Configuration.Default; - RestClient = new RestClient("https://api-v2.intrinio.com"); + } /// @@ -61,30 +60,16 @@ public ApiClient(Configuration config) { Configuration = config ?? Intrinio.SDK.Client.Configuration.Default; - RestClient = new RestClient(Configuration.BasePath); - } - - /// - /// Initializes a new instance of the class - /// with default configuration. - /// - /// The base path. - public ApiClient(String basePath = "https://api-v2.intrinio.com") - { - if (String.IsNullOrEmpty(basePath)) + if (String.IsNullOrWhiteSpace(Configuration.BasePath)) throw new ArgumentException("basePath cannot be empty"); - RestClient = new RestClient(basePath); - Configuration = Client.Configuration.Default; + RestClientOptions options = new RestClientOptions(); + options.BaseUrl = new Uri(Configuration.BasePath); + options.Timeout = TimeSpan.FromMilliseconds(Configuration.Timeout > 0 ? Configuration.Timeout : 100_000); + options.UserAgent = Configuration.UserAgent; + RestClient = new RestClient(options); } - /// - /// Gets or sets the default API client for making HTTP calls. - /// - /// The default API client. - [Obsolete("ApiClient.Default is deprecated, please use 'Configuration.Default.ApiClient' instead.")] - public static ApiClient Default; - /// /// Gets or sets an instance of the IReadableConfiguration. /// @@ -164,12 +149,6 @@ public Object CallApi( path, method, queryParams, postBody, headerParams, formParams, fileParams, pathParams, contentType); - // set timeout - - RestClient.Options.MaxTimeout = Configuration.Timeout; - // set user agent - RestClient.Options.UserAgent = Configuration.UserAgent; - var allowRetries = Intrinio.SDK.Client.Configuration.Default.AllowRetries; var retryCount = 0; if (allowRetries is true) diff --git a/src/Intrinio.SDK/Client/Configuration.cs b/src/Intrinio.SDK/Client/Configuration.cs index 82cc1d3..114620e 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.8.0"; + public const string Version = "7.10.0"; /// /// Identifier for ISO 8601 DateTime Format @@ -106,14 +106,12 @@ static Configuration() /// public Configuration() { - UserAgent = "Swagger-Codegen/7.8.0/csharp"; + UserAgent = "Swagger-Codegen/7.10.0/csharp"; BasePath = "https://api-v2.intrinio.com"; DefaultHeader = new ConcurrentDictionary(); ApiKey = new ConcurrentDictionary(); ApiKeyPrefix = new ConcurrentDictionary(); AllowRetries = true; - - // Setting Timeout has side effects (forces ApiClient creation). Timeout = 100000; } @@ -153,53 +151,6 @@ public Configuration( } } - /// - /// Initializes a new instance of the class with different settings - /// - /// Api client - /// Dictionary of default HTTP header - /// Username - /// Password - /// accessToken - /// Dictionary of API key - /// Dictionary of API key prefix - /// Temp folder path - /// DateTime format string - /// HTTP connection timeout (in milliseconds) - /// HTTP user agent - /// Allow API call retries - [Obsolete("Use explicit object construction and setting of properties.", true)] - public Configuration( - // ReSharper disable UnusedParameter.Local - ApiClient apiClient = null, - IDictionary defaultHeader = null, - string username = null, - string password = null, - string accessToken = null, - IDictionary apiKey = null, - IDictionary apiKeyPrefix = null, - string tempFolderPath = null, - string dateTimeFormat = null, - int timeout = 100000, - bool allowRetries = true, - string userAgent = "Swagger-Codegen/7.8.0/csharp" - // ReSharper restore UnusedParameter.Local - ) - { - - } - - /// - /// Initializes a new instance of the Configuration class. - /// - /// Api client. - [Obsolete("This constructor caused unexpected sharing of static data. It is no longer supported.", true)] - // ReSharper disable once UnusedParameter.Local - public Configuration(ApiClient apiClient) - { - - } - #endregion Constructors @@ -224,13 +175,7 @@ public virtual ApiClient ApiClient /// public virtual string BasePath { get { return _basePath; } - set { - _basePath = value; - // pass-through to ApiClient if it's set. - if(_apiClient != null) { - _apiClient.RestClient.Options.BaseUrl = new Uri(_basePath); - } - } + set { _basePath = value; } } /// @@ -238,14 +183,14 @@ public virtual string BasePath { /// public virtual IDictionary DefaultHeader { get; set; } + private int _timeout = 100_000; /// /// Gets or sets the HTTP timeout (milliseconds) of ApiClient. Default to 100000 milliseconds. /// public virtual int Timeout { - - get { return ApiClient.RestClient.Options.MaxTimeout; } - set { ApiClient.RestClient.Options.MaxTimeout = value; } + get { return _timeout; } + set { _timeout = value; } } /// @@ -409,7 +354,7 @@ public void AddDefaultHeader(string key, string value) /// public ApiClient CreateApiClient() { - return new ApiClient(BasePath) { Configuration = this }; + return new ApiClient(this); } @@ -421,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.66.2\n"; - report += " SDK Package Version: 7.8.0\n"; + report += " Version of the API: 2.72.2\n"; + report += " SDK Package Version: 7.10.0\n"; return report; } diff --git a/src/Intrinio.SDK/Intrinio.SDK.csproj b/src/Intrinio.SDK/Intrinio.SDK.csproj index e34a8a9..7f16873 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.66.2 + OpenAPI spec version: 2.72.2 --> @@ -16,10 +16,10 @@ - - - - + + + + diff --git a/src/Intrinio.SDK/Model/ApiResponseSecurityQuote.cs b/src/Intrinio.SDK/Model/ApiResponseSecurityQuote.cs index fd92463..0c4555f 100644 --- a/src/Intrinio.SDK/Model/ApiResponseSecurityQuote.cs +++ b/src/Intrinio.SDK/Model/ApiResponseSecurityQuote.cs @@ -44,15 +44,24 @@ public partial class ApiResponseSecurityQuote : IEquatableThe percent difference in last price from the last close price. /// The adjusted close price 5 days ago.. /// The adjusted close price 30 days ago.. + /// The adjusted close price 90 days ago.. /// The adjusted close price 180 days ago.. /// The adjusted close price 365 days ago.. + /// The adjusted close price 730 days ago.. /// The adjusted close price 1825 days ago.. + /// The adjusted close price at the start of the calendar year.. /// The percent change from the adjusted price 5 days ago to now.. /// The percent change from the adjusted price 30 days ago to now.. + /// The percent change from the adjusted price 90 days ago to now.. /// The percent change from the adjusted price 180 days ago to now.. /// The percent change from the adjusted price 365 days ago to now.. + /// The percent change from the adjusted price 730 days ago to now.. /// The percent change from the adjusted price 1825 days ago to now.. - public ApiResponseSecurityQuote(SecuritySummary Security = default(SecuritySummary), decimal? Last = default(decimal?), DateTime? LastTime = default(DateTime?), string Source = default(string), decimal? Open = default(decimal?), decimal? High = default(decimal?), decimal? Low = default(decimal?), decimal? ExchangeVolume = default(decimal?), decimal? MarketVolume = default(decimal?), decimal? EodFiftyTwoWeekHigh = default(decimal?), decimal? EodFiftyTwoWeekLow = default(decimal?), decimal? Marketcap = default(decimal?), decimal? Pricetoearnings = default(decimal?), decimal? PreviousClose = default(decimal?), DateTime? PreviousCloseDate = default(DateTime?), decimal? Change = default(decimal?), decimal? ChangePercent = default(decimal?), decimal? AdjClose5DaysAgo = default(decimal?), decimal? AdjClose30DaysAgo = default(decimal?), decimal? AdjClose180DaysAgo = default(decimal?), decimal? AdjClose365DaysAgo = default(decimal?), decimal? AdjClose1825DaysAgo = default(decimal?), decimal? ChangePercent5Days = default(decimal?), decimal? ChangePercent30Days = default(decimal?), decimal? ChangePercent180Days = default(decimal?), decimal? ChangePercent365Days = default(decimal?), decimal? ChangePercent1825Days = default(decimal?)) + /// The percent change from the adjusted price since the start of the calendar year to now.. + /// The price of the latest trade in pre and post market trading. Might be null during normal trading. + /// The difference in extended_hours_last price from most recent official close price. + /// The percent difference in extended_hours_last from the most recent official close price. + public ApiResponseSecurityQuote(SecuritySummary Security = default(SecuritySummary), decimal? Last = default(decimal?), DateTime? LastTime = default(DateTime?), string Source = default(string), decimal? Open = default(decimal?), decimal? High = default(decimal?), decimal? Low = default(decimal?), decimal? ExchangeVolume = default(decimal?), decimal? MarketVolume = default(decimal?), decimal? EodFiftyTwoWeekHigh = default(decimal?), decimal? EodFiftyTwoWeekLow = default(decimal?), decimal? Marketcap = default(decimal?), decimal? Pricetoearnings = default(decimal?), decimal? PreviousClose = default(decimal?), DateTime? PreviousCloseDate = default(DateTime?), decimal? Change = default(decimal?), decimal? ChangePercent = default(decimal?), decimal? AdjClose5DaysAgo = default(decimal?), decimal? AdjClose30DaysAgo = default(decimal?), decimal? AdjClose90DaysAgo = default(decimal?), decimal? AdjClose180DaysAgo = default(decimal?), decimal? AdjClose365DaysAgo = default(decimal?), decimal? AdjClose730DaysAgo = default(decimal?), decimal? AdjClose1825DaysAgo = default(decimal?), decimal? AdjCloseYearToDate = default(decimal?), decimal? ChangePercent5Days = default(decimal?), decimal? ChangePercent30Days = default(decimal?), decimal? ChangePercent90Days = default(decimal?), decimal? ChangePercent180Days = default(decimal?), decimal? ChangePercent365Days = default(decimal?), decimal? ChangePercent730DaysAgo = default(decimal?), decimal? ChangePercent1825Days = default(decimal?), decimal? ChangePercentYearToDate = default(decimal?), decimal? ExtendedHoursLast = default(decimal?), decimal? ExtendedHoursChange = default(decimal?), decimal? ExtendedHoursChangePercent = default(decimal?)) { this.Security = Security; this.Last = Last; @@ -73,14 +82,23 @@ public partial class ApiResponseSecurityQuote : IEquatable @@ -217,6 +235,13 @@ public partial class ApiResponseSecurityQuote : IEquatable + /// The adjusted close price 90 days ago. + /// + /// The adjusted close price 90 days ago. + [DataMember(Name="adj_close_90_days_ago", EmitDefaultValue=false)] + public decimal? AdjClose90DaysAgo { get; set; } + /// /// The adjusted close price 180 days ago. /// @@ -231,6 +256,13 @@ public partial class ApiResponseSecurityQuote : IEquatable + /// The adjusted close price 730 days ago. + /// + /// The adjusted close price 730 days ago. + [DataMember(Name="adj_close_730_days_ago", EmitDefaultValue=false)] + public decimal? AdjClose730DaysAgo { get; set; } + /// /// The adjusted close price 1825 days ago. /// @@ -238,6 +270,13 @@ public partial class ApiResponseSecurityQuote : IEquatable + /// The adjusted close price at the start of the calendar year. + /// + /// The adjusted close price at the start of the calendar year. + [DataMember(Name="adj_close_year_to_date", EmitDefaultValue=false)] + public decimal? AdjCloseYearToDate { get; set; } + /// /// The percent change from the adjusted price 5 days ago to now. /// @@ -252,6 +291,13 @@ public partial class ApiResponseSecurityQuote : IEquatable + /// The percent change from the adjusted price 90 days ago to now. + /// + /// The percent change from the adjusted price 90 days ago to now. + [DataMember(Name="change_percent_90_days", EmitDefaultValue=false)] + public decimal? ChangePercent90Days { get; set; } + /// /// The percent change from the adjusted price 180 days ago to now. /// @@ -266,6 +312,13 @@ public partial class ApiResponseSecurityQuote : IEquatable + /// The percent change from the adjusted price 730 days ago to now. + /// + /// The percent change from the adjusted price 730 days ago to now. + [DataMember(Name="change_percent_730_days_ago", EmitDefaultValue=false)] + public decimal? ChangePercent730DaysAgo { get; set; } + /// /// The percent change from the adjusted price 1825 days ago to now. /// @@ -273,6 +326,34 @@ public partial class ApiResponseSecurityQuote : IEquatable + /// The percent change from the adjusted price since the start of the calendar year to now. + /// + /// The percent change from the adjusted price since the start of the calendar year to now. + [DataMember(Name="change_percent_year_to_date", EmitDefaultValue=false)] + public decimal? ChangePercentYearToDate { get; set; } + + /// + /// The price of the latest trade in pre and post market trading. Might be null during normal trading + /// + /// The price of the latest trade in pre and post market trading. Might be null during normal trading + [DataMember(Name="extended_hours_last", EmitDefaultValue=false)] + public decimal? ExtendedHoursLast { get; set; } + + /// + /// The difference in extended_hours_last price from most recent official close price + /// + /// The difference in extended_hours_last price from most recent official close price + [DataMember(Name="extended_hours_change", EmitDefaultValue=false)] + public decimal? ExtendedHoursChange { get; set; } + + /// + /// The percent difference in extended_hours_last from the most recent official close price + /// + /// The percent difference in extended_hours_last from the most recent official close price + [DataMember(Name="extended_hours_change_percent", EmitDefaultValue=false)] + public decimal? ExtendedHoursChangePercent { get; set; } + /// /// Returns the string presentation of the object /// @@ -300,14 +381,23 @@ public override string ToString() sb.Append(" ChangePercent: ").Append(ChangePercent).Append("\n"); sb.Append(" AdjClose5DaysAgo: ").Append(AdjClose5DaysAgo).Append("\n"); sb.Append(" AdjClose30DaysAgo: ").Append(AdjClose30DaysAgo).Append("\n"); + sb.Append(" AdjClose90DaysAgo: ").Append(AdjClose90DaysAgo).Append("\n"); sb.Append(" AdjClose180DaysAgo: ").Append(AdjClose180DaysAgo).Append("\n"); sb.Append(" AdjClose365DaysAgo: ").Append(AdjClose365DaysAgo).Append("\n"); + sb.Append(" AdjClose730DaysAgo: ").Append(AdjClose730DaysAgo).Append("\n"); sb.Append(" AdjClose1825DaysAgo: ").Append(AdjClose1825DaysAgo).Append("\n"); + sb.Append(" AdjCloseYearToDate: ").Append(AdjCloseYearToDate).Append("\n"); sb.Append(" ChangePercent5Days: ").Append(ChangePercent5Days).Append("\n"); sb.Append(" ChangePercent30Days: ").Append(ChangePercent30Days).Append("\n"); + sb.Append(" ChangePercent90Days: ").Append(ChangePercent90Days).Append("\n"); sb.Append(" ChangePercent180Days: ").Append(ChangePercent180Days).Append("\n"); sb.Append(" ChangePercent365Days: ").Append(ChangePercent365Days).Append("\n"); + sb.Append(" ChangePercent730DaysAgo: ").Append(ChangePercent730DaysAgo).Append("\n"); sb.Append(" ChangePercent1825Days: ").Append(ChangePercent1825Days).Append("\n"); + sb.Append(" ChangePercentYearToDate: ").Append(ChangePercentYearToDate).Append("\n"); + sb.Append(" ExtendedHoursLast: ").Append(ExtendedHoursLast).Append("\n"); + sb.Append(" ExtendedHoursChange: ").Append(ExtendedHoursChange).Append("\n"); + sb.Append(" ExtendedHoursChangePercent: ").Append(ExtendedHoursChangePercent).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -437,6 +527,11 @@ public bool Equals(ApiResponseSecurityQuote input) (this.AdjClose30DaysAgo != null && this.AdjClose30DaysAgo.Equals(input.AdjClose30DaysAgo)) ) && + ( + this.AdjClose90DaysAgo == input.AdjClose90DaysAgo || + (this.AdjClose90DaysAgo != null && + this.AdjClose90DaysAgo.Equals(input.AdjClose90DaysAgo)) + ) && ( this.AdjClose180DaysAgo == input.AdjClose180DaysAgo || (this.AdjClose180DaysAgo != null && @@ -447,11 +542,21 @@ public bool Equals(ApiResponseSecurityQuote input) (this.AdjClose365DaysAgo != null && this.AdjClose365DaysAgo.Equals(input.AdjClose365DaysAgo)) ) && + ( + this.AdjClose730DaysAgo == input.AdjClose730DaysAgo || + (this.AdjClose730DaysAgo != null && + this.AdjClose730DaysAgo.Equals(input.AdjClose730DaysAgo)) + ) && ( this.AdjClose1825DaysAgo == input.AdjClose1825DaysAgo || (this.AdjClose1825DaysAgo != null && this.AdjClose1825DaysAgo.Equals(input.AdjClose1825DaysAgo)) ) && + ( + this.AdjCloseYearToDate == input.AdjCloseYearToDate || + (this.AdjCloseYearToDate != null && + this.AdjCloseYearToDate.Equals(input.AdjCloseYearToDate)) + ) && ( this.ChangePercent5Days == input.ChangePercent5Days || (this.ChangePercent5Days != null && @@ -462,6 +567,11 @@ public bool Equals(ApiResponseSecurityQuote input) (this.ChangePercent30Days != null && this.ChangePercent30Days.Equals(input.ChangePercent30Days)) ) && + ( + this.ChangePercent90Days == input.ChangePercent90Days || + (this.ChangePercent90Days != null && + this.ChangePercent90Days.Equals(input.ChangePercent90Days)) + ) && ( this.ChangePercent180Days == input.ChangePercent180Days || (this.ChangePercent180Days != null && @@ -472,10 +582,35 @@ public bool Equals(ApiResponseSecurityQuote input) (this.ChangePercent365Days != null && this.ChangePercent365Days.Equals(input.ChangePercent365Days)) ) && + ( + this.ChangePercent730DaysAgo == input.ChangePercent730DaysAgo || + (this.ChangePercent730DaysAgo != null && + this.ChangePercent730DaysAgo.Equals(input.ChangePercent730DaysAgo)) + ) && ( this.ChangePercent1825Days == input.ChangePercent1825Days || (this.ChangePercent1825Days != null && this.ChangePercent1825Days.Equals(input.ChangePercent1825Days)) + ) && + ( + this.ChangePercentYearToDate == input.ChangePercentYearToDate || + (this.ChangePercentYearToDate != null && + this.ChangePercentYearToDate.Equals(input.ChangePercentYearToDate)) + ) && + ( + this.ExtendedHoursLast == input.ExtendedHoursLast || + (this.ExtendedHoursLast != null && + this.ExtendedHoursLast.Equals(input.ExtendedHoursLast)) + ) && + ( + this.ExtendedHoursChange == input.ExtendedHoursChange || + (this.ExtendedHoursChange != null && + this.ExtendedHoursChange.Equals(input.ExtendedHoursChange)) + ) && + ( + this.ExtendedHoursChangePercent == input.ExtendedHoursChangePercent || + (this.ExtendedHoursChangePercent != null && + this.ExtendedHoursChangePercent.Equals(input.ExtendedHoursChangePercent)) ); } @@ -526,22 +661,40 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.AdjClose5DaysAgo.GetHashCode(); if (this.AdjClose30DaysAgo != null) hashCode = hashCode * 59 + this.AdjClose30DaysAgo.GetHashCode(); + if (this.AdjClose90DaysAgo != null) + hashCode = hashCode * 59 + this.AdjClose90DaysAgo.GetHashCode(); if (this.AdjClose180DaysAgo != null) hashCode = hashCode * 59 + this.AdjClose180DaysAgo.GetHashCode(); if (this.AdjClose365DaysAgo != null) hashCode = hashCode * 59 + this.AdjClose365DaysAgo.GetHashCode(); + if (this.AdjClose730DaysAgo != null) + hashCode = hashCode * 59 + this.AdjClose730DaysAgo.GetHashCode(); if (this.AdjClose1825DaysAgo != null) hashCode = hashCode * 59 + this.AdjClose1825DaysAgo.GetHashCode(); + if (this.AdjCloseYearToDate != null) + hashCode = hashCode * 59 + this.AdjCloseYearToDate.GetHashCode(); if (this.ChangePercent5Days != null) hashCode = hashCode * 59 + this.ChangePercent5Days.GetHashCode(); if (this.ChangePercent30Days != null) hashCode = hashCode * 59 + this.ChangePercent30Days.GetHashCode(); + if (this.ChangePercent90Days != null) + hashCode = hashCode * 59 + this.ChangePercent90Days.GetHashCode(); if (this.ChangePercent180Days != null) hashCode = hashCode * 59 + this.ChangePercent180Days.GetHashCode(); if (this.ChangePercent365Days != null) hashCode = hashCode * 59 + this.ChangePercent365Days.GetHashCode(); + if (this.ChangePercent730DaysAgo != null) + hashCode = hashCode * 59 + this.ChangePercent730DaysAgo.GetHashCode(); if (this.ChangePercent1825Days != null) hashCode = hashCode * 59 + this.ChangePercent1825Days.GetHashCode(); + if (this.ChangePercentYearToDate != null) + hashCode = hashCode * 59 + this.ChangePercentYearToDate.GetHashCode(); + if (this.ExtendedHoursLast != null) + hashCode = hashCode * 59 + this.ExtendedHoursLast.GetHashCode(); + if (this.ExtendedHoursChange != null) + hashCode = hashCode * 59 + this.ExtendedHoursChange.GetHashCode(); + if (this.ExtendedHoursChangePercent != null) + hashCode = hashCode * 59 + this.ExtendedHoursChangePercent.GetHashCode(); return hashCode; } } diff --git a/src/Intrinio.SDK/Model/ApiResponseStockExchangeMovers.cs b/src/Intrinio.SDK/Model/ApiResponseStockExchangeMovers.cs new file mode 100644 index 0000000..1e2fff3 --- /dev/null +++ b/src/Intrinio.SDK/Model/ApiResponseStockExchangeMovers.cs @@ -0,0 +1,134 @@ + + +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 +{ + /// + /// ApiResponseStockExchangeMovers + /// + [DataContract] + public partial class ApiResponseStockExchangeMovers : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The mover security.. + /// The Stock Exchange resolved from the given identifier. + public ApiResponseStockExchangeMovers(List Movers = default(List), StockExchange StockExchange = default(StockExchange)) + { + this.Movers = Movers; + this.StockExchange = StockExchange; + } + + /// + /// The mover security. + /// + /// The mover security. + [DataMember(Name="movers", EmitDefaultValue=false)] + public List Movers { 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; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ApiResponseStockExchangeMovers {\n"); + sb.Append(" Movers: ").Append(Movers).Append("\n"); + sb.Append(" StockExchange: ").Append(StockExchange).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 ApiResponseStockExchangeMovers); + } + + /// + /// Returns true if ApiResponseStockExchangeMovers instances are equal + /// + /// Instance of ApiResponseStockExchangeMovers to be compared + /// Boolean + public bool Equals(ApiResponseStockExchangeMovers input) + { + if (input == null) + return false; + + return + ( + this.Movers == input.Movers || + this.Movers != null && + this.Movers.SequenceEqual(input.Movers) + ) && + ( + this.StockExchange == input.StockExchange || + (this.StockExchange != null && + this.StockExchange.Equals(input.StockExchange)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Movers != null) + hashCode = hashCode * 59 + this.Movers.GetHashCode(); + if (this.StockExchange != null) + hashCode = hashCode * 59 + this.StockExchange.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/ApiResponseStockExchangeQuote.cs b/src/Intrinio.SDK/Model/ApiResponseStockExchangeQuote.cs new file mode 100644 index 0000000..9e628fc --- /dev/null +++ b/src/Intrinio.SDK/Model/ApiResponseStockExchangeQuote.cs @@ -0,0 +1,134 @@ + + +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 +{ + /// + /// ApiResponseStockExchangeQuote + /// + [DataContract] + public partial class ApiResponseStockExchangeQuote : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The realtime stock prices for all Securities traded on the Stock Exchange. + /// The Stock Exchange resolved from the given identifier. + public ApiResponseStockExchangeQuote(List Quotes = default(List), StockExchange StockExchange = default(StockExchange)) + { + this.Quotes = Quotes; + this.StockExchange = StockExchange; + } + + /// + /// The realtime stock prices for all Securities traded on the Stock Exchange + /// + /// The realtime stock prices for all Securities traded on the Stock Exchange + [DataMember(Name="quotes", EmitDefaultValue=false)] + public List Quotes { 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; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ApiResponseStockExchangeQuote {\n"); + sb.Append(" Quotes: ").Append(Quotes).Append("\n"); + sb.Append(" StockExchange: ").Append(StockExchange).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 ApiResponseStockExchangeQuote); + } + + /// + /// Returns true if ApiResponseStockExchangeQuote instances are equal + /// + /// Instance of ApiResponseStockExchangeQuote to be compared + /// Boolean + public bool Equals(ApiResponseStockExchangeQuote input) + { + if (input == null) + return false; + + return + ( + this.Quotes == input.Quotes || + this.Quotes != null && + this.Quotes.SequenceEqual(input.Quotes) + ) && + ( + this.StockExchange == input.StockExchange || + (this.StockExchange != null && + this.StockExchange.Equals(input.StockExchange)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Quotes != null) + hashCode = hashCode * 59 + this.Quotes.GetHashCode(); + if (this.StockExchange != null) + hashCode = hashCode * 59 + this.StockExchange.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/BulkDownloadSummary.cs b/src/Intrinio.SDK/Model/BulkDownloadSummary.cs index fa3805d..3f718ed 100644 --- a/src/Intrinio.SDK/Model/BulkDownloadSummary.cs +++ b/src/Intrinio.SDK/Model/BulkDownloadSummary.cs @@ -30,14 +30,16 @@ public partial class BulkDownloadSummary : IEquatable, IVa /// The file format of the bulk download. /// The total length of the bulk download data in bytes. /// The update frequency for the bulk download. + /// The date on which the bulk download was last updated. /// Links to all of the files comprising the bulk download. Links expire in 24 hours.. - public BulkDownloadSummary(string Id = default(string), string Name = default(string), string Format = default(string), string DataLengthBytes = default(string), string UpdateFrequency = default(string), List Links = default(List)) + public BulkDownloadSummary(string Id = default(string), string Name = default(string), string Format = default(string), string DataLengthBytes = default(string), string UpdateFrequency = default(string), DateTime? LastUpdated = default(DateTime?), List Links = default(List)) { this.Id = Id; this.Name = Name; this.Format = Format; this.DataLengthBytes = DataLengthBytes; this.UpdateFrequency = UpdateFrequency; + this.LastUpdated = LastUpdated; this.Links = Links; } @@ -76,6 +78,14 @@ public partial class BulkDownloadSummary : IEquatable, IVa [DataMember(Name="update_frequency", EmitDefaultValue=false)] public string UpdateFrequency { get; set; } + /// + /// The date on which the bulk download was last updated + /// + /// The date on which the bulk download was last updated + [DataMember(Name="last_updated", EmitDefaultValue=false)] + [JsonConverter(typeof(SwaggerDateConverter))] + public DateTime? LastUpdated { get; set; } + /// /// Links to all of the files comprising the bulk download. Links expire in 24 hours. /// @@ -96,6 +106,7 @@ public override string ToString() sb.Append(" Format: ").Append(Format).Append("\n"); sb.Append(" DataLengthBytes: ").Append(DataLengthBytes).Append("\n"); sb.Append(" UpdateFrequency: ").Append(UpdateFrequency).Append("\n"); + sb.Append(" LastUpdated: ").Append(LastUpdated).Append("\n"); sb.Append(" Links: ").Append(Links).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -156,6 +167,11 @@ public bool Equals(BulkDownloadSummary input) (this.UpdateFrequency != null && this.UpdateFrequency.Equals(input.UpdateFrequency)) ) && + ( + this.LastUpdated == input.LastUpdated || + (this.LastUpdated != null && + this.LastUpdated.Equals(input.LastUpdated)) + ) && ( this.Links == input.Links || this.Links != null && @@ -182,6 +198,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.DataLengthBytes.GetHashCode(); if (this.UpdateFrequency != null) hashCode = hashCode * 59 + this.UpdateFrequency.GetHashCode(); + if (this.LastUpdated != null) + hashCode = hashCode * 59 + this.LastUpdated.GetHashCode(); if (this.Links != null) hashCode = hashCode * 59 + this.Links.GetHashCode(); return hashCode; diff --git a/src/Intrinio.SDK/Model/RealtimeStockPrice.cs b/src/Intrinio.SDK/Model/RealtimeStockPrice.cs index e114837..2c5494b 100644 --- a/src/Intrinio.SDK/Model/RealtimeStockPrice.cs +++ b/src/Intrinio.SDK/Model/RealtimeStockPrice.cs @@ -41,6 +41,14 @@ public partial class RealtimeStockPrice : IEquatable, IVali /// The number of shares exchanged during the trading day on the exchange.. /// The number of shares exchanged during the trading day for the whole market.. /// The date and time when the data was last updated.. + /// The previous trading session's closing price.. + /// The date of the previous trading session's closing price.. + /// The date and time of the last trade that qualifies for last price consideration during normal market hours according to exchange rules on trade conditions.. + /// The price of the last that qualifies for last price consideration during normal market hours according to exchange rules on trade conditions.. + /// The size of the last trade that qualifies for last price consideration during normal market hours according to exchange rules on trade conditions.. + /// The price of the last trade that qualifies for last price consideration according to exchange rules on trade conditions.. + /// The date and time of the last trade that qualifies for last price consideration according to exchange rules on trade conditions.. + /// The size of the last trade that qualifies for last price consideration according to exchange rules on trade conditions.. /// The source of the data.. /// The listing venue where the trade took place. Available only where source is SIP. Listing Venue Modifiers include: Q – Nasdaq | N – NYSE | A – NYSE American | P – NYSE Arca | u – Other OTC Markets | V – Investors Exchange LLC . /// When applicable, indicates any sales condition modifiers associated with the trade. Sales Condition Modifers include: @ – Regular Sale | A – Acquisition | B – Bunched Trade | C – Cash Sale | D – Distribution | E – Placeholder | F – Intermarket Sweep | G – Bunched Sold Trade | H – Priced Variation Trade | I – Odd Lot Trade | K – Rule 155 Trade (AMEX) | L – Sold Last | M – Market Center Official Close | N – Next Day | O – Opening Prints | P – Prior Reference Price | Q – Market Center Official Open | R – Seller | S – Split Trade | T – Form T | U – Extended Trading Hours (Sold Out of Sequence) | V – Contingent Trade | W – Average Price Trade | X – Cross/Periodic Auction Trade | Y – Yellow Flag Regular Trade | Z – Sold (Out of Sequence) | 1 – Stopped Stock (Regular Trade) | 4 – Derivatively Priced | 5 – Re-Opening Prints | 6 – Closing Prints | 7 – Qualified Contingent Trade (QCT) | 8 – Placeholder for 611 Exempt | 9 – Corrected Consolidated Close (Per Listing Market) . @@ -48,7 +56,7 @@ public partial class RealtimeStockPrice : IEquatable, IVali /// The market center character code.. /// Whether or not the current trade is from a darkpool or not.. /// Security. - public RealtimeStockPrice(decimal? LastPrice = default(decimal?), DateTime? LastTime = default(DateTime?), decimal? LastSize = default(decimal?), decimal? BidPrice = default(decimal?), decimal? BidSize = default(decimal?), DateTime? BidTime = default(DateTime?), decimal? AskPrice = default(decimal?), decimal? AskSize = default(decimal?), DateTime? AskTime = default(DateTime?), decimal? OpenPrice = default(decimal?), decimal? ClosePrice = default(decimal?), decimal? HighPrice = default(decimal?), decimal? LowPrice = default(decimal?), decimal? ExchangeVolume = default(decimal?), decimal? MarketVolume = default(decimal?), DateTime? UpdatedOn = default(DateTime?), string Source = default(string), string ListingVenue = default(string), string SalesConditions = default(string), string QuoteConditions = default(string), string MarketCenterCode = default(string), bool? IsDarkpool = default(bool?), RealtimeStockPriceSecurity Security = default(RealtimeStockPriceSecurity)) + public RealtimeStockPrice(decimal? LastPrice = default(decimal?), DateTime? LastTime = default(DateTime?), decimal? LastSize = default(decimal?), decimal? BidPrice = default(decimal?), decimal? BidSize = default(decimal?), DateTime? BidTime = default(DateTime?), decimal? AskPrice = default(decimal?), decimal? AskSize = default(decimal?), DateTime? AskTime = default(DateTime?), decimal? OpenPrice = default(decimal?), decimal? ClosePrice = default(decimal?), decimal? HighPrice = default(decimal?), decimal? LowPrice = default(decimal?), decimal? ExchangeVolume = default(decimal?), decimal? MarketVolume = default(decimal?), DateTime? UpdatedOn = default(DateTime?), decimal? EodClosePrice = default(decimal?), DateTime? EodCloseDate = default(DateTime?), DateTime? NormalMarketHoursLastTime = default(DateTime?), decimal? NormalMarketHoursLastPrice = default(decimal?), decimal? NormalMarketHoursLastSize = default(decimal?), decimal? QualifiedLastPrice = default(decimal?), DateTime? QualifiedLastTime = default(DateTime?), decimal? QualifiedLastSize = default(decimal?), string Source = default(string), string ListingVenue = default(string), string SalesConditions = default(string), string QuoteConditions = default(string), string MarketCenterCode = default(string), bool? IsDarkpool = default(bool?), RealtimeStockPriceSecurity Security = default(RealtimeStockPriceSecurity)) { this.LastPrice = LastPrice; this.LastTime = LastTime; @@ -66,6 +74,14 @@ public partial class RealtimeStockPrice : IEquatable, IVali this.ExchangeVolume = ExchangeVolume; this.MarketVolume = MarketVolume; this.UpdatedOn = UpdatedOn; + this.EodClosePrice = EodClosePrice; + this.EodCloseDate = EodCloseDate; + this.NormalMarketHoursLastTime = NormalMarketHoursLastTime; + this.NormalMarketHoursLastPrice = NormalMarketHoursLastPrice; + this.NormalMarketHoursLastSize = NormalMarketHoursLastSize; + this.QualifiedLastPrice = QualifiedLastPrice; + this.QualifiedLastTime = QualifiedLastTime; + this.QualifiedLastSize = QualifiedLastSize; this.Source = Source; this.ListingVenue = ListingVenue; this.SalesConditions = SalesConditions; @@ -187,6 +203,63 @@ public partial class RealtimeStockPrice : IEquatable, IVali [DataMember(Name="updated_on", EmitDefaultValue=false)] public DateTime? UpdatedOn { get; set; } + /// + /// The previous trading session's closing price. + /// + /// The previous trading session's closing price. + [DataMember(Name="eod_close_price", EmitDefaultValue=false)] + public decimal? EodClosePrice { get; set; } + + /// + /// The date of the previous trading session's closing price. + /// + /// The date of the previous trading session's closing price. + [DataMember(Name="eod_close_date", EmitDefaultValue=false)] + [JsonConverter(typeof(SwaggerDateConverter))] + public DateTime? EodCloseDate { get; set; } + + /// + /// The date and time of the last trade that qualifies for last price consideration during normal market hours according to exchange rules on trade conditions. + /// + /// The date and time of the last trade that qualifies for last price consideration during normal market hours according to exchange rules on trade conditions. + [DataMember(Name="normal_market_hours_last_time", EmitDefaultValue=false)] + public DateTime? NormalMarketHoursLastTime { get; set; } + + /// + /// The price of the last that qualifies for last price consideration during normal market hours according to exchange rules on trade conditions. + /// + /// The price of the last that qualifies for last price consideration during normal market hours according to exchange rules on trade conditions. + [DataMember(Name="normal_market_hours_last_price", EmitDefaultValue=false)] + public decimal? NormalMarketHoursLastPrice { get; set; } + + /// + /// The size of the last trade that qualifies for last price consideration during normal market hours according to exchange rules on trade conditions. + /// + /// The size of the last trade that qualifies for last price consideration during normal market hours according to exchange rules on trade conditions. + [DataMember(Name="normal_market_hours_last_size", EmitDefaultValue=false)] + public decimal? NormalMarketHoursLastSize { get; set; } + + /// + /// The price of the last trade that qualifies for last price consideration according to exchange rules on trade conditions. + /// + /// The price of the last trade that qualifies for last price consideration according to exchange rules on trade conditions. + [DataMember(Name="qualified_last_price", EmitDefaultValue=false)] + public decimal? QualifiedLastPrice { get; set; } + + /// + /// The date and time of the last trade that qualifies for last price consideration according to exchange rules on trade conditions. + /// + /// The date and time of the last trade that qualifies for last price consideration according to exchange rules on trade conditions. + [DataMember(Name="qualified_last_time", EmitDefaultValue=false)] + public DateTime? QualifiedLastTime { get; set; } + + /// + /// The size of the last trade that qualifies for last price consideration according to exchange rules on trade conditions. + /// + /// The size of the last trade that qualifies for last price consideration according to exchange rules on trade conditions. + [DataMember(Name="qualified_last_size", EmitDefaultValue=false)] + public decimal? QualifiedLastSize { get; set; } + /// /// The source of the data. /// @@ -259,6 +332,14 @@ public override string ToString() sb.Append(" ExchangeVolume: ").Append(ExchangeVolume).Append("\n"); sb.Append(" MarketVolume: ").Append(MarketVolume).Append("\n"); sb.Append(" UpdatedOn: ").Append(UpdatedOn).Append("\n"); + sb.Append(" EodClosePrice: ").Append(EodClosePrice).Append("\n"); + sb.Append(" EodCloseDate: ").Append(EodCloseDate).Append("\n"); + sb.Append(" NormalMarketHoursLastTime: ").Append(NormalMarketHoursLastTime).Append("\n"); + sb.Append(" NormalMarketHoursLastPrice: ").Append(NormalMarketHoursLastPrice).Append("\n"); + sb.Append(" NormalMarketHoursLastSize: ").Append(NormalMarketHoursLastSize).Append("\n"); + sb.Append(" QualifiedLastPrice: ").Append(QualifiedLastPrice).Append("\n"); + sb.Append(" QualifiedLastTime: ").Append(QualifiedLastTime).Append("\n"); + sb.Append(" QualifiedLastSize: ").Append(QualifiedLastSize).Append("\n"); sb.Append(" Source: ").Append(Source).Append("\n"); sb.Append(" ListingVenue: ").Append(ListingVenue).Append("\n"); sb.Append(" SalesConditions: ").Append(SalesConditions).Append("\n"); @@ -380,6 +461,46 @@ public bool Equals(RealtimeStockPrice input) (this.UpdatedOn != null && this.UpdatedOn.Equals(input.UpdatedOn)) ) && + ( + this.EodClosePrice == input.EodClosePrice || + (this.EodClosePrice != null && + this.EodClosePrice.Equals(input.EodClosePrice)) + ) && + ( + this.EodCloseDate == input.EodCloseDate || + (this.EodCloseDate != null && + this.EodCloseDate.Equals(input.EodCloseDate)) + ) && + ( + this.NormalMarketHoursLastTime == input.NormalMarketHoursLastTime || + (this.NormalMarketHoursLastTime != null && + this.NormalMarketHoursLastTime.Equals(input.NormalMarketHoursLastTime)) + ) && + ( + this.NormalMarketHoursLastPrice == input.NormalMarketHoursLastPrice || + (this.NormalMarketHoursLastPrice != null && + this.NormalMarketHoursLastPrice.Equals(input.NormalMarketHoursLastPrice)) + ) && + ( + this.NormalMarketHoursLastSize == input.NormalMarketHoursLastSize || + (this.NormalMarketHoursLastSize != null && + this.NormalMarketHoursLastSize.Equals(input.NormalMarketHoursLastSize)) + ) && + ( + this.QualifiedLastPrice == input.QualifiedLastPrice || + (this.QualifiedLastPrice != null && + this.QualifiedLastPrice.Equals(input.QualifiedLastPrice)) + ) && + ( + this.QualifiedLastTime == input.QualifiedLastTime || + (this.QualifiedLastTime != null && + this.QualifiedLastTime.Equals(input.QualifiedLastTime)) + ) && + ( + this.QualifiedLastSize == input.QualifiedLastSize || + (this.QualifiedLastSize != null && + this.QualifiedLastSize.Equals(input.QualifiedLastSize)) + ) && ( this.Source == input.Source || (this.Source != null && @@ -458,6 +579,22 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.MarketVolume.GetHashCode(); if (this.UpdatedOn != null) hashCode = hashCode * 59 + this.UpdatedOn.GetHashCode(); + if (this.EodClosePrice != null) + hashCode = hashCode * 59 + this.EodClosePrice.GetHashCode(); + if (this.EodCloseDate != null) + hashCode = hashCode * 59 + this.EodCloseDate.GetHashCode(); + if (this.NormalMarketHoursLastTime != null) + hashCode = hashCode * 59 + this.NormalMarketHoursLastTime.GetHashCode(); + if (this.NormalMarketHoursLastPrice != null) + hashCode = hashCode * 59 + this.NormalMarketHoursLastPrice.GetHashCode(); + if (this.NormalMarketHoursLastSize != null) + hashCode = hashCode * 59 + this.NormalMarketHoursLastSize.GetHashCode(); + if (this.QualifiedLastPrice != null) + hashCode = hashCode * 59 + this.QualifiedLastPrice.GetHashCode(); + if (this.QualifiedLastTime != null) + hashCode = hashCode * 59 + this.QualifiedLastTime.GetHashCode(); + if (this.QualifiedLastSize != null) + hashCode = hashCode * 59 + this.QualifiedLastSize.GetHashCode(); if (this.Source != null) hashCode = hashCode * 59 + this.Source.GetHashCode(); if (this.ListingVenue != null) diff --git a/src/Intrinio.SDK/Model/StockExchangeMover.cs b/src/Intrinio.SDK/Model/StockExchangeMover.cs new file mode 100644 index 0000000..e38f480 --- /dev/null +++ b/src/Intrinio.SDK/Model/StockExchangeMover.cs @@ -0,0 +1,219 @@ + + +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 +{ + /// + /// An security intervals result contains all security intervals corresponding to the provided query. + /// + [DataContract] + public partial class StockExchangeMover : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The Intrinio Identifier for this security.. + /// The ticker symbol for this security.. + /// The last price of the last trade.. + /// The raw change in price.. + /// The percent change in price.. + /// The market volume for the most recent (today) trading day.. + /// The source of the data.. + public StockExchangeMover(string SecurityId = default(string), string Ticker = default(string), decimal? LastPrice = default(decimal?), decimal? Change = default(decimal?), decimal? PercentChange = default(decimal?), decimal? MarketVolume = default(decimal?), string Source = default(string)) + { + this.SecurityId = SecurityId; + this.Ticker = Ticker; + this.LastPrice = LastPrice; + this.Change = Change; + this.PercentChange = PercentChange; + this.MarketVolume = MarketVolume; + this.Source = Source; + } + + /// + /// The Intrinio Identifier for this security. + /// + /// The Intrinio Identifier for this security. + [DataMember(Name="security_id", EmitDefaultValue=false)] + public string SecurityId { get; set; } + + /// + /// The ticker symbol for this security. + /// + /// The ticker symbol for this security. + [DataMember(Name="ticker", EmitDefaultValue=false)] + public string Ticker { get; set; } + + /// + /// The last price of the last trade. + /// + /// The last price of the last trade. + [DataMember(Name="last_price", EmitDefaultValue=false)] + public decimal? LastPrice { get; set; } + + /// + /// The raw change in price. + /// + /// The raw change in price. + [DataMember(Name="change", EmitDefaultValue=false)] + public decimal? Change { get; set; } + + /// + /// The percent change in price. + /// + /// The percent change in price. + [DataMember(Name="percent_change", EmitDefaultValue=false)] + public decimal? PercentChange { get; set; } + + /// + /// The market volume for the most recent (today) trading day. + /// + /// The market volume for the most recent (today) trading day. + [DataMember(Name="market_volume", EmitDefaultValue=false)] + public decimal? MarketVolume { get; set; } + + /// + /// The source of the data. + /// + /// The source of the data. + [DataMember(Name="source", EmitDefaultValue=false)] + public string Source { 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 StockExchangeMover {\n"); + sb.Append(" SecurityId: ").Append(SecurityId).Append("\n"); + sb.Append(" Ticker: ").Append(Ticker).Append("\n"); + sb.Append(" LastPrice: ").Append(LastPrice).Append("\n"); + sb.Append(" Change: ").Append(Change).Append("\n"); + sb.Append(" PercentChange: ").Append(PercentChange).Append("\n"); + sb.Append(" MarketVolume: ").Append(MarketVolume).Append("\n"); + sb.Append(" Source: ").Append(Source).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 StockExchangeMover); + } + + /// + /// Returns true if StockExchangeMover instances are equal + /// + /// Instance of StockExchangeMover to be compared + /// Boolean + public bool Equals(StockExchangeMover input) + { + if (input == null) + return false; + + return + ( + this.SecurityId == input.SecurityId || + (this.SecurityId != null && + this.SecurityId.Equals(input.SecurityId)) + ) && + ( + this.Ticker == input.Ticker || + (this.Ticker != null && + this.Ticker.Equals(input.Ticker)) + ) && + ( + this.LastPrice == input.LastPrice || + (this.LastPrice != null && + this.LastPrice.Equals(input.LastPrice)) + ) && + ( + this.Change == input.Change || + (this.Change != null && + this.Change.Equals(input.Change)) + ) && + ( + this.PercentChange == input.PercentChange || + (this.PercentChange != null && + this.PercentChange.Equals(input.PercentChange)) + ) && + ( + this.MarketVolume == input.MarketVolume || + (this.MarketVolume != null && + this.MarketVolume.Equals(input.MarketVolume)) + ) && + ( + this.Source == input.Source || + (this.Source != null && + this.Source.Equals(input.Source)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.SecurityId != null) + hashCode = hashCode * 59 + this.SecurityId.GetHashCode(); + if (this.Ticker != null) + hashCode = hashCode * 59 + this.Ticker.GetHashCode(); + if (this.LastPrice != null) + hashCode = hashCode * 59 + this.LastPrice.GetHashCode(); + if (this.Change != null) + hashCode = hashCode * 59 + this.Change.GetHashCode(); + if (this.PercentChange != null) + hashCode = hashCode * 59 + this.PercentChange.GetHashCode(); + if (this.MarketVolume != null) + hashCode = hashCode * 59 + this.MarketVolume.GetHashCode(); + if (this.Source != null) + hashCode = hashCode * 59 + this.Source.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +}