intrinio-sdk 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/README.md +176 -0
- data/Rakefile +8 -0
- data/docs/ApiResponseCompanies.md +9 -0
- data/docs/ApiResponseCompanyFilings.md +10 -0
- data/docs/ApiResponseCompanyFundamentals.md +10 -0
- data/docs/ApiResponseCompanyHistoricalData.md +10 -0
- data/docs/ApiResponseCompanyNews.md +10 -0
- data/docs/ApiResponseCompanySecurities.md +10 -0
- data/docs/ApiResponseDataTags.md +9 -0
- data/docs/ApiResponseEconomicIndexHistoricalData.md +10 -0
- data/docs/ApiResponseEconomicIndices.md +9 -0
- data/docs/ApiResponseFilings.md +9 -0
- data/docs/ApiResponseHistoricalData.md +9 -0
- data/docs/ApiResponseNews.md +9 -0
- data/docs/ApiResponseReportedFinancials.md +10 -0
- data/docs/ApiResponseSICIndexHistoricalData.md +10 -0
- data/docs/ApiResponseSICIndices.md +9 -0
- data/docs/ApiResponseSecurities.md +9 -0
- data/docs/ApiResponseSecurityHistoricalData.md +10 -0
- data/docs/ApiResponseSecurityStockPriceAdjustments.md +10 -0
- data/docs/ApiResponseSecurityStockPrices.md +10 -0
- data/docs/ApiResponseStandardizedFinancials.md +10 -0
- data/docs/ApiResponseStockExchangeSecurities.md +10 -0
- data/docs/ApiResponseStockExchangeStockPriceAdjustments.md +10 -0
- data/docs/ApiResponseStockExchangeStockPrices.md +10 -0
- data/docs/ApiResponseStockExchanges.md +9 -0
- data/docs/ApiResponseStockMarketIndexHistoricalData.md +10 -0
- data/docs/ApiResponseStockMarketIndices.md +9 -0
- data/docs/Company.md +39 -0
- data/docs/CompanyApi.md +659 -0
- data/docs/CompanyFiling.md +17 -0
- data/docs/CompanyNews.md +13 -0
- data/docs/CompanyNewsSummary.md +12 -0
- data/docs/CompanySummary.md +12 -0
- data/docs/DataPointApi.md +96 -0
- data/docs/DataTag.md +17 -0
- data/docs/DataTagApi.md +184 -0
- data/docs/DataTagSummary.md +11 -0
- data/docs/EconomicIndex.md +19 -0
- data/docs/EconomicIndexSummary.md +18 -0
- data/docs/Filing.md +17 -0
- data/docs/FilingApi.md +142 -0
- data/docs/FilingSummary.md +16 -0
- data/docs/Fundamental.md +16 -0
- data/docs/FundamentalSummary.md +15 -0
- data/docs/FundamentalsApi.md +181 -0
- data/docs/HistoricalData.md +9 -0
- data/docs/HistoricalDataApi.md +64 -0
- data/docs/IndexApi.md +800 -0
- data/docs/ReportedFinancial.md +9 -0
- data/docs/ReportedTag.md +14 -0
- data/docs/SICIndex.md +12 -0
- data/docs/Security.md +34 -0
- data/docs/SecurityApi.md +420 -0
- data/docs/SecurityScreenClause.md +10 -0
- data/docs/SecurityScreenGroup.md +10 -0
- data/docs/SecurityScreenResult.md +9 -0
- data/docs/SecurityScreenResultData.md +10 -0
- data/docs/SecuritySummary.md +17 -0
- data/docs/StandardizedFinancial.md +9 -0
- data/docs/StockExchange.md +17 -0
- data/docs/StockExchangeApi.md +267 -0
- data/docs/StockMarketIndex.md +17 -0
- data/docs/StockMarketIndexSummary.md +16 -0
- data/docs/StockPrice.md +21 -0
- data/docs/StockPriceAdjustment.md +12 -0
- data/docs/StockPriceAdjustmentSummary.md +13 -0
- data/docs/StockPriceSummary.md +20 -0
- data/git_push.sh +55 -0
- data/intrinio-sdk.gemspec +45 -0
- data/lib/intrinio-sdk.rb +105 -0
- data/lib/intrinio-sdk/api/company_api.rb +885 -0
- data/lib/intrinio-sdk/api/data_point_api.rb +141 -0
- data/lib/intrinio-sdk/api/data_tag_api.rb +251 -0
- data/lib/intrinio-sdk/api/filing_api.rb +192 -0
- data/lib/intrinio-sdk/api/fundamentals_api.rb +261 -0
- data/lib/intrinio-sdk/api/historical_data_api.rb +100 -0
- data/lib/intrinio-sdk/api/index_api.rb +1079 -0
- data/lib/intrinio-sdk/api/security_api.rb +568 -0
- data/lib/intrinio-sdk/api/stock_exchange_api.rb +353 -0
- data/lib/intrinio-sdk/api_client.rb +389 -0
- data/lib/intrinio-sdk/api_error.rb +38 -0
- data/lib/intrinio-sdk/configuration.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_companies.rb +200 -0
- data/lib/intrinio-sdk/models/api_response_company_filings.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_company_fundamentals.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_company_historical_data.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_company_news.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_company_securities.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_data_tags.rb +200 -0
- data/lib/intrinio-sdk/models/api_response_economic_index_historical_data.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_economic_indices.rb +200 -0
- data/lib/intrinio-sdk/models/api_response_filings.rb +200 -0
- data/lib/intrinio-sdk/models/api_response_historical_data.rb +200 -0
- data/lib/intrinio-sdk/models/api_response_news.rb +200 -0
- data/lib/intrinio-sdk/models/api_response_reported_financials.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_securities.rb +200 -0
- data/lib/intrinio-sdk/models/api_response_security_historical_data.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_security_stock_price_adjustments.rb +211 -0
- data/lib/intrinio-sdk/models/api_response_security_stock_prices.rb +211 -0
- data/lib/intrinio-sdk/models/api_response_sic_index_historical_data.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_sic_indices.rb +200 -0
- data/lib/intrinio-sdk/models/api_response_standardized_financials.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_stock_exchange_securities.rb +211 -0
- data/lib/intrinio-sdk/models/api_response_stock_exchange_stock_price_adjustments.rb +211 -0
- data/lib/intrinio-sdk/models/api_response_stock_exchange_stock_prices.rb +211 -0
- data/lib/intrinio-sdk/models/api_response_stock_exchanges.rb +200 -0
- data/lib/intrinio-sdk/models/api_response_stock_market_index_historical_data.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_stock_market_indices.rb +200 -0
- data/lib/intrinio-sdk/models/company.rb +498 -0
- data/lib/intrinio-sdk/models/company_filing.rb +278 -0
- data/lib/intrinio-sdk/models/company_news.rb +239 -0
- data/lib/intrinio-sdk/models/company_news_summary.rb +229 -0
- data/lib/intrinio-sdk/models/company_summary.rb +229 -0
- data/lib/intrinio-sdk/models/data_tag.rb +312 -0
- data/lib/intrinio-sdk/models/data_tag_summary.rb +219 -0
- data/lib/intrinio-sdk/models/economic_index.rb +299 -0
- data/lib/intrinio-sdk/models/economic_index_summary.rb +289 -0
- data/lib/intrinio-sdk/models/filing.rb +278 -0
- data/lib/intrinio-sdk/models/filing_summary.rb +269 -0
- data/lib/intrinio-sdk/models/fundamental.rb +302 -0
- data/lib/intrinio-sdk/models/fundamental_summary.rb +292 -0
- data/lib/intrinio-sdk/models/historical_data.rb +199 -0
- data/lib/intrinio-sdk/models/reported_financial.rb +198 -0
- data/lib/intrinio-sdk/models/reported_tag.rb +249 -0
- data/lib/intrinio-sdk/models/security.rb +453 -0
- data/lib/intrinio-sdk/models/security_screen_clause.rb +242 -0
- data/lib/intrinio-sdk/models/security_screen_group.rb +213 -0
- data/lib/intrinio-sdk/models/security_screen_result.rb +199 -0
- data/lib/intrinio-sdk/models/security_screen_result_data.rb +209 -0
- data/lib/intrinio-sdk/models/security_summary.rb +279 -0
- data/lib/intrinio-sdk/models/sic_index.rb +229 -0
- data/lib/intrinio-sdk/models/standardized_financial.rb +198 -0
- data/lib/intrinio-sdk/models/stock_exchange.rb +279 -0
- data/lib/intrinio-sdk/models/stock_market_index.rb +279 -0
- data/lib/intrinio-sdk/models/stock_market_index_summary.rb +269 -0
- data/lib/intrinio-sdk/models/stock_price.rb +352 -0
- data/lib/intrinio-sdk/models/stock_price_adjustment.rb +229 -0
- data/lib/intrinio-sdk/models/stock_price_adjustment_summary.rb +239 -0
- data/lib/intrinio-sdk/models/stock_price_summary.rb +342 -0
- data/lib/intrinio-sdk/version.rb +15 -0
- data/spec/api/company_api_spec.rb +233 -0
- data/spec/api/data_point_api_spec.rb +61 -0
- data/spec/api/data_tag_api_spec.rb +88 -0
- data/spec/api/filing_api_spec.rb +75 -0
- data/spec/api/fundamentals_api_spec.rb +86 -0
- data/spec/api/historical_data_api_spec.rb +53 -0
- data/spec/api/index_api_spec.rb +275 -0
- data/spec/api/security_api_spec.rb +161 -0
- data/spec/api/stock_exchange_api_spec.rb +113 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/api_response_companies_spec.rb +48 -0
- data/spec/models/api_response_company_filings_spec.rb +54 -0
- data/spec/models/api_response_company_fundamentals_spec.rb +54 -0
- data/spec/models/api_response_company_historical_data_spec.rb +54 -0
- data/spec/models/api_response_company_news_spec.rb +54 -0
- data/spec/models/api_response_company_securities_spec.rb +54 -0
- data/spec/models/api_response_data_tags_spec.rb +48 -0
- data/spec/models/api_response_economic_index_historical_data_spec.rb +54 -0
- data/spec/models/api_response_economic_indices_spec.rb +48 -0
- data/spec/models/api_response_filings_spec.rb +48 -0
- data/spec/models/api_response_historical_data_spec.rb +48 -0
- data/spec/models/api_response_news_spec.rb +48 -0
- data/spec/models/api_response_reported_financials_spec.rb +54 -0
- data/spec/models/api_response_securities_spec.rb +48 -0
- data/spec/models/api_response_security_historical_data_spec.rb +54 -0
- data/spec/models/api_response_security_stock_price_adjustments_spec.rb +54 -0
- data/spec/models/api_response_security_stock_prices_spec.rb +54 -0
- data/spec/models/api_response_sic_index_historical_data_spec.rb +54 -0
- data/spec/models/api_response_sic_indices_spec.rb +48 -0
- data/spec/models/api_response_standardized_financials_spec.rb +54 -0
- data/spec/models/api_response_stock_exchange_securities_spec.rb +54 -0
- data/spec/models/api_response_stock_exchange_stock_price_adjustments_spec.rb +54 -0
- data/spec/models/api_response_stock_exchange_stock_prices_spec.rb +54 -0
- data/spec/models/api_response_stock_exchanges_spec.rb +48 -0
- data/spec/models/api_response_stock_market_index_historical_data_spec.rb +54 -0
- data/spec/models/api_response_stock_market_indices_spec.rb +48 -0
- data/spec/models/company_filing_spec.rb +96 -0
- data/spec/models/company_news_spec.rb +72 -0
- data/spec/models/company_news_summary_spec.rb +66 -0
- data/spec/models/company_spec.rb +228 -0
- data/spec/models/company_summary_spec.rb +66 -0
- data/spec/models/data_tag_spec.rb +100 -0
- data/spec/models/data_tag_summary_spec.rb +60 -0
- data/spec/models/economic_index_spec.rb +108 -0
- data/spec/models/economic_index_summary_spec.rb +102 -0
- data/spec/models/filing_spec.rb +96 -0
- data/spec/models/filing_summary_spec.rb +90 -0
- data/spec/models/fundamental_spec.rb +94 -0
- data/spec/models/fundamental_summary_spec.rb +88 -0
- data/spec/models/historical_data_spec.rb +48 -0
- data/spec/models/reported_financial_spec.rb +48 -0
- data/spec/models/reported_tag_spec.rb +78 -0
- data/spec/models/security_screen_clause_spec.rb +58 -0
- data/spec/models/security_screen_group_spec.rb +54 -0
- data/spec/models/security_screen_result_data_spec.rb +54 -0
- data/spec/models/security_screen_result_spec.rb +48 -0
- data/spec/models/security_spec.rb +198 -0
- data/spec/models/security_summary_spec.rb +96 -0
- data/spec/models/sic_index_spec.rb +66 -0
- data/spec/models/standardized_financial_spec.rb +48 -0
- data/spec/models/stock_exchange_spec.rb +96 -0
- data/spec/models/stock_market_index_spec.rb +96 -0
- data/spec/models/stock_market_index_summary_spec.rb +90 -0
- data/spec/models/stock_price_adjustment_spec.rb +66 -0
- data/spec/models/stock_price_adjustment_summary_spec.rb +72 -0
- data/spec/models/stock_price_spec.rb +124 -0
- data/spec/models/stock_price_summary_spec.rb +118 -0
- data/spec/spec_helper.rb +111 -0
- metadata +509 -0
@@ -0,0 +1,86 @@
|
|
1
|
+
=begin
|
2
|
+
#Intrinio API
|
3
|
+
|
4
|
+
#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://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.
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for Intrinio::FundamentalsApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'FundamentalsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = Intrinio::FundamentalsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of FundamentalsApi' do
|
30
|
+
it 'should create an instance of FundamentalsApi' do
|
31
|
+
expect(@instance).to be_instance_of(Intrinio::FundamentalsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for get_fundamental_by_id
|
36
|
+
# Get a Fundamental by ID
|
37
|
+
# Retrieves detailed fundamental data for the given `fundamental_id`.
|
38
|
+
# @param id The Intrinio ID for the Fundamental
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [Fundamental]
|
41
|
+
describe 'get_fundamental_by_id test' do
|
42
|
+
it "should work" do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# unit tests for get_fundamental_reported_financials
|
48
|
+
# Get Reported Financials for a Fundamental
|
49
|
+
# Returns the As-Reported Financials directly from the financial statements of the XBRL filings from the company
|
50
|
+
# @param id The Intrinio ID for the Fundamental
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @return [ApiResponseReportedFinancials]
|
53
|
+
describe 'get_fundamental_reported_financials test' do
|
54
|
+
it "should work" do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# unit tests for get_fundamental_standardized_financials
|
60
|
+
# Get Standardized Financials for a Fundamental
|
61
|
+
# Returns professional-grade historical financial data. This data is standardized, cleansed and verified to ensure the highest quality data sourced directly from the XBRL financial statements. The primary purpose of standardized financials are to facilitate comparability across a single company’s fundamentals and across all companies fundamentals. For example, it is possible to compare total revenues between two companies as of a certain point in time, or within a single company across multiple time periods. This is not possible using the as reported financial statements because of the inherent complexity of reporting standards.
|
62
|
+
# @param id The Intrinio ID for the Fundamental
|
63
|
+
# @param [Hash] opts the optional parameters
|
64
|
+
# @return [ApiResponseStandardizedFinancials]
|
65
|
+
describe 'get_fundamental_standardized_financials test' do
|
66
|
+
it "should work" do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# unit tests for lookup_fundamental
|
72
|
+
# Lookup a Fundamental
|
73
|
+
# Returns the Fundamental for the Company with the given `identifier` and with the given parameters
|
74
|
+
# @param identifier A Company identifier (Ticker, CIK, LEI, Intrinio ID)
|
75
|
+
# @param statement_code The statement code
|
76
|
+
# @param fiscal_year The fiscal year
|
77
|
+
# @param fiscal_period The fiscal period
|
78
|
+
# @param [Hash] opts the optional parameters
|
79
|
+
# @return [Fundamental]
|
80
|
+
describe 'lookup_fundamental test' do
|
81
|
+
it "should work" do
|
82
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
=begin
|
2
|
+
#Intrinio API
|
3
|
+
|
4
|
+
#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://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.
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for Intrinio::HistoricalDataApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'HistoricalDataApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = Intrinio::HistoricalDataApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of HistoricalDataApi' do
|
30
|
+
it 'should create an instance of HistoricalDataApi' do
|
31
|
+
expect(@instance).to be_instance_of(Intrinio::HistoricalDataApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for get_historical_data
|
36
|
+
# Get Historical Data
|
37
|
+
# Returns historical values for the given `tag` and the entity represented by the given `identifier`
|
38
|
+
# @param identifier An identifier for an entity such as a Company, Security, Index, etc (Ticker, FIGI, ISIN, CUSIP, CIK, LEI, Intrinio ID)
|
39
|
+
# @param tag An Intrinio data tag ID or code-name
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @option opts [String] :type Filter by type, when applicable
|
42
|
+
# @option opts [Date] :start_date Get historical data on or after this date
|
43
|
+
# @option opts [Date] :end_date Get historical date on or before this date
|
44
|
+
# @option opts [String] :sort_order Sort by date `asc` or `desc`
|
45
|
+
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
46
|
+
# @return [ApiResponseHistoricalData]
|
47
|
+
describe 'get_historical_data test' do
|
48
|
+
it "should work" do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
@@ -0,0 +1,275 @@
|
|
1
|
+
=begin
|
2
|
+
#Intrinio API
|
3
|
+
|
4
|
+
#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://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.
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for Intrinio::IndexApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'IndexApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = Intrinio::IndexApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of IndexApi' do
|
30
|
+
it 'should create an instance of IndexApi' do
|
31
|
+
expect(@instance).to be_instance_of(Intrinio::IndexApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for get_all_economic_indices
|
36
|
+
# Get All Economic Indices
|
37
|
+
#
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
40
|
+
# @return [ApiResponseEconomicIndices]
|
41
|
+
describe 'get_all_economic_indices test' do
|
42
|
+
it "should work" do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# unit tests for get_all_sic_indices
|
48
|
+
# Get All SIC Indices
|
49
|
+
#
|
50
|
+
# @param [Hash] opts the optional parameters
|
51
|
+
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
52
|
+
# @return [ApiResponseSICIndices]
|
53
|
+
describe 'get_all_sic_indices test' do
|
54
|
+
it "should work" do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# unit tests for get_all_stock_market_indices
|
60
|
+
# Get All Stock Market Indices
|
61
|
+
#
|
62
|
+
# @param [Hash] opts the optional parameters
|
63
|
+
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
64
|
+
# @return [ApiResponseStockMarketIndices]
|
65
|
+
describe 'get_all_stock_market_indices test' do
|
66
|
+
it "should work" do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# unit tests for get_economic_index_by_id
|
72
|
+
# Get an Economic Index by ID
|
73
|
+
#
|
74
|
+
# @param identifier An Index Identifier (symbol, Intrinio ID)
|
75
|
+
# @param [Hash] opts the optional parameters
|
76
|
+
# @return [EconomicIndex]
|
77
|
+
describe 'get_economic_index_by_id test' do
|
78
|
+
it "should work" do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
# unit tests for get_economic_index_data_point_number
|
84
|
+
# Get Economic Index Data Point (Number)
|
85
|
+
# Returns a numeric value for the given `tag` for the Economic Index with the given `identifier`
|
86
|
+
# @param identifier An Index Identifier (symbol, Intrinio ID)
|
87
|
+
# @param tag An Intrinio data tag ID or code-name
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @return [Float]
|
90
|
+
describe 'get_economic_index_data_point_number test' do
|
91
|
+
it "should work" do
|
92
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
# unit tests for get_economic_index_data_point_text
|
97
|
+
# Get Economic Index Data Point (Text)
|
98
|
+
# Returns a text value for the given `tag` for the Economic Index with the given `identifier`
|
99
|
+
# @param identifier An Index Identifier (symbol, Intrinio ID)
|
100
|
+
# @param tag An Intrinio data tag ID or code-name
|
101
|
+
# @param [Hash] opts the optional parameters
|
102
|
+
# @return [String]
|
103
|
+
describe 'get_economic_index_data_point_text test' do
|
104
|
+
it "should work" do
|
105
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
# unit tests for get_economic_index_historical_data
|
110
|
+
# Get Economic Index Historical Data
|
111
|
+
# Returns historical values for the given `tag` and the Economic Index with the given `identifier`
|
112
|
+
# @param identifier An Index Identifier (symbol, Intrinio ID)
|
113
|
+
# @param tag An Intrinio data tag ID or code-name
|
114
|
+
# @param [Hash] opts the optional parameters
|
115
|
+
# @option opts [String] :type Filter by type, when applicable
|
116
|
+
# @option opts [Date] :start_date Get historical data on or after this date
|
117
|
+
# @option opts [Date] :end_date Get historical data on or before this date
|
118
|
+
# @option opts [String] :sort_order Sort by date `asc` or `desc`
|
119
|
+
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
120
|
+
# @return [ApiResponseEconomicIndexHistoricalData]
|
121
|
+
describe 'get_economic_index_historical_data test' do
|
122
|
+
it "should work" do
|
123
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
# unit tests for get_sic_index_by_id
|
128
|
+
# Get an SIC Index by ID
|
129
|
+
#
|
130
|
+
# @param identifier An Index Identifier (symbol, Intrinio ID)
|
131
|
+
# @param [Hash] opts the optional parameters
|
132
|
+
# @return [SICIndex]
|
133
|
+
describe 'get_sic_index_by_id test' do
|
134
|
+
it "should work" do
|
135
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
# unit tests for get_sic_index_data_point_number
|
140
|
+
# Get SIC Index Data Point (Number)
|
141
|
+
# Returns a numeric value for the given `tag` for the SIC Index with the given `identifier`
|
142
|
+
# @param identifier An Index Identifier (symbol, Intrinio ID)
|
143
|
+
# @param tag An Intrinio data tag ID or code-name
|
144
|
+
# @param [Hash] opts the optional parameters
|
145
|
+
# @return [Float]
|
146
|
+
describe 'get_sic_index_data_point_number test' do
|
147
|
+
it "should work" do
|
148
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
# unit tests for get_sic_index_data_point_text
|
153
|
+
# Get SIC Index Data Point (Text)
|
154
|
+
# Returns a text value for the given `tag` for the SIC Index with the given `identifier`
|
155
|
+
# @param identifier An Index Identifier (symbol, Intrinio ID)
|
156
|
+
# @param tag An Intrinio data tag ID or code-name
|
157
|
+
# @param [Hash] opts the optional parameters
|
158
|
+
# @return [String]
|
159
|
+
describe 'get_sic_index_data_point_text test' do
|
160
|
+
it "should work" do
|
161
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
# unit tests for get_sic_index_historical_data
|
166
|
+
# Get SIC Index Historical Data
|
167
|
+
# Returns historical values for the given `tag` and the SIC Index with the given `identifier`
|
168
|
+
# @param identifier An Index Identifier (symbol, Intrinio ID)
|
169
|
+
# @param tag An Intrinio data tag ID or code-name
|
170
|
+
# @param [Hash] opts the optional parameters
|
171
|
+
# @option opts [String] :type Filter by type, when applicable
|
172
|
+
# @option opts [Date] :start_date Get historical data on or after this date
|
173
|
+
# @option opts [Date] :end_date Get historical data on or before this date
|
174
|
+
# @option opts [String] :sort_order Sort by date `asc` or `desc`
|
175
|
+
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
176
|
+
# @return [ApiResponseSICIndexHistoricalData]
|
177
|
+
describe 'get_sic_index_historical_data test' do
|
178
|
+
it "should work" do
|
179
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
# unit tests for get_stock_market_index_by_id
|
184
|
+
# Get a Stock Market Index by ID
|
185
|
+
#
|
186
|
+
# @param identifier An Index Identifier (symbol, Intrinio ID)
|
187
|
+
# @param [Hash] opts the optional parameters
|
188
|
+
# @return [StockMarketIndex]
|
189
|
+
describe 'get_stock_market_index_by_id test' do
|
190
|
+
it "should work" do
|
191
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
195
|
+
# unit tests for get_stock_market_index_data_point_number
|
196
|
+
# Get Stock Market Index Data Point (Number)
|
197
|
+
# Returns a numeric value for the given `tag` for the Stock Market Index with the given `identifier`
|
198
|
+
# @param identifier An Index Identifier (symbol, Intrinio ID)
|
199
|
+
# @param tag An Intrinio data tag ID or code-name
|
200
|
+
# @param [Hash] opts the optional parameters
|
201
|
+
# @return [Float]
|
202
|
+
describe 'get_stock_market_index_data_point_number test' do
|
203
|
+
it "should work" do
|
204
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
# unit tests for get_stock_market_index_data_point_text
|
209
|
+
# Get Stock Market Index Data Point (Text)
|
210
|
+
# Returns a text value for the given `tag` for the Stock Market Index with the given `identifier`
|
211
|
+
# @param identifier An Index Identifier (symbol, Intrinio ID)
|
212
|
+
# @param tag An Intrinio data tag ID or code-name
|
213
|
+
# @param [Hash] opts the optional parameters
|
214
|
+
# @return [String]
|
215
|
+
describe 'get_stock_market_index_data_point_text test' do
|
216
|
+
it "should work" do
|
217
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
221
|
+
# unit tests for get_stock_market_index_historical_data
|
222
|
+
# Get Stock Market Index Historical Data
|
223
|
+
# Returns historical values for the given `tag` and the Stock Market Index with the given `identifier`
|
224
|
+
# @param identifier An Index Identifier (symbol, Intrinio ID)
|
225
|
+
# @param tag An Intrinio data tag ID or code-name
|
226
|
+
# @param [Hash] opts the optional parameters
|
227
|
+
# @option opts [String] :type Filter by type, when applicable
|
228
|
+
# @option opts [Date] :start_date Get historical data on or after this date
|
229
|
+
# @option opts [Date] :end_date Get historical data on or before this date
|
230
|
+
# @option opts [String] :sort_order Sort by date `asc` or `desc`
|
231
|
+
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
232
|
+
# @return [ApiResponseStockMarketIndexHistoricalData]
|
233
|
+
describe 'get_stock_market_index_historical_data test' do
|
234
|
+
it "should work" do
|
235
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
239
|
+
# unit tests for search_economic_indices
|
240
|
+
# Search Economic Indices
|
241
|
+
# Searches for indices using the text in `query`
|
242
|
+
# @param query Search query
|
243
|
+
# @param [Hash] opts the optional parameters
|
244
|
+
# @return [ApiResponseEconomicIndices]
|
245
|
+
describe 'search_economic_indices test' do
|
246
|
+
it "should work" do
|
247
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
248
|
+
end
|
249
|
+
end
|
250
|
+
|
251
|
+
# unit tests for search_sic_indices
|
252
|
+
# Search SIC Indices
|
253
|
+
# Searches for indices using the text in `query`
|
254
|
+
# @param query Search query
|
255
|
+
# @param [Hash] opts the optional parameters
|
256
|
+
# @return [ApiResponseSICIndices]
|
257
|
+
describe 'search_sic_indices test' do
|
258
|
+
it "should work" do
|
259
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
260
|
+
end
|
261
|
+
end
|
262
|
+
|
263
|
+
# unit tests for search_stock_markets_indices
|
264
|
+
# Search Stock Market Indices
|
265
|
+
# Searches for indices using the text in `query`
|
266
|
+
# @param query Search query
|
267
|
+
# @param [Hash] opts the optional parameters
|
268
|
+
# @return [ApiResponseStockMarketIndices]
|
269
|
+
describe 'search_stock_markets_indices test' do
|
270
|
+
it "should work" do
|
271
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
272
|
+
end
|
273
|
+
end
|
274
|
+
|
275
|
+
end
|
@@ -0,0 +1,161 @@
|
|
1
|
+
=begin
|
2
|
+
#Intrinio API
|
3
|
+
|
4
|
+
#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://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.
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for Intrinio::SecurityApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'SecurityApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = Intrinio::SecurityApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of SecurityApi' do
|
30
|
+
it 'should create an instance of SecurityApi' do
|
31
|
+
expect(@instance).to be_instance_of(Intrinio::SecurityApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for get_all_securities
|
36
|
+
# Get All Securiites
|
37
|
+
#
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
40
|
+
# @return [ApiResponseSecurities]
|
41
|
+
describe 'get_all_securities test' do
|
42
|
+
it "should work" do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# unit tests for get_security_by_id
|
48
|
+
# Get a Security by ID
|
49
|
+
#
|
50
|
+
# @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @return [Security]
|
53
|
+
describe 'get_security_by_id test' do
|
54
|
+
it "should work" do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# unit tests for get_security_data_point_number
|
60
|
+
# Get Security Data Point (Number)
|
61
|
+
# Returns a numeric value for the given `tag` for the Security with the given `identifier`
|
62
|
+
# @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
|
63
|
+
# @param tag An Intrinio data tag ID or code-name
|
64
|
+
# @param [Hash] opts the optional parameters
|
65
|
+
# @return [Float]
|
66
|
+
describe 'get_security_data_point_number test' do
|
67
|
+
it "should work" do
|
68
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
# unit tests for get_security_data_point_text
|
73
|
+
# Get Security Data Point (Text)
|
74
|
+
# Returns a text value for the given `tag` for the Security with the given `identifier`
|
75
|
+
# @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
|
76
|
+
# @param tag An Intrinio data tag ID or code-name
|
77
|
+
# @param [Hash] opts the optional parameters
|
78
|
+
# @return [String]
|
79
|
+
describe 'get_security_data_point_text test' do
|
80
|
+
it "should work" do
|
81
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
# unit tests for get_security_historical_data
|
86
|
+
# Get Security Historical Data
|
87
|
+
# Returns historical values for the given `tag` and the Security with the given `identifier`
|
88
|
+
# @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
|
89
|
+
# @param tag An Intrinio data tag ID or code-name
|
90
|
+
# @param [Hash] opts the optional parameters
|
91
|
+
# @option opts [String] :type Filter by type, when applicable
|
92
|
+
# @option opts [Date] :start_date Get historical data on or after this date
|
93
|
+
# @option opts [Date] :end_date Get historical date on or before this date
|
94
|
+
# @option opts [String] :sort_order Sort by date `asc` or `desc`
|
95
|
+
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
96
|
+
# @return [ApiResponseSecurityHistoricalData]
|
97
|
+
describe 'get_security_historical_data test' do
|
98
|
+
it "should work" do
|
99
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
# unit tests for get_security_stock_price_adjustments
|
104
|
+
# Get Stock Price Adjustments for Security
|
105
|
+
# Return stock price adjustments for the Security with the given `identifier`
|
106
|
+
# @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
|
107
|
+
# @param [Hash] opts the optional parameters
|
108
|
+
# @option opts [Date] :start_date Return price adjustments on or after the date
|
109
|
+
# @option opts [Date] :end_date Return price adjustments on or before the date
|
110
|
+
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
111
|
+
# @return [ApiResponseSecurityStockPriceAdjustments]
|
112
|
+
describe 'get_security_stock_price_adjustments test' do
|
113
|
+
it "should work" do
|
114
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
# unit tests for get_security_stock_prices
|
119
|
+
# Get Stock Prices for Security
|
120
|
+
# Return stock prices for the Security with the given `identifier`
|
121
|
+
# @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
|
122
|
+
# @param [Hash] opts the optional parameters
|
123
|
+
# @option opts [Date] :start_date Return prices on or after the date
|
124
|
+
# @option opts [Date] :end_date Return prices on or before the date
|
125
|
+
# @option opts [String] :frequency Return stock prices in the given frequency
|
126
|
+
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
127
|
+
# @return [ApiResponseSecurityStockPrices]
|
128
|
+
describe 'get_security_stock_prices test' do
|
129
|
+
it "should work" do
|
130
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
# unit tests for screen_securities
|
135
|
+
# Screen Securities
|
136
|
+
# Screen securities using complex logic
|
137
|
+
# @param [Hash] opts the optional parameters
|
138
|
+
# @option opts [SecurityScreenGroup] :logic The logic to screen with, consisting of operators, clauses, and nested groups.<br/> See <a href=\"/documentation/screener_v2\" target=\"_blank\">screener documentation</a> for details on how to construct conditions.
|
139
|
+
# @option opts [String] :order_column Results returned sorted by this column
|
140
|
+
# @option opts [String] :order_direction Sort order to use with the order_column
|
141
|
+
# @option opts [BOOLEAN] :primary_only Return only primary securities
|
142
|
+
# @return [Array<SecurityScreenResult>]
|
143
|
+
describe 'screen_securities test' do
|
144
|
+
it "should work" do
|
145
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
# unit tests for search_securities
|
150
|
+
# Search Securities
|
151
|
+
# Searches for Securities matching the text `query`
|
152
|
+
# @param query
|
153
|
+
# @param [Hash] opts the optional parameters
|
154
|
+
# @return [ApiResponseSecurities]
|
155
|
+
describe 'search_securities test' do
|
156
|
+
it "should work" do
|
157
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
end
|