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.
Files changed (203) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +18 -8
  3. data/docs/ApiResponseCompaniesSearch.md +8 -0
  4. data/docs/ApiResponseDataTagsSearch.md +8 -0
  5. data/docs/ApiResponseEconomicIndicesSearch.md +8 -0
  6. data/docs/ApiResponseMunicipalities.md +9 -0
  7. data/docs/ApiResponseMunicipalitiyFinancials.md +9 -0
  8. data/docs/ApiResponseSICIndicesSearch.md +8 -0
  9. data/docs/ApiResponseSecuritiesSearch.md +8 -0
  10. data/docs/ApiResponseSecurityIntradayPrices.md +11 -0
  11. data/docs/ApiResponseStockMarketIndicesSearch.md +8 -0
  12. data/docs/CompanyApi.md +44 -115
  13. data/docs/DataTagApi.md +15 -51
  14. data/docs/FilingApi.md +19 -97
  15. data/docs/FundamentalSummary.md +1 -1
  16. data/docs/HistoricalDataApi.md +2 -0
  17. data/docs/IndexApi.md +33 -9
  18. data/docs/IntradayStockPrice.md +15 -0
  19. data/docs/Municipality.md +26 -0
  20. data/docs/MunicipalityApi.md +158 -0
  21. data/docs/MunicipalityFinancial.md +49 -0
  22. data/docs/RealtimeStockPrice.md +1 -1
  23. data/docs/SecurityApi.md +71 -4
  24. data/docs/StockExchangeApi.md +17 -42
  25. data/intrinio-sdk.gemspec +1 -1
  26. data/lib/intrinio-sdk.rb +14 -1
  27. data/lib/intrinio-sdk/api/company_api.rb +97 -154
  28. data/lib/intrinio-sdk/api/data_point_api.rb +1 -1
  29. data/lib/intrinio-sdk/api/data_tag_api.rb +27 -63
  30. data/lib/intrinio-sdk/api/filing_api.rb +42 -121
  31. data/lib/intrinio-sdk/api/fundamentals_api.rb +1 -1
  32. data/lib/intrinio-sdk/api/historical_data_api.rb +8 -1
  33. data/lib/intrinio-sdk/api/index_api.rb +73 -10
  34. data/lib/intrinio-sdk/api/municipality_api.rb +221 -0
  35. data/lib/intrinio-sdk/api/security_api.rb +117 -4
  36. data/lib/intrinio-sdk/api/stock_exchange_api.rb +45 -57
  37. data/lib/intrinio-sdk/api_client.rb +1 -1
  38. data/lib/intrinio-sdk/api_error.rb +1 -1
  39. data/lib/intrinio-sdk/configuration.rb +1 -1
  40. data/lib/intrinio-sdk/models/api_response_companies.rb +1 -1
  41. data/lib/intrinio-sdk/models/api_response_companies_search.rb +190 -0
  42. data/lib/intrinio-sdk/models/api_response_company_filings.rb +1 -1
  43. data/lib/intrinio-sdk/models/api_response_company_fundamentals.rb +1 -1
  44. data/lib/intrinio-sdk/models/api_response_company_historical_data.rb +1 -1
  45. data/lib/intrinio-sdk/models/api_response_company_news.rb +1 -1
  46. data/lib/intrinio-sdk/models/api_response_company_securities.rb +1 -1
  47. data/lib/intrinio-sdk/models/api_response_data_tags.rb +1 -1
  48. data/lib/intrinio-sdk/models/api_response_data_tags_search.rb +190 -0
  49. data/lib/intrinio-sdk/models/api_response_economic_index_historical_data.rb +1 -1
  50. data/lib/intrinio-sdk/models/api_response_economic_indices.rb +1 -1
  51. data/lib/intrinio-sdk/models/api_response_economic_indices_search.rb +190 -0
  52. data/lib/intrinio-sdk/models/api_response_filing_notes.rb +1 -1
  53. data/lib/intrinio-sdk/models/api_response_filing_notes_search.rb +1 -1
  54. data/lib/intrinio-sdk/models/api_response_filings.rb +1 -1
  55. data/lib/intrinio-sdk/models/api_response_historical_data.rb +1 -1
  56. data/lib/intrinio-sdk/models/api_response_municipalities.rb +200 -0
  57. data/lib/intrinio-sdk/models/api_response_municipalitiy_financials.rb +199 -0
  58. data/lib/intrinio-sdk/models/api_response_news.rb +1 -1
  59. data/lib/intrinio-sdk/models/api_response_reported_financials.rb +1 -1
  60. data/lib/intrinio-sdk/models/api_response_securities.rb +1 -1
  61. data/lib/intrinio-sdk/models/api_response_securities_search.rb +190 -0
  62. data/lib/intrinio-sdk/models/api_response_security_historical_data.rb +1 -1
  63. data/lib/intrinio-sdk/models/api_response_security_intraday_prices.rb +254 -0
  64. data/lib/intrinio-sdk/models/api_response_security_stock_price_adjustments.rb +1 -1
  65. data/lib/intrinio-sdk/models/api_response_security_stock_prices.rb +1 -1
  66. data/lib/intrinio-sdk/models/api_response_sic_index_historical_data.rb +1 -1
  67. data/lib/intrinio-sdk/models/api_response_sic_indices.rb +1 -1
  68. data/lib/intrinio-sdk/models/api_response_sic_indices_search.rb +190 -0
  69. data/lib/intrinio-sdk/models/api_response_standardized_financials.rb +1 -1
  70. data/lib/intrinio-sdk/models/api_response_stock_exchange_realtime_stock_prices.rb +1 -1
  71. data/lib/intrinio-sdk/models/api_response_stock_exchange_securities.rb +1 -1
  72. data/lib/intrinio-sdk/models/api_response_stock_exchange_stock_price_adjustments.rb +1 -1
  73. data/lib/intrinio-sdk/models/api_response_stock_exchange_stock_prices.rb +1 -1
  74. data/lib/intrinio-sdk/models/api_response_stock_exchanges.rb +1 -1
  75. data/lib/intrinio-sdk/models/api_response_stock_market_index_historical_data.rb +1 -1
  76. data/lib/intrinio-sdk/models/api_response_stock_market_indices.rb +1 -1
  77. data/lib/intrinio-sdk/models/api_response_stock_market_indices_search.rb +190 -0
  78. data/lib/intrinio-sdk/models/company.rb +1 -1
  79. data/lib/intrinio-sdk/models/company_filing.rb +1 -1
  80. data/lib/intrinio-sdk/models/company_news.rb +1 -1
  81. data/lib/intrinio-sdk/models/company_news_summary.rb +1 -1
  82. data/lib/intrinio-sdk/models/company_summary.rb +1 -1
  83. data/lib/intrinio-sdk/models/data_tag.rb +1 -1
  84. data/lib/intrinio-sdk/models/data_tag_summary.rb +1 -1
  85. data/lib/intrinio-sdk/models/dividend_record.rb +1 -1
  86. data/lib/intrinio-sdk/models/earnings_record.rb +1 -1
  87. data/lib/intrinio-sdk/models/economic_index.rb +1 -1
  88. data/lib/intrinio-sdk/models/economic_index_summary.rb +1 -1
  89. data/lib/intrinio-sdk/models/filing.rb +1 -1
  90. data/lib/intrinio-sdk/models/filing_note.rb +1 -1
  91. data/lib/intrinio-sdk/models/filing_note_filing.rb +1 -1
  92. data/lib/intrinio-sdk/models/filing_note_summary.rb +1 -1
  93. data/lib/intrinio-sdk/models/filing_summary.rb +1 -1
  94. data/lib/intrinio-sdk/models/fundamental.rb +1 -1
  95. data/lib/intrinio-sdk/models/fundamental_summary.rb +2 -2
  96. data/lib/intrinio-sdk/models/historical_data.rb +1 -1
  97. data/lib/intrinio-sdk/models/intraday_stock_price.rb +259 -0
  98. data/lib/intrinio-sdk/models/municipality.rb +369 -0
  99. data/lib/intrinio-sdk/models/municipality_financial.rb +599 -0
  100. data/lib/intrinio-sdk/models/realtime_stock_price.rb +2 -2
  101. data/lib/intrinio-sdk/models/realtime_stock_price_security.rb +1 -1
  102. data/lib/intrinio-sdk/models/reported_financial.rb +1 -1
  103. data/lib/intrinio-sdk/models/reported_tag.rb +1 -1
  104. data/lib/intrinio-sdk/models/security.rb +1 -1
  105. data/lib/intrinio-sdk/models/security_screen_clause.rb +1 -1
  106. data/lib/intrinio-sdk/models/security_screen_group.rb +1 -1
  107. data/lib/intrinio-sdk/models/security_screen_result.rb +1 -1
  108. data/lib/intrinio-sdk/models/security_screen_result_data.rb +1 -1
  109. data/lib/intrinio-sdk/models/security_summary.rb +1 -1
  110. data/lib/intrinio-sdk/models/sic_index.rb +1 -1
  111. data/lib/intrinio-sdk/models/standardized_financial.rb +1 -1
  112. data/lib/intrinio-sdk/models/stock_exchange.rb +1 -1
  113. data/lib/intrinio-sdk/models/stock_market_index.rb +1 -1
  114. data/lib/intrinio-sdk/models/stock_market_index_summary.rb +1 -1
  115. data/lib/intrinio-sdk/models/stock_price.rb +1 -1
  116. data/lib/intrinio-sdk/models/stock_price_adjustment.rb +1 -1
  117. data/lib/intrinio-sdk/models/stock_price_adjustment_summary.rb +1 -1
  118. data/lib/intrinio-sdk/models/stock_price_summary.rb +1 -1
  119. data/lib/intrinio-sdk/version.rb +2 -2
  120. data/spec/api/company_api_spec.rb +37 -54
  121. data/spec/api/data_point_api_spec.rb +3 -3
  122. data/spec/api/data_tag_api_spec.rb +9 -19
  123. data/spec/api/filing_api_spec.rb +73 -12
  124. data/spec/api/fundamentals_api_spec.rb +6 -6
  125. data/spec/api/historical_data_api_spec.rb +3 -2
  126. data/spec/api/index_api_spec.rb +28 -19
  127. data/spec/api/municipality_api_spec.rb +84 -0
  128. data/spec/api/security_api_spec.rb +74 -13
  129. data/spec/api/stock_exchange_api_spec.rb +31 -23
  130. data/spec/api_client_spec.rb +1 -1
  131. data/spec/configuration_spec.rb +1 -1
  132. data/spec/models/api_response_companies_search_spec.rb +42 -0
  133. data/spec/models/api_response_companies_spec.rb +1 -1
  134. data/spec/models/api_response_company_filings_spec.rb +1 -1
  135. data/spec/models/api_response_company_fundamentals_spec.rb +1 -1
  136. data/spec/models/api_response_company_historical_data_spec.rb +1 -1
  137. data/spec/models/api_response_company_news_spec.rb +1 -1
  138. data/spec/models/api_response_company_securities_spec.rb +1 -1
  139. data/spec/models/api_response_data_tags_search_spec.rb +42 -0
  140. data/spec/models/api_response_data_tags_spec.rb +1 -1
  141. data/spec/models/api_response_economic_index_historical_data_spec.rb +1 -1
  142. data/spec/models/api_response_economic_indices_search_spec.rb +42 -0
  143. data/spec/models/api_response_economic_indices_spec.rb +1 -1
  144. data/spec/models/api_response_filings_spec.rb +1 -1
  145. data/spec/models/api_response_historical_data_spec.rb +1 -1
  146. data/spec/models/api_response_municipalities_spec.rb +48 -0
  147. data/spec/models/api_response_municipalitiy_financials_spec.rb +48 -0
  148. data/spec/models/api_response_news_spec.rb +1 -1
  149. data/spec/models/api_response_reported_financials_spec.rb +1 -1
  150. data/spec/models/api_response_securities_search_spec.rb +42 -0
  151. data/spec/models/api_response_securities_spec.rb +1 -1
  152. data/spec/models/api_response_security_historical_data_spec.rb +1 -1
  153. data/spec/models/api_response_security_intraday_prices_spec.rb +64 -0
  154. data/spec/models/api_response_security_stock_price_adjustments_spec.rb +1 -1
  155. data/spec/models/api_response_security_stock_prices_spec.rb +1 -1
  156. data/spec/models/api_response_sic_index_historical_data_spec.rb +1 -1
  157. data/spec/models/api_response_sic_indices_search_spec.rb +42 -0
  158. data/spec/models/api_response_sic_indices_spec.rb +1 -1
  159. data/spec/models/api_response_standardized_financials_spec.rb +1 -1
  160. data/spec/models/api_response_stock_exchange_securities_spec.rb +1 -1
  161. data/spec/models/api_response_stock_exchange_stock_price_adjustments_spec.rb +1 -1
  162. data/spec/models/api_response_stock_exchange_stock_prices_spec.rb +1 -1
  163. data/spec/models/api_response_stock_exchanges_spec.rb +1 -1
  164. data/spec/models/api_response_stock_market_index_historical_data_spec.rb +1 -1
  165. data/spec/models/api_response_stock_market_indices_search_spec.rb +42 -0
  166. data/spec/models/api_response_stock_market_indices_spec.rb +1 -1
  167. data/spec/models/company_filing_spec.rb +1 -1
  168. data/spec/models/company_news_spec.rb +1 -1
  169. data/spec/models/company_news_summary_spec.rb +1 -1
  170. data/spec/models/company_spec.rb +1 -1
  171. data/spec/models/company_summary_spec.rb +1 -1
  172. data/spec/models/data_tag_spec.rb +1 -1
  173. data/spec/models/data_tag_summary_spec.rb +1 -1
  174. data/spec/models/economic_index_spec.rb +1 -1
  175. data/spec/models/economic_index_summary_spec.rb +1 -1
  176. data/spec/models/filing_spec.rb +1 -1
  177. data/spec/models/filing_summary_spec.rb +1 -1
  178. data/spec/models/fundamental_spec.rb +1 -1
  179. data/spec/models/fundamental_summary_spec.rb +1 -1
  180. data/spec/models/historical_data_spec.rb +1 -1
  181. data/spec/models/intraday_stock_price_spec.rb +84 -0
  182. data/spec/models/municipality_financial_spec.rb +288 -0
  183. data/spec/models/municipality_spec.rb +150 -0
  184. data/spec/models/reported_financial_spec.rb +1 -1
  185. data/spec/models/reported_tag_spec.rb +1 -1
  186. data/spec/models/security_screen_clause_spec.rb +1 -1
  187. data/spec/models/security_screen_group_spec.rb +1 -1
  188. data/spec/models/security_screen_result_data_spec.rb +1 -1
  189. data/spec/models/security_screen_result_spec.rb +1 -1
  190. data/spec/models/security_spec.rb +1 -1
  191. data/spec/models/security_summary_spec.rb +1 -1
  192. data/spec/models/sic_index_spec.rb +1 -1
  193. data/spec/models/standardized_financial_spec.rb +1 -1
  194. data/spec/models/stock_exchange_spec.rb +1 -1
  195. data/spec/models/stock_market_index_spec.rb +1 -1
  196. data/spec/models/stock_market_index_summary_spec.rb +1 -1
  197. data/spec/models/stock_price_adjustment_spec.rb +7 -1
  198. data/spec/models/stock_price_adjustment_summary_spec.rb +1 -7
  199. data/spec/models/stock_price_spec.rb +1 -1
  200. data/spec/models/stock_price_summary_spec.rb +1 -1
  201. data/spec/spec_helper.rb +1 -1
  202. metadata +54 -3
  203. data/intrinio-sdk-1.1.0.gem +0 -0
