intrinio-sdk 1.1.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +18 -8
- data/docs/ApiResponseCompaniesSearch.md +8 -0
- data/docs/ApiResponseDataTagsSearch.md +8 -0
- data/docs/ApiResponseEconomicIndicesSearch.md +8 -0
- data/docs/ApiResponseMunicipalities.md +9 -0
- data/docs/ApiResponseMunicipalitiyFinancials.md +9 -0
- data/docs/ApiResponseSICIndicesSearch.md +8 -0
- data/docs/ApiResponseSecuritiesSearch.md +8 -0
- data/docs/ApiResponseSecurityIntradayPrices.md +11 -0
- data/docs/ApiResponseStockMarketIndicesSearch.md +8 -0
- data/docs/CompanyApi.md +44 -115
- data/docs/DataTagApi.md +15 -51
- data/docs/FilingApi.md +19 -97
- data/docs/FundamentalSummary.md +1 -1
- data/docs/HistoricalDataApi.md +2 -0
- data/docs/IndexApi.md +33 -9
- data/docs/IntradayStockPrice.md +15 -0
- data/docs/Municipality.md +26 -0
- data/docs/MunicipalityApi.md +158 -0
- data/docs/MunicipalityFinancial.md +49 -0
- data/docs/RealtimeStockPrice.md +1 -1
- data/docs/SecurityApi.md +71 -4
- data/docs/StockExchangeApi.md +17 -42
- data/intrinio-sdk.gemspec +1 -1
- data/lib/intrinio-sdk.rb +14 -1
- data/lib/intrinio-sdk/api/company_api.rb +97 -154
- data/lib/intrinio-sdk/api/data_point_api.rb +1 -1
- data/lib/intrinio-sdk/api/data_tag_api.rb +27 -63
- data/lib/intrinio-sdk/api/filing_api.rb +42 -121
- data/lib/intrinio-sdk/api/fundamentals_api.rb +1 -1
- data/lib/intrinio-sdk/api/historical_data_api.rb +8 -1
- data/lib/intrinio-sdk/api/index_api.rb +73 -10
- data/lib/intrinio-sdk/api/municipality_api.rb +221 -0
- data/lib/intrinio-sdk/api/security_api.rb +117 -4
- data/lib/intrinio-sdk/api/stock_exchange_api.rb +45 -57
- data/lib/intrinio-sdk/api_client.rb +1 -1
- data/lib/intrinio-sdk/api_error.rb +1 -1
- data/lib/intrinio-sdk/configuration.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_companies.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_companies_search.rb +190 -0
- data/lib/intrinio-sdk/models/api_response_company_filings.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_company_fundamentals.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_company_historical_data.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_company_news.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_company_securities.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_data_tags.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_data_tags_search.rb +190 -0
- data/lib/intrinio-sdk/models/api_response_economic_index_historical_data.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_economic_indices.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_economic_indices_search.rb +190 -0
- data/lib/intrinio-sdk/models/api_response_filing_notes.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_filing_notes_search.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_filings.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_historical_data.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_municipalities.rb +200 -0
- data/lib/intrinio-sdk/models/api_response_municipalitiy_financials.rb +199 -0
- data/lib/intrinio-sdk/models/api_response_news.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_reported_financials.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_securities.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_securities_search.rb +190 -0
- data/lib/intrinio-sdk/models/api_response_security_historical_data.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_intraday_prices.rb +254 -0
- data/lib/intrinio-sdk/models/api_response_security_stock_price_adjustments.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_stock_prices.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_sic_index_historical_data.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_sic_indices.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_sic_indices_search.rb +190 -0
- data/lib/intrinio-sdk/models/api_response_standardized_financials.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_stock_exchange_realtime_stock_prices.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_stock_exchange_securities.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_stock_exchange_stock_price_adjustments.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_stock_exchange_stock_prices.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_stock_exchanges.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_stock_market_index_historical_data.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_stock_market_indices.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_stock_market_indices_search.rb +190 -0
- data/lib/intrinio-sdk/models/company.rb +1 -1
- data/lib/intrinio-sdk/models/company_filing.rb +1 -1
- data/lib/intrinio-sdk/models/company_news.rb +1 -1
- data/lib/intrinio-sdk/models/company_news_summary.rb +1 -1
- data/lib/intrinio-sdk/models/company_summary.rb +1 -1
- data/lib/intrinio-sdk/models/data_tag.rb +1 -1
- data/lib/intrinio-sdk/models/data_tag_summary.rb +1 -1
- data/lib/intrinio-sdk/models/dividend_record.rb +1 -1
- data/lib/intrinio-sdk/models/earnings_record.rb +1 -1
- data/lib/intrinio-sdk/models/economic_index.rb +1 -1
- data/lib/intrinio-sdk/models/economic_index_summary.rb +1 -1
- data/lib/intrinio-sdk/models/filing.rb +1 -1
- data/lib/intrinio-sdk/models/filing_note.rb +1 -1
- data/lib/intrinio-sdk/models/filing_note_filing.rb +1 -1
- data/lib/intrinio-sdk/models/filing_note_summary.rb +1 -1
- data/lib/intrinio-sdk/models/filing_summary.rb +1 -1
- data/lib/intrinio-sdk/models/fundamental.rb +1 -1
- data/lib/intrinio-sdk/models/fundamental_summary.rb +2 -2
- data/lib/intrinio-sdk/models/historical_data.rb +1 -1
- data/lib/intrinio-sdk/models/intraday_stock_price.rb +259 -0
- data/lib/intrinio-sdk/models/municipality.rb +369 -0
- data/lib/intrinio-sdk/models/municipality_financial.rb +599 -0
- data/lib/intrinio-sdk/models/realtime_stock_price.rb +2 -2
- data/lib/intrinio-sdk/models/realtime_stock_price_security.rb +1 -1
- data/lib/intrinio-sdk/models/reported_financial.rb +1 -1
- data/lib/intrinio-sdk/models/reported_tag.rb +1 -1
- data/lib/intrinio-sdk/models/security.rb +1 -1
- data/lib/intrinio-sdk/models/security_screen_clause.rb +1 -1
- data/lib/intrinio-sdk/models/security_screen_group.rb +1 -1
- data/lib/intrinio-sdk/models/security_screen_result.rb +1 -1
- data/lib/intrinio-sdk/models/security_screen_result_data.rb +1 -1
- data/lib/intrinio-sdk/models/security_summary.rb +1 -1
- data/lib/intrinio-sdk/models/sic_index.rb +1 -1
- data/lib/intrinio-sdk/models/standardized_financial.rb +1 -1
- data/lib/intrinio-sdk/models/stock_exchange.rb +1 -1
- data/lib/intrinio-sdk/models/stock_market_index.rb +1 -1
- data/lib/intrinio-sdk/models/stock_market_index_summary.rb +1 -1
- data/lib/intrinio-sdk/models/stock_price.rb +1 -1
- data/lib/intrinio-sdk/models/stock_price_adjustment.rb +1 -1
- data/lib/intrinio-sdk/models/stock_price_adjustment_summary.rb +1 -1
- data/lib/intrinio-sdk/models/stock_price_summary.rb +1 -1
- data/lib/intrinio-sdk/version.rb +2 -2
- data/spec/api/company_api_spec.rb +37 -54
- data/spec/api/data_point_api_spec.rb +3 -3
- data/spec/api/data_tag_api_spec.rb +9 -19
- data/spec/api/filing_api_spec.rb +73 -12
- data/spec/api/fundamentals_api_spec.rb +6 -6
- data/spec/api/historical_data_api_spec.rb +3 -2
- data/spec/api/index_api_spec.rb +28 -19
- data/spec/api/municipality_api_spec.rb +84 -0
- data/spec/api/security_api_spec.rb +74 -13
- data/spec/api/stock_exchange_api_spec.rb +31 -23
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/api_response_companies_search_spec.rb +42 -0
- data/spec/models/api_response_companies_spec.rb +1 -1
- data/spec/models/api_response_company_filings_spec.rb +1 -1
- data/spec/models/api_response_company_fundamentals_spec.rb +1 -1
- data/spec/models/api_response_company_historical_data_spec.rb +1 -1
- data/spec/models/api_response_company_news_spec.rb +1 -1
- data/spec/models/api_response_company_securities_spec.rb +1 -1
- data/spec/models/api_response_data_tags_search_spec.rb +42 -0
- data/spec/models/api_response_data_tags_spec.rb +1 -1
- data/spec/models/api_response_economic_index_historical_data_spec.rb +1 -1
- data/spec/models/api_response_economic_indices_search_spec.rb +42 -0
- data/spec/models/api_response_economic_indices_spec.rb +1 -1
- data/spec/models/api_response_filings_spec.rb +1 -1
- data/spec/models/api_response_historical_data_spec.rb +1 -1
- data/spec/models/api_response_municipalities_spec.rb +48 -0
- data/spec/models/api_response_municipalitiy_financials_spec.rb +48 -0
- data/spec/models/api_response_news_spec.rb +1 -1
- data/spec/models/api_response_reported_financials_spec.rb +1 -1
- data/spec/models/api_response_securities_search_spec.rb +42 -0
- data/spec/models/api_response_securities_spec.rb +1 -1
- data/spec/models/api_response_security_historical_data_spec.rb +1 -1
- data/spec/models/api_response_security_intraday_prices_spec.rb +64 -0
- data/spec/models/api_response_security_stock_price_adjustments_spec.rb +1 -1
- data/spec/models/api_response_security_stock_prices_spec.rb +1 -1
- data/spec/models/api_response_sic_index_historical_data_spec.rb +1 -1
- data/spec/models/api_response_sic_indices_search_spec.rb +42 -0
- data/spec/models/api_response_sic_indices_spec.rb +1 -1
- data/spec/models/api_response_standardized_financials_spec.rb +1 -1
- data/spec/models/api_response_stock_exchange_securities_spec.rb +1 -1
- data/spec/models/api_response_stock_exchange_stock_price_adjustments_spec.rb +1 -1
- data/spec/models/api_response_stock_exchange_stock_prices_spec.rb +1 -1
- data/spec/models/api_response_stock_exchanges_spec.rb +1 -1
- data/spec/models/api_response_stock_market_index_historical_data_spec.rb +1 -1
- data/spec/models/api_response_stock_market_indices_search_spec.rb +42 -0
- data/spec/models/api_response_stock_market_indices_spec.rb +1 -1
- data/spec/models/company_filing_spec.rb +1 -1
- data/spec/models/company_news_spec.rb +1 -1
- data/spec/models/company_news_summary_spec.rb +1 -1
- data/spec/models/company_spec.rb +1 -1
- data/spec/models/company_summary_spec.rb +1 -1
- data/spec/models/data_tag_spec.rb +1 -1
- data/spec/models/data_tag_summary_spec.rb +1 -1
- data/spec/models/economic_index_spec.rb +1 -1
- data/spec/models/economic_index_summary_spec.rb +1 -1
- data/spec/models/filing_spec.rb +1 -1
- data/spec/models/filing_summary_spec.rb +1 -1
- data/spec/models/fundamental_spec.rb +1 -1
- data/spec/models/fundamental_summary_spec.rb +1 -1
- data/spec/models/historical_data_spec.rb +1 -1
- data/spec/models/intraday_stock_price_spec.rb +84 -0
- data/spec/models/municipality_financial_spec.rb +288 -0
- data/spec/models/municipality_spec.rb +150 -0
- data/spec/models/reported_financial_spec.rb +1 -1
- data/spec/models/reported_tag_spec.rb +1 -1
- data/spec/models/security_screen_clause_spec.rb +1 -1
- data/spec/models/security_screen_group_spec.rb +1 -1
- data/spec/models/security_screen_result_data_spec.rb +1 -1
- data/spec/models/security_screen_result_spec.rb +1 -1
- data/spec/models/security_spec.rb +1 -1
- data/spec/models/security_summary_spec.rb +1 -1
- data/spec/models/sic_index_spec.rb +1 -1
- data/spec/models/standardized_financial_spec.rb +1 -1
- data/spec/models/stock_exchange_spec.rb +1 -1
- data/spec/models/stock_market_index_spec.rb +1 -1
- data/spec/models/stock_market_index_summary_spec.rb +1 -1
- data/spec/models/stock_price_adjustment_spec.rb +7 -1
- data/spec/models/stock_price_adjustment_summary_spec.rb +1 -7
- data/spec/models/stock_price_spec.rb +1 -1
- data/spec/models/stock_price_summary_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +54 -3
- data/intrinio-sdk-1.1.0.gem +0 -0
data/spec/api/filing_api_spec.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
5
|
|
6
|
-
OpenAPI spec version: 2.
|
6
|
+
OpenAPI spec version: 2.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.3.0-SNAPSHOT
|
@@ -32,37 +32,45 @@ describe 'FilingApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
# unit tests for
|
36
|
-
#
|
37
|
-
# Returns
|
35
|
+
# unit tests for get_all_filings
|
36
|
+
# All Filings
|
37
|
+
# Returns all Filings. Returns Filings matching parameters when supplied.
|
38
38
|
# @param company Filings for the given `company` identifier (ticker, CIK, LEI, Intrinio ID)
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
40
|
# @option opts [String] :report_type Filter by report type
|
41
41
|
# @option opts [Date] :start_date Filed on or after the given date
|
42
42
|
# @option opts [Date] :end_date Filed before or after the given date
|
43
|
+
# @option opts [Float] :page_size The number of results to return
|
43
44
|
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
44
45
|
# @return [ApiResponseFilings]
|
45
|
-
describe '
|
46
|
+
describe 'get_all_filings test' do
|
46
47
|
it "should work" do
|
47
48
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
48
49
|
end
|
49
50
|
end
|
50
51
|
|
51
|
-
# unit tests for
|
52
|
-
#
|
53
|
-
#
|
52
|
+
# unit tests for get_all_notes
|
53
|
+
# All Filing Notes
|
54
|
+
# Return all Notes from all Filings, most-recent first. Returns notes matching parameters when supplied.
|
54
55
|
# @param [Hash] opts the optional parameters
|
56
|
+
# @option opts [String] :company A Company identifier (Ticker, CIK, LEI, Intrinio ID)
|
57
|
+
# @option opts [String] :report_type Notes contained in filings that match the given report type
|
58
|
+
# @option opts [Date] :filing_start_date Limit search to filings on or after this date
|
59
|
+
# @option opts [Date] :filing_end_date Limit search to filings on or before this date
|
60
|
+
# @option opts [Date] :period_ended_start_date Limit search to filings with a period end date on or after this date
|
61
|
+
# @option opts [Date] :period_ended_end_date Limit search to filings with a period end date on or before this date
|
62
|
+
# @option opts [Float] :page_size The number of results to return
|
55
63
|
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
56
|
-
# @return [
|
57
|
-
describe '
|
64
|
+
# @return [ApiResponseFilingNotes]
|
65
|
+
describe 'get_all_notes test' do
|
58
66
|
it "should work" do
|
59
67
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
60
68
|
end
|
61
69
|
end
|
62
70
|
|
63
71
|
# unit tests for get_filing_by_id
|
64
|
-
#
|
65
|
-
#
|
72
|
+
# Lookup Filing
|
73
|
+
# Returns the Filing with the given `identifier`
|
66
74
|
# @param id The Intrinio ID of the Filing
|
67
75
|
# @param [Hash] opts the optional parameters
|
68
76
|
# @return [Filing]
|
@@ -72,4 +80,57 @@ describe 'FilingApi' do
|
|
72
80
|
end
|
73
81
|
end
|
74
82
|
|
83
|
+
# unit tests for get_note
|
84
|
+
# Filing Note by ID
|
85
|
+
#
|
86
|
+
# @param identifier The Intrinio ID of the filing note
|
87
|
+
# @param [Hash] opts the optional parameters
|
88
|
+
# @option opts [String] :content_format Returns content in html (as filed) or plain text
|
89
|
+
# @return [FilingNote]
|
90
|
+
describe 'get_note 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_note_html
|
97
|
+
# Filing Note HTML
|
98
|
+
#
|
99
|
+
# @param identifier The Intrinio ID of the filing note
|
100
|
+
# @param [Hash] opts the optional parameters
|
101
|
+
# @return [String]
|
102
|
+
describe 'get_note_html test' do
|
103
|
+
it "should work" do
|
104
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
# unit tests for get_note_text
|
109
|
+
# Filing Note Text
|
110
|
+
#
|
111
|
+
# @param identifier The Intrinio ID of the filing note
|
112
|
+
# @param [Hash] opts the optional parameters
|
113
|
+
# @return [String]
|
114
|
+
describe 'get_note_text test' do
|
115
|
+
it "should work" do
|
116
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
# unit tests for search_notes
|
121
|
+
# Search Filing Notes
|
122
|
+
# Searches for Filing Notes using the `query`
|
123
|
+
# @param query Search for notes that contain all or parts of this text
|
124
|
+
# @param [Hash] opts the optional parameters
|
125
|
+
# @option opts [Date] :filing_start_date Limit search to filings on or after this date
|
126
|
+
# @option opts [Date] :filing_end_date Limit search to filings on or before this date
|
127
|
+
# @option opts [Float] :page_size The number of results to return
|
128
|
+
# @option opts [Float] :page_size2 The number of results to return
|
129
|
+
# @return [ApiResponseFilingNotesSearch]
|
130
|
+
describe 'search_notes test' do
|
131
|
+
it "should work" do
|
132
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
75
136
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
5
|
|
6
|
-
OpenAPI spec version: 2.
|
6
|
+
OpenAPI spec version: 2.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.3.0-SNAPSHOT
|
@@ -33,8 +33,8 @@ describe 'FundamentalsApi' do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for get_fundamental_by_id
|
36
|
-
#
|
37
|
-
#
|
36
|
+
# Fundamental by ID
|
37
|
+
# Returns detailed fundamental data for the given `id`.
|
38
38
|
# @param id The Intrinio ID for the Fundamental
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
40
|
# @return [Fundamental]
|
@@ -45,7 +45,7 @@ describe 'FundamentalsApi' do
|
|
45
45
|
end
|
46
46
|
|
47
47
|
# unit tests for get_fundamental_reported_financials
|
48
|
-
#
|
48
|
+
# Reported Financials
|
49
49
|
# Returns the As-Reported Financials directly from the financial statements of the XBRL filings from the company
|
50
50
|
# @param id The Intrinio ID for the Fundamental
|
51
51
|
# @param [Hash] opts the optional parameters
|
@@ -57,7 +57,7 @@ describe 'FundamentalsApi' do
|
|
57
57
|
end
|
58
58
|
|
59
59
|
# unit tests for get_fundamental_standardized_financials
|
60
|
-
#
|
60
|
+
# Standardized Financials
|
61
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
62
|
# @param id The Intrinio ID for the Fundamental
|
63
63
|
# @param [Hash] opts the optional parameters
|
@@ -69,7 +69,7 @@ describe 'FundamentalsApi' do
|
|
69
69
|
end
|
70
70
|
|
71
71
|
# unit tests for lookup_fundamental
|
72
|
-
# Lookup
|
72
|
+
# Lookup Fundamental
|
73
73
|
# Returns the Fundamental for the Company with the given `identifier` and with the given parameters
|
74
74
|
# @param identifier A Company identifier (Ticker, CIK, LEI, Intrinio ID)
|
75
75
|
# @param statement_code The statement code
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
5
|
|
6
|
-
OpenAPI spec version: 2.
|
6
|
+
OpenAPI spec version: 2.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.3.0-SNAPSHOT
|
@@ -33,7 +33,7 @@ describe 'HistoricalDataApi' do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for get_historical_data
|
36
|
-
#
|
36
|
+
# Historical Data
|
37
37
|
# Returns historical values for the given `tag` and the entity represented by the given `identifier`
|
38
38
|
# @param identifier An identifier for an entity such as a Company, Security, Index, etc (Ticker, FIGI, ISIN, CUSIP, CIK, LEI, Intrinio ID)
|
39
39
|
# @param tag An Intrinio data tag ID or code-name
|
@@ -42,6 +42,7 @@ describe 'HistoricalDataApi' do
|
|
42
42
|
# @option opts [Date] :start_date Get historical data on or after this date
|
43
43
|
# @option opts [Date] :end_date Get historical date on or before this date
|
44
44
|
# @option opts [String] :sort_order Sort by date `asc` or `desc`
|
45
|
+
# @option opts [Float] :page_size The number of results to return
|
45
46
|
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
46
47
|
# @return [ApiResponseHistoricalData]
|
47
48
|
describe 'get_historical_data test' do
|
data/spec/api/index_api_spec.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
5
|
|
6
|
-
OpenAPI spec version: 2.
|
6
|
+
OpenAPI spec version: 2.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.3.0-SNAPSHOT
|
@@ -33,9 +33,10 @@ describe 'IndexApi' do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for get_all_economic_indices
|
36
|
-
#
|
36
|
+
# All Economic Indices
|
37
37
|
#
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [Float] :page_size The number of results to return
|
39
40
|
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
40
41
|
# @return [ApiResponseEconomicIndices]
|
41
42
|
describe 'get_all_economic_indices test' do
|
@@ -45,9 +46,10 @@ describe 'IndexApi' do
|
|
45
46
|
end
|
46
47
|
|
47
48
|
# unit tests for get_all_sic_indices
|
48
|
-
#
|
49
|
+
# All SIC Indices
|
49
50
|
#
|
50
51
|
# @param [Hash] opts the optional parameters
|
52
|
+
# @option opts [Float] :page_size The number of results to return
|
51
53
|
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
52
54
|
# @return [ApiResponseSICIndices]
|
53
55
|
describe 'get_all_sic_indices test' do
|
@@ -57,9 +59,10 @@ describe 'IndexApi' do
|
|
57
59
|
end
|
58
60
|
|
59
61
|
# unit tests for get_all_stock_market_indices
|
60
|
-
#
|
62
|
+
# All Stock Market Indices
|
61
63
|
#
|
62
64
|
# @param [Hash] opts the optional parameters
|
65
|
+
# @option opts [Float] :page_size The number of results to return
|
63
66
|
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
64
67
|
# @return [ApiResponseStockMarketIndices]
|
65
68
|
describe 'get_all_stock_market_indices test' do
|
@@ -69,7 +72,7 @@ describe 'IndexApi' do
|
|
69
72
|
end
|
70
73
|
|
71
74
|
# unit tests for get_economic_index_by_id
|
72
|
-
#
|
75
|
+
# Lookup Economic Index
|
73
76
|
#
|
74
77
|
# @param identifier An Index Identifier (symbol, Intrinio ID)
|
75
78
|
# @param [Hash] opts the optional parameters
|
@@ -81,7 +84,7 @@ describe 'IndexApi' do
|
|
81
84
|
end
|
82
85
|
|
83
86
|
# unit tests for get_economic_index_data_point_number
|
84
|
-
#
|
87
|
+
# Data Point (Number) for an Economic Index
|
85
88
|
# Returns a numeric value for the given `tag` for the Economic Index with the given `identifier`
|
86
89
|
# @param identifier An Index Identifier (symbol, Intrinio ID)
|
87
90
|
# @param tag An Intrinio data tag ID or code-name
|
@@ -94,7 +97,7 @@ describe 'IndexApi' do
|
|
94
97
|
end
|
95
98
|
|
96
99
|
# unit tests for get_economic_index_data_point_text
|
97
|
-
#
|
100
|
+
# Data Point (Text) for an Economic Index
|
98
101
|
# Returns a text value for the given `tag` for the Economic Index with the given `identifier`
|
99
102
|
# @param identifier An Index Identifier (symbol, Intrinio ID)
|
100
103
|
# @param tag An Intrinio data tag ID or code-name
|
@@ -107,7 +110,7 @@ describe 'IndexApi' do
|
|
107
110
|
end
|
108
111
|
|
109
112
|
# unit tests for get_economic_index_historical_data
|
110
|
-
#
|
113
|
+
# Historical Data for an Economic Index
|
111
114
|
# Returns historical values for the given `tag` and the Economic Index with the given `identifier`
|
112
115
|
# @param identifier An Index Identifier (symbol, Intrinio ID)
|
113
116
|
# @param tag An Intrinio data tag ID or code-name
|
@@ -116,6 +119,7 @@ describe 'IndexApi' do
|
|
116
119
|
# @option opts [Date] :start_date Get historical data on or after this date
|
117
120
|
# @option opts [Date] :end_date Get historical data on or before this date
|
118
121
|
# @option opts [String] :sort_order Sort by date `asc` or `desc`
|
122
|
+
# @option opts [Float] :page_size The number of results to return
|
119
123
|
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
120
124
|
# @return [ApiResponseEconomicIndexHistoricalData]
|
121
125
|
describe 'get_economic_index_historical_data test' do
|
@@ -125,7 +129,7 @@ describe 'IndexApi' do
|
|
125
129
|
end
|
126
130
|
|
127
131
|
# unit tests for get_sic_index_by_id
|
128
|
-
#
|
132
|
+
# Lookup SIC Index
|
129
133
|
#
|
130
134
|
# @param identifier An Index Identifier (symbol, Intrinio ID)
|
131
135
|
# @param [Hash] opts the optional parameters
|
@@ -137,7 +141,7 @@ describe 'IndexApi' do
|
|
137
141
|
end
|
138
142
|
|
139
143
|
# unit tests for get_sic_index_data_point_number
|
140
|
-
#
|
144
|
+
# Data Point (Number) for an SIC Index
|
141
145
|
# Returns a numeric value for the given `tag` for the SIC Index with the given `identifier`
|
142
146
|
# @param identifier An Index Identifier (symbol, Intrinio ID)
|
143
147
|
# @param tag An Intrinio data tag ID or code-name
|
@@ -150,7 +154,7 @@ describe 'IndexApi' do
|
|
150
154
|
end
|
151
155
|
|
152
156
|
# unit tests for get_sic_index_data_point_text
|
153
|
-
#
|
157
|
+
# Data Point (Text) for an SIC Index
|
154
158
|
# Returns a text value for the given `tag` for the SIC Index with the given `identifier`
|
155
159
|
# @param identifier An Index Identifier (symbol, Intrinio ID)
|
156
160
|
# @param tag An Intrinio data tag ID or code-name
|
@@ -163,7 +167,7 @@ describe 'IndexApi' do
|
|
163
167
|
end
|
164
168
|
|
165
169
|
# unit tests for get_sic_index_historical_data
|
166
|
-
#
|
170
|
+
# Historical Data for an SIC Index
|
167
171
|
# Returns historical values for the given `tag` and the SIC Index with the given `identifier`
|
168
172
|
# @param identifier An Index Identifier (symbol, Intrinio ID)
|
169
173
|
# @param tag An Intrinio data tag ID or code-name
|
@@ -172,6 +176,7 @@ describe 'IndexApi' do
|
|
172
176
|
# @option opts [Date] :start_date Get historical data on or after this date
|
173
177
|
# @option opts [Date] :end_date Get historical data on or before this date
|
174
178
|
# @option opts [String] :sort_order Sort by date `asc` or `desc`
|
179
|
+
# @option opts [Float] :page_size The number of results to return
|
175
180
|
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
176
181
|
# @return [ApiResponseSICIndexHistoricalData]
|
177
182
|
describe 'get_sic_index_historical_data test' do
|
@@ -181,7 +186,7 @@ describe 'IndexApi' do
|
|
181
186
|
end
|
182
187
|
|
183
188
|
# unit tests for get_stock_market_index_by_id
|
184
|
-
#
|
189
|
+
# Lookup Stock Market Index
|
185
190
|
#
|
186
191
|
# @param identifier An Index Identifier (symbol, Intrinio ID)
|
187
192
|
# @param [Hash] opts the optional parameters
|
@@ -193,7 +198,7 @@ describe 'IndexApi' do
|
|
193
198
|
end
|
194
199
|
|
195
200
|
# unit tests for get_stock_market_index_data_point_number
|
196
|
-
#
|
201
|
+
# Data Point (Number) for Stock Market Index
|
197
202
|
# Returns a numeric value for the given `tag` for the Stock Market Index with the given `identifier`
|
198
203
|
# @param identifier An Index Identifier (symbol, Intrinio ID)
|
199
204
|
# @param tag An Intrinio data tag ID or code-name
|
@@ -206,7 +211,7 @@ describe 'IndexApi' do
|
|
206
211
|
end
|
207
212
|
|
208
213
|
# unit tests for get_stock_market_index_data_point_text
|
209
|
-
#
|
214
|
+
# Data Point (Text) for Stock Market Index
|
210
215
|
# Returns a text value for the given `tag` for the Stock Market Index with the given `identifier`
|
211
216
|
# @param identifier An Index Identifier (symbol, Intrinio ID)
|
212
217
|
# @param tag An Intrinio data tag ID or code-name
|
@@ -219,7 +224,7 @@ describe 'IndexApi' do
|
|
219
224
|
end
|
220
225
|
|
221
226
|
# unit tests for get_stock_market_index_historical_data
|
222
|
-
#
|
227
|
+
# Historical Data for Stock Market Index
|
223
228
|
# Returns historical values for the given `tag` and the Stock Market Index with the given `identifier`
|
224
229
|
# @param identifier An Index Identifier (symbol, Intrinio ID)
|
225
230
|
# @param tag An Intrinio data tag ID or code-name
|
@@ -228,6 +233,7 @@ describe 'IndexApi' do
|
|
228
233
|
# @option opts [Date] :start_date Get historical data on or after this date
|
229
234
|
# @option opts [Date] :end_date Get historical data on or before this date
|
230
235
|
# @option opts [String] :sort_order Sort by date `asc` or `desc`
|
236
|
+
# @option opts [Float] :page_size The number of results to return
|
231
237
|
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
232
238
|
# @return [ApiResponseStockMarketIndexHistoricalData]
|
233
239
|
describe 'get_stock_market_index_historical_data test' do
|
@@ -241,7 +247,8 @@ describe 'IndexApi' do
|
|
241
247
|
# Searches for indices using the text in `query`
|
242
248
|
# @param query Search query
|
243
249
|
# @param [Hash] opts the optional parameters
|
244
|
-
# @
|
250
|
+
# @option opts [Float] :page_size The number of results to return
|
251
|
+
# @return [ApiResponseEconomicIndicesSearch]
|
245
252
|
describe 'search_economic_indices test' do
|
246
253
|
it "should work" do
|
247
254
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -253,7 +260,8 @@ describe 'IndexApi' do
|
|
253
260
|
# Searches for indices using the text in `query`
|
254
261
|
# @param query Search query
|
255
262
|
# @param [Hash] opts the optional parameters
|
256
|
-
# @
|
263
|
+
# @option opts [Float] :page_size The number of results to return
|
264
|
+
# @return [ApiResponseSICIndicesSearch]
|
257
265
|
describe 'search_sic_indices test' do
|
258
266
|
it "should work" do
|
259
267
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -265,7 +273,8 @@ describe 'IndexApi' do
|
|
265
273
|
# Searches for indices using the text in `query`
|
266
274
|
# @param query Search query
|
267
275
|
# @param [Hash] opts the optional parameters
|
268
|
-
# @
|
276
|
+
# @option opts [Float] :page_size The number of results to return
|
277
|
+
# @return [ApiResponseStockMarketIndicesSearch]
|
269
278
|
describe 'search_stock_markets_indices test' do
|
270
279
|
it "should work" do
|
271
280
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -0,0 +1,84 @@
|
|
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.1.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::MunicipalityApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'MunicipalityApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = Intrinio::MunicipalityApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of MunicipalityApi' do
|
30
|
+
it 'should create an instance of MunicipalityApi' do
|
31
|
+
expect(@instance).to be_instance_of(Intrinio::MunicipalityApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for get_all_municipalities
|
36
|
+
# All Municipalities
|
37
|
+
#
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [BOOLEAN] :has_financials Return municipalities with financials
|
40
|
+
# @option opts [String] :government_name Return municipalities with a government name matching the given query
|
41
|
+
# @option opts [String] :government_type Return municipalities with the given government type
|
42
|
+
# @option opts [String] :area_name Return municipalities with an area name matching the given query
|
43
|
+
# @option opts [String] :area_type Return municipalities with the given area type
|
44
|
+
# @option opts [String] :city Return municipalities in the given city
|
45
|
+
# @option opts [String] :state Return municipalities in the given state
|
46
|
+
# @option opts [Float] :zipcode Return municipalities in the given zipcode
|
47
|
+
# @option opts [Float] :population_greater_than Return municipalities with a population greater than the given number
|
48
|
+
# @option opts [Float] :population_less_than Return municipalities with a population less than the given number
|
49
|
+
# @option opts [Float] :enrollment_greater_than Return municipalities with an enrollment greater than the given number
|
50
|
+
# @option opts [Float] :enrollment_less_than Return municipalities with an enrollment less than the given number
|
51
|
+
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
52
|
+
# @return [ApiResponseMunicipalities]
|
53
|
+
describe 'get_all_municipalities 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_municipality_by_id
|
60
|
+
# Municipality by ID
|
61
|
+
# Returns the Municipality with the given ID
|
62
|
+
# @param id An Intrinio ID of a Municipality
|
63
|
+
# @param [Hash] opts the optional parameters
|
64
|
+
# @return [Municipality]
|
65
|
+
describe 'get_municipality_by_id 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_municipality_financials
|
72
|
+
# Financials for a Municipality
|
73
|
+
# Returns financial statement data for the Municipality with the given ID
|
74
|
+
# @param id An Intrinio ID of a Municipality
|
75
|
+
# @param [Hash] opts the optional parameters
|
76
|
+
# @option opts [Float] :fiscal_year Return financials for the given fiscal year
|
77
|
+
# @return [ApiResponseMunicipalitiyFinancials]
|
78
|
+
describe 'get_municipality_financials test' do
|
79
|
+
it "should work" do
|
80
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
end
|