intrinio-sdk 1.0.0 → 1.1.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 +78 -52
- data/docs/ApiResponseFilingNotes.md +9 -0
- data/docs/ApiResponseFilingNotesSearch.md +8 -0
- data/docs/ApiResponseStockExchangeRealtimeStockPrices.md +9 -0
- data/docs/CompanyApi.md +34 -28
- data/docs/DataPointApi.md +4 -4
- data/docs/DataTagApi.md +5 -5
- data/docs/DividendRecord.md +17 -0
- data/docs/EarningsRecord.md +30 -0
- data/docs/FilingApi.md +273 -7
- data/docs/FilingNote.md +11 -0
- data/docs/FilingNoteFiling.md +11 -0
- data/docs/FilingNoteSummary.md +10 -0
- data/docs/FundamentalsApi.md +9 -9
- data/docs/HistoricalDataApi.md +2 -2
- data/docs/IndexApi.md +30 -30
- data/docs/RealtimeStockPrice.md +21 -0
- data/docs/RealtimeStockPriceSecurity.md +12 -0
- data/docs/SecurityApi.md +148 -17
- data/docs/StockExchangeApi.md +64 -15
- data/intrinio-sdk.gemspec +1 -1
- data/lib/intrinio-sdk.rb +11 -1
- data/lib/intrinio-sdk/api/company_api.rb +41 -35
- data/lib/intrinio-sdk/api/data_point_api.rb +5 -5
- data/lib/intrinio-sdk/api/data_tag_api.rb +7 -7
- data/lib/intrinio-sdk/api/filing_api.rb +364 -11
- data/lib/intrinio-sdk/api/fundamentals_api.rb +11 -11
- data/lib/intrinio-sdk/api/historical_data_api.rb +3 -3
- data/lib/intrinio-sdk/api/index_api.rb +31 -31
- data/lib/intrinio-sdk/api/security_api.rb +194 -23
- data/lib/intrinio-sdk/api/stock_exchange_api.rb +85 -23
- 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_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_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_filing_notes.rb +200 -0
- data/lib/intrinio-sdk/models/api_response_filing_notes_search.rb +190 -0
- 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_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_security_historical_data.rb +1 -1
- 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_standardized_financials.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_stock_exchange_realtime_stock_prices.rb +201 -0
- 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/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 +311 -0
- data/lib/intrinio-sdk/models/earnings_record.rb +465 -0
- 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 +218 -0
- data/lib/intrinio-sdk/models/filing_note_filing.rb +219 -0
- data/lib/intrinio-sdk/models/filing_note_summary.rb +208 -0
- 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 +1 -1
- data/lib/intrinio-sdk/models/historical_data.rb +1 -1
- data/lib/intrinio-sdk/models/realtime_stock_price.rb +318 -0
- data/lib/intrinio-sdk/models/realtime_stock_price_security.rb +229 -0
- 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/models/api_response_filing_notes_search_spec.rb +42 -0
- data/spec/models/api_response_filing_notes_spec.rb +48 -0
- data/spec/models/api_response_stock_exchange_realtime_stock_prices_spec.rb +48 -0
- data/spec/models/dividend_record_spec.rb +100 -0
- data/spec/models/earnings_record_spec.rb +186 -0
- data/spec/models/filing_note_filing_spec.rb +60 -0
- data/spec/models/filing_note_spec.rb +60 -0
- data/spec/models/filing_note_summary_spec.rb +54 -0
- data/spec/models/realtime_stock_price_security_spec.rb +66 -0
- data/spec/models/realtime_stock_price_spec.rb +120 -0
- metadata +43 -3
@@ -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
|
@@ -91,7 +91,7 @@ module Intrinio
|
|
91
91
|
return data, status_code, headers
|
92
92
|
end
|
93
93
|
|
94
|
-
#
|
94
|
+
# All Data Tags
|
95
95
|
# Returns All Data Tags
|
96
96
|
# @param [Hash] opts the optional parameters
|
97
97
|
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
@@ -101,7 +101,7 @@ module Intrinio
|
|
101
101
|
return data
|
102
102
|
end
|
103
103
|
|
104
|
-
#
|
104
|
+
# All Data Tags
|
105
105
|
# Returns All Data Tags
|
106
106
|
# @param [Hash] opts the optional parameters
|
107
107
|
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
@@ -141,8 +141,8 @@ module Intrinio
|
|
141
141
|
return data, status_code, headers
|
142
142
|
end
|
143
143
|
|
144
|
-
#
|
145
|
-
# Returns
|
144
|
+
# Lookup Data Tag
|
145
|
+
# Returns the Data Tag with the given `identifier`
|
146
146
|
# @param identifier The Intrinio ID or the code-name of the Data Tag
|
147
147
|
# @param [Hash] opts the optional parameters
|
148
148
|
# @return [DataTag]
|
@@ -151,8 +151,8 @@ module Intrinio
|
|
151
151
|
return data
|
152
152
|
end
|
153
153
|
|
154
|
-
#
|
155
|
-
# Returns
|
154
|
+
# Lookup Data Tag
|
155
|
+
# Returns the Data Tag with the given `identifier`
|
156
156
|
# @param identifier The Intrinio ID or the code-name of the Data Tag
|
157
157
|
# @param [Hash] opts the optional parameters
|
158
158
|
# @return [Array<(DataTag, Fixnum, Hash)>] DataTag data, response status code and response headers
|
@@ -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
|
@@ -21,7 +21,7 @@ module Intrinio
|
|
21
21
|
end
|
22
22
|
|
23
23
|
# Filter Filings
|
24
|
-
# Returns
|
24
|
+
# Returns Filings that match the specified filters
|
25
25
|
# @param company Filings for the given `company` 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
|
@@ -35,7 +35,7 @@ module Intrinio
|
|
35
35
|
end
|
36
36
|
|
37
37
|
# Filter Filings
|
38
|
-
# Returns
|
38
|
+
# Returns Filings that match the specified filters
|
39
39
|
# @param company Filings for the given `company` identifier (ticker, CIK, LEI, Intrinio ID)
|
40
40
|
# @param [Hash] opts the optional parameters
|
41
41
|
# @option opts [String] :report_type Filter by report type
|
@@ -86,8 +86,79 @@ module Intrinio
|
|
86
86
|
return data, status_code, headers
|
87
87
|
end
|
88
88
|
|
89
|
-
#
|
90
|
-
# Returns
|
89
|
+
# Filter SEC filing notes
|
90
|
+
# Returns SEC filing notes matching the supplied criteria
|
91
|
+
# @param [Hash] opts the optional parameters
|
92
|
+
# @option opts [String] :company A Company identifier (Ticker, CIK, LEI, Intrinio ID)
|
93
|
+
# @option opts [String] :report_type Notes contained in filings that match the given report type
|
94
|
+
# @option opts [Date] :filing_start_date Limit search to filings on or after this date
|
95
|
+
# @option opts [Date] :filing_end_date Limit search to filings on or before this date
|
96
|
+
# @option opts [Date] :period_ended_start_date Limit search to filings with a period end date on or after this date
|
97
|
+
# @option opts [Date] :period_ended_end_date Limit search to filings with a period end date on or before this date
|
98
|
+
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
99
|
+
# @return [ApiResponseFilingNotes]
|
100
|
+
def filter_notes(opts = {})
|
101
|
+
data, _status_code, _headers = filter_notes_with_http_info(opts)
|
102
|
+
return data
|
103
|
+
end
|
104
|
+
|
105
|
+
# Filter SEC filing notes
|
106
|
+
# Returns SEC filing notes matching the supplied criteria
|
107
|
+
# @param [Hash] opts the optional parameters
|
108
|
+
# @option opts [String] :company A Company identifier (Ticker, CIK, LEI, Intrinio ID)
|
109
|
+
# @option opts [String] :report_type Notes contained in filings that match the given report type
|
110
|
+
# @option opts [Date] :filing_start_date Limit search to filings on or after this date
|
111
|
+
# @option opts [Date] :filing_end_date Limit search to filings on or before this date
|
112
|
+
# @option opts [Date] :period_ended_start_date Limit search to filings with a period end date on or after this date
|
113
|
+
# @option opts [Date] :period_ended_end_date Limit search to filings with a period end date on or before this date
|
114
|
+
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
115
|
+
# @return [Array<(ApiResponseFilingNotes, Fixnum, Hash)>] ApiResponseFilingNotes data, response status code and response headers
|
116
|
+
def filter_notes_with_http_info(opts = {})
|
117
|
+
if @api_client.config.debugging
|
118
|
+
@api_client.config.logger.debug "Calling API: FilingApi.filter_notes ..."
|
119
|
+
end
|
120
|
+
if @api_client.config.client_side_validation && opts[:'report_type'] && !['10-Q', '10-K'].include?(opts[:'report_type'])
|
121
|
+
fail ArgumentError, 'invalid value for "report_type", must be one of 10-Q, 10-K'
|
122
|
+
end
|
123
|
+
# resource path
|
124
|
+
local_var_path = "/filings/notes/filter"
|
125
|
+
|
126
|
+
# query parameters
|
127
|
+
query_params = {}
|
128
|
+
query_params[:'company'] = opts[:'company'] if !opts[:'company'].nil?
|
129
|
+
query_params[:'report_type'] = opts[:'report_type'] if !opts[:'report_type'].nil?
|
130
|
+
query_params[:'filing_start_date'] = opts[:'filing_start_date'] if !opts[:'filing_start_date'].nil?
|
131
|
+
query_params[:'filing_end_date'] = opts[:'filing_end_date'] if !opts[:'filing_end_date'].nil?
|
132
|
+
query_params[:'period_ended_start_date'] = opts[:'period_ended_start_date'] if !opts[:'period_ended_start_date'].nil?
|
133
|
+
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
|
91
162
|
# @param [Hash] opts the optional parameters
|
92
163
|
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
93
164
|
# @return [ApiResponseFilings]
|
@@ -96,8 +167,8 @@ module Intrinio
|
|
96
167
|
return data
|
97
168
|
end
|
98
169
|
|
99
|
-
#
|
100
|
-
# Returns all
|
170
|
+
# All Filings
|
171
|
+
# Returns all Filings
|
101
172
|
# @param [Hash] opts the optional parameters
|
102
173
|
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
103
174
|
# @return [Array<(ApiResponseFilings, Fixnum, Hash)>] ApiResponseFilings data, response status code and response headers
|
@@ -136,8 +207,58 @@ module Intrinio
|
|
136
207
|
return data, status_code, headers
|
137
208
|
end
|
138
209
|
|
139
|
-
# Get
|
140
|
-
# Return
|
210
|
+
# Get All SEC filing notes
|
211
|
+
# Return All notes from SEC 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
|
+
# Get All SEC filing notes
|
221
|
+
# Return All notes from SEC 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 = {}
|
234
|
+
query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
|
235
|
+
|
236
|
+
# header parameters
|
237
|
+
header_params = {}
|
238
|
+
# HTTP header 'Accept' (if needed)
|
239
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
240
|
+
|
241
|
+
# form parameters
|
242
|
+
form_params = {}
|
243
|
+
|
244
|
+
# http body (model)
|
245
|
+
post_body = nil
|
246
|
+
auth_names = ['ApiKeyAuth']
|
247
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
248
|
+
:header_params => header_params,
|
249
|
+
:query_params => query_params,
|
250
|
+
:form_params => form_params,
|
251
|
+
:body => post_body,
|
252
|
+
:auth_names => auth_names,
|
253
|
+
:return_type => 'ApiResponseFilingNotes')
|
254
|
+
if @api_client.config.debugging
|
255
|
+
@api_client.config.logger.debug "API called: FilingApi#get_all_notes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
256
|
+
end
|
257
|
+
return data, status_code, headers
|
258
|
+
end
|
259
|
+
|
260
|
+
# Lookup Filing
|
261
|
+
# Returns the Filing with the given `identifier`
|
141
262
|
# @param id The Intrinio ID of the Filing
|
142
263
|
# @param [Hash] opts the optional parameters
|
143
264
|
# @return [Filing]
|
@@ -146,8 +267,8 @@ module Intrinio
|
|
146
267
|
return data
|
147
268
|
end
|
148
269
|
|
149
|
-
#
|
150
|
-
#
|
270
|
+
# Lookup Filing
|
271
|
+
# Returns the Filing with the given `identifier`
|
151
272
|
# @param id The Intrinio ID of the Filing
|
152
273
|
# @param [Hash] opts the optional parameters
|
153
274
|
# @return [Array<(Filing, Fixnum, Hash)>] Filing data, response status code and response headers
|
@@ -188,5 +309,237 @@ module Intrinio
|
|
188
309
|
end
|
189
310
|
return data, status_code, headers
|
190
311
|
end
|
312
|
+
|
313
|
+
# Get an SEC filing note by ID
|
314
|
+
#
|
315
|
+
# @param identifier The Intrinio ID of the filing note
|
316
|
+
# @param [Hash] opts the optional parameters
|
317
|
+
# @option opts [String] :content_format Returns content in html (as filed) or plain text (default to text)
|
318
|
+
# @return [FilingNote]
|
319
|
+
def get_note(identifier, opts = {})
|
320
|
+
data, _status_code, _headers = get_note_with_http_info(identifier, opts)
|
321
|
+
return data
|
322
|
+
end
|
323
|
+
|
324
|
+
# Get an SEC filing note by ID
|
325
|
+
#
|
326
|
+
# @param identifier The Intrinio ID of the filing note
|
327
|
+
# @param [Hash] opts the optional parameters
|
328
|
+
# @option opts [String] :content_format Returns content in html (as filed) or plain text
|
329
|
+
# @return [Array<(FilingNote, Fixnum, Hash)>] FilingNote data, response status code and response headers
|
330
|
+
def get_note_with_http_info(identifier, opts = {})
|
331
|
+
if @api_client.config.debugging
|
332
|
+
@api_client.config.logger.debug "Calling API: FilingApi.get_note ..."
|
333
|
+
end
|
334
|
+
# verify the required parameter 'identifier' is set
|
335
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
336
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling FilingApi.get_note"
|
337
|
+
end
|
338
|
+
if @api_client.config.client_side_validation && opts[:'content_format'] && !['text', 'html'].include?(opts[:'content_format'])
|
339
|
+
fail ArgumentError, 'invalid value for "content_format", must be one of text, html'
|
340
|
+
end
|
341
|
+
# resource path
|
342
|
+
local_var_path = "/filings/notes/{identifier}".sub('{' + 'identifier' + '}', identifier.to_s)
|
343
|
+
|
344
|
+
# query parameters
|
345
|
+
query_params = {}
|
346
|
+
query_params[:'content_format'] = opts[:'content_format'] if !opts[:'content_format'].nil?
|
347
|
+
|
348
|
+
# header parameters
|
349
|
+
header_params = {}
|
350
|
+
# HTTP header 'Accept' (if needed)
|
351
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
352
|
+
|
353
|
+
# form parameters
|
354
|
+
form_params = {}
|
355
|
+
|
356
|
+
# http body (model)
|
357
|
+
post_body = nil
|
358
|
+
auth_names = ['ApiKeyAuth']
|
359
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
360
|
+
:header_params => header_params,
|
361
|
+
:query_params => query_params,
|
362
|
+
:form_params => form_params,
|
363
|
+
:body => post_body,
|
364
|
+
:auth_names => auth_names,
|
365
|
+
:return_type => 'FilingNote')
|
366
|
+
if @api_client.config.debugging
|
367
|
+
@api_client.config.logger.debug "API called: FilingApi#get_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
368
|
+
end
|
369
|
+
return data, status_code, headers
|
370
|
+
end
|
371
|
+
|
372
|
+
# Returns the content of an SEC filing note as originally filed
|
373
|
+
#
|
374
|
+
# @param identifier The Intrinio ID of the filing note
|
375
|
+
# @param [Hash] opts the optional parameters
|
376
|
+
# @return [String]
|
377
|
+
def get_note_html(identifier, opts = {})
|
378
|
+
data, _status_code, _headers = get_note_html_with_http_info(identifier, opts)
|
379
|
+
return data
|
380
|
+
end
|
381
|
+
|
382
|
+
# Returns the content of an SEC filing note as originally filed
|
383
|
+
#
|
384
|
+
# @param identifier The Intrinio ID of the filing note
|
385
|
+
# @param [Hash] opts the optional parameters
|
386
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
387
|
+
def get_note_html_with_http_info(identifier, opts = {})
|
388
|
+
if @api_client.config.debugging
|
389
|
+
@api_client.config.logger.debug "Calling API: FilingApi.get_note_html ..."
|
390
|
+
end
|
391
|
+
# verify the required parameter 'identifier' is set
|
392
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
393
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling FilingApi.get_note_html"
|
394
|
+
end
|
395
|
+
# resource path
|
396
|
+
local_var_path = "/filings/notes/{identifier}/html".sub('{' + 'identifier' + '}', identifier.to_s)
|
397
|
+
|
398
|
+
# query parameters
|
399
|
+
query_params = {}
|
400
|
+
|
401
|
+
# header parameters
|
402
|
+
header_params = {}
|
403
|
+
# HTTP header 'Accept' (if needed)
|
404
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain; charset=utf-8'])
|
405
|
+
|
406
|
+
# form parameters
|
407
|
+
form_params = {}
|
408
|
+
|
409
|
+
# http body (model)
|
410
|
+
post_body = nil
|
411
|
+
auth_names = ['ApiKeyAuth']
|
412
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
413
|
+
:header_params => header_params,
|
414
|
+
:query_params => query_params,
|
415
|
+
:form_params => form_params,
|
416
|
+
:body => post_body,
|
417
|
+
:auth_names => auth_names,
|
418
|
+
:return_type => 'String')
|
419
|
+
if @api_client.config.debugging
|
420
|
+
@api_client.config.logger.debug "API called: FilingApi#get_note_html\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
421
|
+
end
|
422
|
+
return data, status_code, headers
|
423
|
+
end
|
424
|
+
|
425
|
+
# Returns the content of an SEC filing note stripped of HTML
|
426
|
+
#
|
427
|
+
# @param identifier The Intrinio ID of the filing note
|
428
|
+
# @param [Hash] opts the optional parameters
|
429
|
+
# @return [String]
|
430
|
+
def get_note_text(identifier, opts = {})
|
431
|
+
data, _status_code, _headers = get_note_text_with_http_info(identifier, opts)
|
432
|
+
return data
|
433
|
+
end
|
434
|
+
|
435
|
+
# Returns the content of an SEC filing note stripped of HTML
|
436
|
+
#
|
437
|
+
# @param identifier The Intrinio ID of the filing note
|
438
|
+
# @param [Hash] opts the optional parameters
|
439
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
440
|
+
def get_note_text_with_http_info(identifier, opts = {})
|
441
|
+
if @api_client.config.debugging
|
442
|
+
@api_client.config.logger.debug "Calling API: FilingApi.get_note_text ..."
|
443
|
+
end
|
444
|
+
# verify the required parameter 'identifier' is set
|
445
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
446
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling FilingApi.get_note_text"
|
447
|
+
end
|
448
|
+
# resource path
|
449
|
+
local_var_path = "/filings/notes/{identifier}/text".sub('{' + 'identifier' + '}', identifier.to_s)
|
450
|
+
|
451
|
+
# query parameters
|
452
|
+
query_params = {}
|
453
|
+
|
454
|
+
# header parameters
|
455
|
+
header_params = {}
|
456
|
+
# HTTP header 'Accept' (if needed)
|
457
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain; charset=utf-8'])
|
458
|
+
|
459
|
+
# form parameters
|
460
|
+
form_params = {}
|
461
|
+
|
462
|
+
# http body (model)
|
463
|
+
post_body = nil
|
464
|
+
auth_names = ['ApiKeyAuth']
|
465
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
466
|
+
:header_params => header_params,
|
467
|
+
:query_params => query_params,
|
468
|
+
:form_params => form_params,
|
469
|
+
:body => post_body,
|
470
|
+
:auth_names => auth_names,
|
471
|
+
:return_type => 'String')
|
472
|
+
if @api_client.config.debugging
|
473
|
+
@api_client.config.logger.debug "API called: FilingApi#get_note_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
474
|
+
end
|
475
|
+
return data, status_code, headers
|
476
|
+
end
|
477
|
+
|
478
|
+
# Search Filing Notes
|
479
|
+
# Searches SEC filing notes using the text in `query`
|
480
|
+
# @param query Search for notes that contain all or parts of this text
|
481
|
+
# @param [Hash] opts the optional parameters
|
482
|
+
# @option opts [Date] :filing_start_date Limit search to filings on or after this date
|
483
|
+
# @option opts [Date] :filing_end_date Limit search to filings on or before this date
|
484
|
+
# @option opts [Float] :page_size The number of results to return (default to 100)
|
485
|
+
# @return [ApiResponseFilingNotesSearch]
|
486
|
+
def search_notes(query, opts = {})
|
487
|
+
data, _status_code, _headers = search_notes_with_http_info(query, opts)
|
488
|
+
return data
|
489
|
+
end
|
490
|
+
|
491
|
+
# Search Filing Notes
|
492
|
+
# Searches SEC filing notes using the text in `query`
|
493
|
+
# @param query Search for notes that contain all or parts of this text
|
494
|
+
# @param [Hash] opts the optional parameters
|
495
|
+
# @option opts [Date] :filing_start_date Limit search to filings on or after this date
|
496
|
+
# @option opts [Date] :filing_end_date Limit search to filings on or before this date
|
497
|
+
# @option opts [Float] :page_size The number of results to return
|
498
|
+
# @return [Array<(ApiResponseFilingNotesSearch, Fixnum, Hash)>] ApiResponseFilingNotesSearch data, response status code and response headers
|
499
|
+
def search_notes_with_http_info(query, opts = {})
|
500
|
+
if @api_client.config.debugging
|
501
|
+
@api_client.config.logger.debug "Calling API: FilingApi.search_notes ..."
|
502
|
+
end
|
503
|
+
# verify the required parameter 'query' is set
|
504
|
+
if @api_client.config.client_side_validation && query.nil?
|
505
|
+
fail ArgumentError, "Missing the required parameter 'query' when calling FilingApi.search_notes"
|
506
|
+
end
|
507
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
|
508
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling FilingApi.search_notes, must be smaller than or equal to 1000.'
|
509
|
+
end
|
510
|
+
|
511
|
+
# resource path
|
512
|
+
local_var_path = "/filings/notes/search"
|
513
|
+
|
514
|
+
# query parameters
|
515
|
+
query_params = {}
|
516
|
+
query_params[:'query'] = query
|
517
|
+
query_params[:'filing_start_date'] = opts[:'filing_start_date'] if !opts[:'filing_start_date'].nil?
|
518
|
+
query_params[:'filing_end_date'] = opts[:'filing_end_date'] if !opts[:'filing_end_date'].nil?
|
519
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
520
|
+
|
521
|
+
# header parameters
|
522
|
+
header_params = {}
|
523
|
+
# HTTP header 'Accept' (if needed)
|
524
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
525
|
+
|
526
|
+
# form parameters
|
527
|
+
form_params = {}
|
528
|
+
|
529
|
+
# http body (model)
|
530
|
+
post_body = nil
|
531
|
+
auth_names = ['ApiKeyAuth']
|
532
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
533
|
+
:header_params => header_params,
|
534
|
+
:query_params => query_params,
|
535
|
+
:form_params => form_params,
|
536
|
+
:body => post_body,
|
537
|
+
:auth_names => auth_names,
|
538
|
+
:return_type => 'ApiResponseFilingNotesSearch')
|
539
|
+
if @api_client.config.debugging
|
540
|
+
@api_client.config.logger.debug "API called: FilingApi#search_notes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
541
|
+
end
|
542
|
+
return data, status_code, headers
|
543
|
+
end
|
191
544
|
end
|
192
545
|
end
|