@@ -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.1.0
6
+ OpenAPI spec version: 2.1.1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.0-SNAPSHOT
@@ -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.1.0
6
+ OpenAPI spec version: 2.1.1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.0-SNAPSHOT
@@ -20,34 +20,36 @@ module Intrinio
20
20
  @api_client = api_client
21
21
  end
22
22
 
23
- # Filter Data Tags
24
- # Returns Data Tags that match the given filters
23
+ # All Data Tags
24
+ # Returns all Data Tags. Returns Data Tags matching parameters when specified.
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @option opts [String] :tag Tag
27
27
  # @option opts [String] :type Type
28
28
  # @option opts [String] :parent ID of tag parent
29
29
  # @option opts [String] :statement_code Statement Code
30
30
  # @option opts [String] :fs_template Template (default to industrial)
31
+ # @option opts [Float] :page_size The number of results to return (default to 100)
31
32
  # @option opts [String] :next_page Gets the next page of data from a previous API call
32
33
  # @return [ApiResponseDataTags]
33
- def filter_data_tags(opts = {})
34
- data, _status_code, _headers = filter_data_tags_with_http_info(opts)
34
+ def get_all_data_tags(opts = {})
35
+ data, _status_code, _headers = get_all_data_tags_with_http_info(opts)
35
36
  return data
36
37
  end
37
38
 
38
- # Filter Data Tags
39
- # Returns Data Tags that match the given filters
39
+ # All Data Tags
40
+ # Returns all Data Tags. Returns Data Tags matching parameters when specified.
40
41
  # @param [Hash] opts the optional parameters
41
42
  # @option opts [String] :tag Tag
42
43
  # @option opts [String] :type Type
43
44
  # @option opts [String] :parent ID of tag parent
44
45
  # @option opts [String] :statement_code Statement Code
45
46
  # @option opts [String] :fs_template Template
47
+ # @option opts [Float] :page_size The number of results to return
46
48
  # @option opts [String] :next_page Gets the next page of data from a previous API call
47
49
  # @return [Array<(ApiResponseDataTags, Fixnum, Hash)>] ApiResponseDataTags data, response status code and response headers
48
- def filter_data_tags_with_http_info(opts = {})
50
+ def get_all_data_tags_with_http_info(opts = {})
49
51
  if @api_client.config.debugging
50
- @api_client.config.logger.debug "Calling API: DataTagApi.filter_data_tags ..."
52
+ @api_client.config.logger.debug "Calling API: DataTagApi.get_all_data_tags ..."
51
53
  end
52
54
  if @api_client.config.client_side_validation && opts[:'statement_code'] && !['income_statement', 'balance_sheet_statement', 'cash_flow_statement', 'calculations'].include?(opts[:'statement_code'])
53
55
  fail ArgumentError, 'invalid value for "statement_code", must be one of income_statement, balance_sheet_statement, cash_flow_statement, calculations'
@@ -55,8 +57,12 @@ module Intrinio
55
57
  if @api_client.config.client_side_validation && opts[:'fs_template'] && !['industrial', 'financial'].include?(opts[:'fs_template'])
56
58
  fail ArgumentError, 'invalid value for "fs_template", must be one of industrial, financial'
57
59
  end
60
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
61
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling DataTagApi.get_all_data_tags, must be smaller than or equal to 10000.'
62
+ end
63
+
58
64
  # resource path
59
- local_var_path = "/data_tags/filter"
65
+ local_var_path = "/data_tags"
60
66
 
61
67
  # query parameters
62
68
  query_params = {}
@@ -65,56 +71,7 @@ module Intrinio
65
71
  query_params[:'parent'] = opts[:'parent'] if !opts[:'parent'].nil?
66
72
  query_params[:'statement_code'] = opts[:'statement_code'] if !opts[:'statement_code'].nil?
67
73
  query_params[:'fs_template'] = opts[:'fs_template'] if !opts[:'fs_template'].nil?
68
- query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
69
-
70
- # header parameters
71
- header_params = {}
72
- # HTTP header 'Accept' (if needed)
73
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
74
-
75
- # form parameters
76
- form_params = {}
77
-
78
- # http body (model)
79
- post_body = nil
80
- auth_names = ['ApiKeyAuth']
81
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
82
- :header_params => header_params,
83
- :query_params => query_params,
84
- :form_params => form_params,
85
- :body => post_body,
86
- :auth_names => auth_names,
87
- :return_type => 'ApiResponseDataTags')
88
- if @api_client.config.debugging
89
- @api_client.config.logger.debug "API called: DataTagApi#filter_data_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
90
- end
91
- return data, status_code, headers
92
- end
93
-
94
- # All Data Tags
95
- # Returns All Data Tags
96
- # @param [Hash] opts the optional parameters
97
- # @option opts [String] :next_page Gets the next page of data from a previous API call
98
- # @return [ApiResponseDataTags]
99
- def get_all_data_tags(opts = {})
100
- data, _status_code, _headers = get_all_data_tags_with_http_info(opts)
101
- return data
102
- end
103
-
104
- # All Data Tags
105
- # Returns All Data Tags
106
- # @param [Hash] opts the optional parameters
107
- # @option opts [String] :next_page Gets the next page of data from a previous API call
108
- # @return [Array<(ApiResponseDataTags, Fixnum, Hash)>] ApiResponseDataTags data, response status code and response headers
109
- def get_all_data_tags_with_http_info(opts = {})
110
- if @api_client.config.debugging
111
- @api_client.config.logger.debug "Calling API: DataTagApi.get_all_data_tags ..."
112
- end
113
- # resource path
114
- local_var_path = "/data_tags"
115
-
116
- # query parameters
117
- query_params = {}
74
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
118
75
  query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
119
76
 
120
77
  # header parameters
@@ -198,7 +155,8 @@ module Intrinio
198
155
  # Searches for Data Tags matching the text `query`
199
156
  # @param query
200
157
  # @param [Hash] opts the optional parameters
201
- # @return [ApiResponseDataTags]
158
+ # @option opts [Float] :page_size The number of results to return (default to 100)
159
+ # @return [ApiResponseDataTagsSearch]
202
160
  def search_data_tags(query, opts = {})
203
161
  data, _status_code, _headers = search_data_tags_with_http_info(query, opts)
204
162
  return data
@@ -208,7 +166,8 @@ module Intrinio
208
166
  # Searches for Data Tags matching the text &#x60;query&#x60;
209
167
  # @param query
210
168
  # @param [Hash] opts the optional parameters
211
- # @return [Array<(ApiResponseDataTags, Fixnum, Hash)>] ApiResponseDataTags data, response status code and response headers
169
+ # @option opts [Float] :page_size The number of results to return
170
+ # @return [Array<(ApiResponseDataTagsSearch, Fixnum, Hash)>] ApiResponseDataTagsSearch data, response status code and response headers
212
171
  def search_data_tags_with_http_info(query, opts = {})
213
172
  if @api_client.config.debugging
214
173
  @api_client.config.logger.debug "Calling API: DataTagApi.search_data_tags ..."
@@ -217,12 +176,17 @@ module Intrinio
217
176
  if @api_client.config.client_side_validation && query.nil?
218
177
  fail ArgumentError, "Missing the required parameter 'query' when calling DataTagApi.search_data_tags"
219
178
  end
179
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
180
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling DataTagApi.search_data_tags, must be smaller than or equal to 10000.'
181
+ end
182
+
220
183
  # resource path
221
184
  local_var_path = "/data_tags/search"
222
185
 
223
186
  # query parameters
224
187
  query_params = {}
225
188
  query_params[:'query'] = query
189
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
226
190
 
227
191
  # header parameters
228
192
  header_params = {}
@@ -241,7 +205,7 @@ module Intrinio
241
205
  :form_params => form_params,
242
206
  :body => post_body,
243
207
  :auth_names => auth_names,
244
- :return_type => 'ApiResponseDataTags')
208
+ :return_type => 'ApiResponseDataTagsSearch')
245
209
  if @api_client.config.debugging
246
210
  @api_client.config.logger.debug "API called: DataTagApi#search_data_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
247
211
  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.1.0
6
+ OpenAPI spec version: 2.1.1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.0-SNAPSHOT
@@ -20,39 +20,45 @@ module Intrinio
20
20
  @api_client = api_client
21
21
  end
22
22
 
23
- # Filter Filings
24
- # Returns Filings that match the specified filters
23
+ # All Filings
24
+ # Returns all Filings. Returns Filings matching parameters when supplied.
25
25
  # @param company Filings for the given &#x60;company&#x60; identifier (ticker, CIK, LEI, Intrinio ID)
26
26
  # @param [Hash] opts the optional parameters
27
27
  # @option opts [String] :report_type Filter by report type
28
28
  # @option opts [Date] :start_date Filed on or after the given date
29
29
  # @option opts [Date] :end_date Filed before or after the given date
30
+ # @option opts [Float] :page_size The number of results to return (default to 100)
30
31
  # @option opts [String] :next_page Gets the next page of data from a previous API call
31
32
  # @return [ApiResponseFilings]
32
- def filter_filings(company, opts = {})
33
- data, _status_code, _headers = filter_filings_with_http_info(company, opts)
33
+ def get_all_filings(company, opts = {})
34
+ data, _status_code, _headers = get_all_filings_with_http_info(company, opts)
34
35
  return data
35
36
  end
36
37
 
37
- # Filter Filings
38
- # Returns Filings that match the specified filters
38
+ # All Filings
39
+ # Returns all Filings. Returns Filings matching parameters when supplied.
39
40
  # @param company Filings for the given &#x60;company&#x60; identifier (ticker, CIK, LEI, Intrinio ID)
40
41
  # @param [Hash] opts the optional parameters
41
42
  # @option opts [String] :report_type Filter by report type
42
43
  # @option opts [Date] :start_date Filed on or after the given date
43
44
  # @option opts [Date] :end_date Filed before or after the given date
45
+ # @option opts [Float] :page_size The number of results to return
44
46
  # @option opts [String] :next_page Gets the next page of data from a previous API call
45
47
  # @return [Array<(ApiResponseFilings, Fixnum, Hash)>] ApiResponseFilings data, response status code and response headers
46
- def filter_filings_with_http_info(company, opts = {})
48
+ def get_all_filings_with_http_info(company, opts = {})
47
49
  if @api_client.config.debugging
48
- @api_client.config.logger.debug "Calling API: FilingApi.filter_filings ..."
50
+ @api_client.config.logger.debug "Calling API: FilingApi.get_all_filings ..."
49
51
  end
50
52
  # verify the required parameter 'company' is set
51
53
  if @api_client.config.client_side_validation && company.nil?
52
- fail ArgumentError, "Missing the required parameter 'company' when calling FilingApi.filter_filings"
54
+ fail ArgumentError, "Missing the required parameter 'company' when calling FilingApi.get_all_filings"
55
+ end
56
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
57
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling FilingApi.get_all_filings, must be smaller than or equal to 10000.'
53
58
  end
59
+
54
60
  # resource path
55
- local_var_path = "/filings/filter"
61
+ local_var_path = "/filings"
56
62
 
57
63
  # query parameters
58
64
  query_params = {}
@@ -60,6 +66,7 @@ module Intrinio
60
66
  query_params[:'report_type'] = opts[:'report_type'] if !opts[:'report_type'].nil?
61
67
  query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
62
68
  query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
69
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
63
70
  query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
64
71
 
65
72
  # header parameters
@@ -81,13 +88,13 @@ module Intrinio
81
88
  :auth_names => auth_names,
82
89
  :return_type => 'ApiResponseFilings')
83
90
  if @api_client.config.debugging
84
- @api_client.config.logger.debug "API called: FilingApi#filter_filings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
91
+ @api_client.config.logger.debug "API called: FilingApi#get_all_filings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
85
92
  end
86
93
  return data, status_code, headers
87
94
  end
88
95
 
89
- # Filter Filing Notes
90
- # Returns Filing Notes that match the specified filters
96
+ # All Filing Notes
97
+ # Return all Notes from all Filings, most-recent first. Returns notes matching parameters when supplied.
91
98
  # @param [Hash] opts the optional parameters
92
99
  # @option opts [String] :company A Company identifier (Ticker, CIK, LEI, Intrinio ID)
93
100
  # @option opts [String] :report_type Notes contained in filings that match the given report type
@@ -95,15 +102,16 @@ module Intrinio
95
102
  # @option opts [Date] :filing_end_date Limit search to filings on or before this date
96
103
  # @option opts [Date] :period_ended_start_date Limit search to filings with a period end date on or after this date
97
104
  # @option opts [Date] :period_ended_end_date Limit search to filings with a period end date on or before this date
105
+ # @option opts [Float] :page_size The number of results to return (default to 100)
98
106
  # @option opts [String] :next_page Gets the next page of data from a previous API call
99
107
  # @return [ApiResponseFilingNotes]
100
- def filter_notes(opts = {})
101
- data, _status_code, _headers = filter_notes_with_http_info(opts)
108
+ def get_all_notes(opts = {})
109
+ data, _status_code, _headers = get_all_notes_with_http_info(opts)
102
110
  return data
103
111
  end
104
112
 
105
- # Filter Filing Notes
106
- # Returns Filing Notes that match the specified filters
113
+ # All Filing Notes
114
+ # Return all Notes from all Filings, most-recent first. Returns notes matching parameters when supplied.
107
115
  # @param [Hash] opts the optional parameters
108
116
  # @option opts [String] :company A Company identifier (Ticker, CIK, LEI, Intrinio ID)
109
117
  # @option opts [String] :report_type Notes contained in filings that match the given report type
@@ -111,17 +119,22 @@ module Intrinio
111
119
  # @option opts [Date] :filing_end_date Limit search to filings on or before this date
112
120
  # @option opts [Date] :period_ended_start_date Limit search to filings with a period end date on or after this date
113
121
  # @option opts [Date] :period_ended_end_date Limit search to filings with a period end date on or before this date
122
+ # @option opts [Float] :page_size The number of results to return
114
123
  # @option opts [String] :next_page Gets the next page of data from a previous API call
115
124
  # @return [Array<(ApiResponseFilingNotes, Fixnum, Hash)>] ApiResponseFilingNotes data, response status code and response headers
116
- def filter_notes_with_http_info(opts = {})
125
+ def get_all_notes_with_http_info(opts = {})
117
126
  if @api_client.config.debugging
118
- @api_client.config.logger.debug "Calling API: FilingApi.filter_notes ..."
127
+ @api_client.config.logger.debug "Calling API: FilingApi.get_all_notes ..."
119
128
  end
120
129
  if @api_client.config.client_side_validation && opts[:'report_type'] && !['10-Q', '10-K'].include?(opts[:'report_type'])
121
130
  fail ArgumentError, 'invalid value for "report_type", must be one of 10-Q, 10-K'
122
131
  end
132
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
133
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling FilingApi.get_all_notes, must be smaller than or equal to 10000.'
134
+ end
135
+
123
136
  # resource path
124
- local_var_path = "/filings/notes/filter"
137
+ local_var_path = "/filings/notes"
125
138
 
126
139
  # query parameters
127
140
  query_params = {}
@@ -131,106 +144,7 @@ module Intrinio
131
144
  query_params[:'filing_end_date'] = opts[:'filing_end_date'] if !opts[:'filing_end_date'].nil?
132
145
  query_params[:'period_ended_start_date'] = opts[:'period_ended_start_date'] if !opts[:'period_ended_start_date'].nil?
133
146
  query_params[:'period_ended_end_date'] = opts[:'period_ended_end_date'] if !opts[:'period_ended_end_date'].nil?
134
- query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
135
-
136
- # header parameters
137
- header_params = {}
138
- # HTTP header 'Accept' (if needed)
139
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
140
-
141
- # form parameters
142
- form_params = {}
143
-
144
- # http body (model)
145
- post_body = nil
146
- auth_names = ['ApiKeyAuth']
147
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
148
- :header_params => header_params,
149
- :query_params => query_params,
150
- :form_params => form_params,
151
- :body => post_body,
152
- :auth_names => auth_names,
153
- :return_type => 'ApiResponseFilingNotes')
154
- if @api_client.config.debugging
155
- @api_client.config.logger.debug "API called: FilingApi#filter_notes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
156
- end
157
- return data, status_code, headers
158
- end
159
-
160
- # All Filings
161
- # Returns all Filings
162
- # @param [Hash] opts the optional parameters
163
- # @option opts [String] :next_page Gets the next page of data from a previous API call
164
- # @return [ApiResponseFilings]
165
- def get_all_filings(opts = {})
166
- data, _status_code, _headers = get_all_filings_with_http_info(opts)
167
- return data
168
- end
169
-
170
- # All Filings
171
- # Returns all Filings
172
- # @param [Hash] opts the optional parameters
173
- # @option opts [String] :next_page Gets the next page of data from a previous API call
174
- # @return [Array<(ApiResponseFilings, Fixnum, Hash)>] ApiResponseFilings data, response status code and response headers
175
- def get_all_filings_with_http_info(opts = {})
176
- if @api_client.config.debugging
177
- @api_client.config.logger.debug "Calling API: FilingApi.get_all_filings ..."
178
- end
179
- # resource path
180
- local_var_path = "/filings"
181
-
182
- # query parameters
183
- query_params = {}
184
- query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
185
-
186
- # header parameters
187
- header_params = {}
188
- # HTTP header 'Accept' (if needed)
189
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
190
-
191
- # form parameters
192
- form_params = {}
193
-
194
- # http body (model)
195
- post_body = nil
196
- auth_names = ['ApiKeyAuth']
197
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
198
- :header_params => header_params,
199
- :query_params => query_params,
200
- :form_params => form_params,
201
- :body => post_body,
202
- :auth_names => auth_names,
203
- :return_type => 'ApiResponseFilings')
204
- if @api_client.config.debugging
205
- @api_client.config.logger.debug "API called: FilingApi#get_all_filings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
206
- end
207
- return data, status_code, headers
208
- end
209
-
210
- # All Filing Notes
211
- # Return all Notes from all Filings, most-recent first
212
- # @param [Hash] opts the optional parameters
213
- # @option opts [String] :next_page Gets the next page of data from a previous API call
214
- # @return [ApiResponseFilingNotes]
215
- def get_all_notes(opts = {})
216
- data, _status_code, _headers = get_all_notes_with_http_info(opts)
217
- return data
218
- end
219
-
220
- # All Filing Notes
221
- # Return all Notes from all Filings, most-recent first
222
- # @param [Hash] opts the optional parameters
223
- # @option opts [String] :next_page Gets the next page of data from a previous API call
224
- # @return [Array<(ApiResponseFilingNotes, Fixnum, Hash)>] ApiResponseFilingNotes data, response status code and response headers
225
- def get_all_notes_with_http_info(opts = {})
226
- if @api_client.config.debugging
227
- @api_client.config.logger.debug "Calling API: FilingApi.get_all_notes ..."
228
- end
229
- # resource path
230
- local_var_path = "/filings/notes"
231
-
232
- # query parameters
233
- query_params = {}
147
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
234
148
  query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
235
149
 
236
150
  # header parameters
@@ -482,6 +396,7 @@ module Intrinio
482
396
  # @option opts [Date] :filing_start_date Limit search to filings on or after this date
483
397
  # @option opts [Date] :filing_end_date Limit search to filings on or before this date
484
398
  # @option opts [Float] :page_size The number of results to return (default to 100)
399
+ # @option opts [Float] :page_size2 The number of results to return (default to 100)
485
400
  # @return [ApiResponseFilingNotesSearch]
486
401
  def search_notes(query, opts = {})
487
402
  data, _status_code, _headers = search_notes_with_http_info(query, opts)
@@ -495,6 +410,7 @@ module Intrinio
495
410
  # @option opts [Date] :filing_start_date Limit search to filings on or after this date
496
411
  # @option opts [Date] :filing_end_date Limit search to filings on or before this date
497
412
  # @option opts [Float] :page_size The number of results to return
413
+ # @option opts [Float] :page_size2 The number of results to return
498
414
  # @return [Array<(ApiResponseFilingNotesSearch, Fixnum, Hash)>] ApiResponseFilingNotesSearch data, response status code and response headers
499
415
  def search_notes_with_http_info(query, opts = {})
500
416
  if @api_client.config.debugging
@@ -508,6 +424,10 @@ module Intrinio
508
424
  fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling FilingApi.search_notes, must be smaller than or equal to 1000.'
509
425
  end
510
426
 
427
+ if @api_client.config.client_side_validation && !opts[:'page_size2'].nil? && opts[:'page_size2'] > 10000
428
+ fail ArgumentError, 'invalid value for "opts[:"page_size2"]" when calling FilingApi.search_notes, must be smaller than or equal to 10000.'
429
+ end
430
+
511
431
  # resource path
512
432
  local_var_path = "/filings/notes/search"
513
433
 
@@ -517,6 +437,7 @@ module Intrinio
517
437
  query_params[:'filing_start_date'] = opts[:'filing_start_date'] if !opts[:'filing_start_date'].nil?
518
438
  query_params[:'filing_end_date'] = opts[:'filing_end_date'] if !opts[:'filing_end_date'].nil?
519
439
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
440
+ query_params[:'page_size'] = opts[:'page_size2'] if !opts[:'page_size2'].nil?
520
441
 
521
442
  # header parameters
522
443
  header_params = {}