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
|
@@ -21,7 +21,7 @@ module Intrinio
|
|
21
21
|
end
|
22
22
|
|
23
23
|
# Filter Stock Exchanges
|
24
|
-
#
|
24
|
+
# Returns Stock Exchanges matching the given filters
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @option opts [String] :city Filter by city
|
27
27
|
# @option opts [String] :country Filter by country
|
@@ -33,7 +33,7 @@ module Intrinio
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# Filter Stock Exchanges
|
36
|
-
#
|
36
|
+
# Returns Stock Exchanges matching the given filters
|
37
37
|
# @param [Hash] opts the optional parameters
|
38
38
|
# @option opts [String] :city Filter by city
|
39
39
|
# @option opts [String] :country Filter by country
|
@@ -76,8 +76,8 @@ module Intrinio
|
|
76
76
|
return data, status_code, headers
|
77
77
|
end
|
78
78
|
|
79
|
-
#
|
80
|
-
#
|
79
|
+
# All Stock Exchanges
|
80
|
+
# Returns all Stock Exchanges
|
81
81
|
# @param [Hash] opts the optional parameters
|
82
82
|
# @return [ApiResponseStockExchanges]
|
83
83
|
def get_all_stock_exchanges(opts = {})
|
@@ -85,8 +85,8 @@ module Intrinio
|
|
85
85
|
return data
|
86
86
|
end
|
87
87
|
|
88
|
-
#
|
89
|
-
#
|
88
|
+
# All Stock Exchanges
|
89
|
+
# Returns all Stock Exchanges
|
90
90
|
# @param [Hash] opts the optional parameters
|
91
91
|
# @return [Array<(ApiResponseStockExchanges, Fixnum, Hash)>] ApiResponseStockExchanges data, response status code and response headers
|
92
92
|
def get_all_stock_exchanges_with_http_info(opts = {})
|
@@ -123,8 +123,8 @@ module Intrinio
|
|
123
123
|
return data, status_code, headers
|
124
124
|
end
|
125
125
|
|
126
|
-
#
|
127
|
-
#
|
126
|
+
# Lookup Stock Exchange
|
127
|
+
# Returns the Stock Exchange with the given `identifier`
|
128
128
|
# @param identifier A Stock Exchange identifier (MIC or Intrinio ID)
|
129
129
|
# @param [Hash] opts the optional parameters
|
130
130
|
# @return [StockExchange]
|
@@ -133,8 +133,8 @@ module Intrinio
|
|
133
133
|
return data
|
134
134
|
end
|
135
135
|
|
136
|
-
#
|
137
|
-
#
|
136
|
+
# Lookup Stock Exchange
|
137
|
+
# Returns the Stock Exchange with the given `identifier`
|
138
138
|
# @param identifier A Stock Exchange identifier (MIC or Intrinio ID)
|
139
139
|
# @param [Hash] opts the optional parameters
|
140
140
|
# @return [Array<(StockExchange, Fixnum, Hash)>] StockExchange data, response status code and response headers
|
@@ -176,8 +176,8 @@ module Intrinio
|
|
176
176
|
return data, status_code, headers
|
177
177
|
end
|
178
178
|
|
179
|
-
#
|
180
|
-
#
|
179
|
+
# Stock Price Adjustments by Exchange
|
180
|
+
# Returns stock price adjustments for the Stock Exchange with the given `identifier`
|
181
181
|
# @param identifier A Stock Exchange identifier (MIC or Intrinio ID)
|
182
182
|
# @param [Hash] opts the optional parameters
|
183
183
|
# @option opts [Date] :date The date for which to return price adjustments
|
@@ -188,8 +188,8 @@ module Intrinio
|
|
188
188
|
return data
|
189
189
|
end
|
190
190
|
|
191
|
-
#
|
192
|
-
#
|
191
|
+
# Stock Price Adjustments by Exchange
|
192
|
+
# Returns stock price adjustments for the Stock Exchange with the given `identifier`
|
193
193
|
# @param identifier A Stock Exchange identifier (MIC or Intrinio ID)
|
194
194
|
# @param [Hash] opts the optional parameters
|
195
195
|
# @option opts [Date] :date The date for which to return price adjustments
|
@@ -235,8 +235,8 @@ module Intrinio
|
|
235
235
|
return data, status_code, headers
|
236
236
|
end
|
237
237
|
|
238
|
-
#
|
239
|
-
#
|
238
|
+
# Stock Prices by Exchange
|
239
|
+
# Returns end-of-day stock prices for Securities on the Stock Exchange with `identifier` and on the `price_date` (or the latest date that prices are available)
|
240
240
|
# @param identifier A Stock Exchange identifier (MIC or Intrinio ID)
|
241
241
|
# @param [Hash] opts the optional parameters
|
242
242
|
# @option opts [Date] :date The date for which to return prices
|
@@ -247,8 +247,8 @@ module Intrinio
|
|
247
247
|
return data
|
248
248
|
end
|
249
249
|
|
250
|
-
#
|
251
|
-
#
|
250
|
+
# Stock Prices by Exchange
|
251
|
+
# Returns end-of-day stock prices for Securities on the Stock Exchange with `identifier` and on the `price_date` (or the latest date that prices are available)
|
252
252
|
# @param identifier A Stock Exchange identifier (MIC or Intrinio ID)
|
253
253
|
# @param [Hash] opts the optional parameters
|
254
254
|
# @option opts [Date] :date The date for which to return prices
|
@@ -294,8 +294,70 @@ module Intrinio
|
|
294
294
|
return data, status_code, headers
|
295
295
|
end
|
296
296
|
|
297
|
-
#
|
298
|
-
#
|
297
|
+
# Realtime Stock Prices by Exchange
|
298
|
+
# Returns realtime stock prices for the Stock Exchange with the given `identifier`
|
299
|
+
# @param identifier A Stock Exchange identifier (MIC or Intrinio ID)
|
300
|
+
# @param [Hash] opts the optional parameters
|
301
|
+
# @option opts [String] :source Return realtime prices from the specified data source
|
302
|
+
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
303
|
+
# @return [ApiResponseStockExchangeRealtimeStockPrices]
|
304
|
+
def get_stock_exchange_realtime_prices(identifier, opts = {})
|
305
|
+
data, _status_code, _headers = get_stock_exchange_realtime_prices_with_http_info(identifier, opts)
|
306
|
+
return data
|
307
|
+
end
|
308
|
+
|
309
|
+
# Realtime Stock Prices by Exchange
|
310
|
+
# Returns realtime stock prices for the Stock Exchange with the given `identifier`
|
311
|
+
# @param identifier A Stock Exchange identifier (MIC or Intrinio ID)
|
312
|
+
# @param [Hash] opts the optional parameters
|
313
|
+
# @option opts [String] :source Return realtime prices from the specified data source
|
314
|
+
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
315
|
+
# @return [Array<(ApiResponseStockExchangeRealtimeStockPrices, Fixnum, Hash)>] ApiResponseStockExchangeRealtimeStockPrices data, response status code and response headers
|
316
|
+
def get_stock_exchange_realtime_prices_with_http_info(identifier, opts = {})
|
317
|
+
if @api_client.config.debugging
|
318
|
+
@api_client.config.logger.debug "Calling API: StockExchangeApi.get_stock_exchange_realtime_prices ..."
|
319
|
+
end
|
320
|
+
# verify the required parameter 'identifier' is set
|
321
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
322
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling StockExchangeApi.get_stock_exchange_realtime_prices"
|
323
|
+
end
|
324
|
+
if @api_client.config.client_side_validation && opts[:'source'] && !['iex', 'bats', 'bats_delayed'].include?(opts[:'source'])
|
325
|
+
fail ArgumentError, 'invalid value for "source", must be one of iex, bats, bats_delayed'
|
326
|
+
end
|
327
|
+
# resource path
|
328
|
+
local_var_path = "/stock_exchanges/{identifier}/prices/realtime".sub('{' + 'identifier' + '}', identifier.to_s)
|
329
|
+
|
330
|
+
# query parameters
|
331
|
+
query_params = {}
|
332
|
+
query_params[:'source'] = opts[:'source'] if !opts[:'source'].nil?
|
333
|
+
query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
|
334
|
+
|
335
|
+
# header parameters
|
336
|
+
header_params = {}
|
337
|
+
# HTTP header 'Accept' (if needed)
|
338
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
339
|
+
|
340
|
+
# form parameters
|
341
|
+
form_params = {}
|
342
|
+
|
343
|
+
# http body (model)
|
344
|
+
post_body = nil
|
345
|
+
auth_names = ['ApiKeyAuth']
|
346
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
347
|
+
:header_params => header_params,
|
348
|
+
:query_params => query_params,
|
349
|
+
:form_params => form_params,
|
350
|
+
:body => post_body,
|
351
|
+
:auth_names => auth_names,
|
352
|
+
:return_type => 'ApiResponseStockExchangeRealtimeStockPrices')
|
353
|
+
if @api_client.config.debugging
|
354
|
+
@api_client.config.logger.debug "API called: StockExchangeApi#get_stock_exchange_realtime_prices\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
355
|
+
end
|
356
|
+
return data, status_code, headers
|
357
|
+
end
|
358
|
+
|
359
|
+
# Securities by Exchange
|
360
|
+
# Returns Securities traded on the Stock Exchange with `identifier`
|
299
361
|
# @param identifier A Stock Exchange identifier (MIC or Intrinio ID)
|
300
362
|
# @param [Hash] opts the optional parameters
|
301
363
|
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
@@ -305,8 +367,8 @@ module Intrinio
|
|
305
367
|
return data
|
306
368
|
end
|
307
369
|
|
308
|
-
#
|
309
|
-
#
|
370
|
+
# Securities by Exchange
|
371
|
+
# Returns Securities traded on the Stock Exchange with `identifier`
|
310
372
|
# @param identifier A Stock Exchange identifier (MIC or Intrinio ID)
|
311
373
|
# @param [Hash] opts the optional parameters
|
312
374
|
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -0,0 +1,200 @@
|
|
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 'date'
|
14
|
+
|
15
|
+
module Intrinio
|
16
|
+
|
17
|
+
class ApiResponseFilingNotes
|
18
|
+
attr_accessor :filing_notes
|
19
|
+
|
20
|
+
# The token required to request the next page of the data
|
21
|
+
attr_accessor :next_page
|
22
|
+
|
23
|
+
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
25
|
+
def self.attribute_map
|
26
|
+
{
|
27
|
+
:'filing_notes' => :'filing_notes',
|
28
|
+
:'next_page' => :'next_page'
|
29
|
+
}
|
30
|
+
end
|
31
|
+
|
32
|
+
# Attribute type mapping.
|
33
|
+
def self.swagger_types
|
34
|
+
{
|
35
|
+
:'filing_notes' => :'Array<FilingNoteSummary>',
|
36
|
+
:'next_page' => :'String'
|
37
|
+
}
|
38
|
+
end
|
39
|
+
|
40
|
+
# Initializes the object
|
41
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
42
|
+
def initialize(attributes = {})
|
43
|
+
return unless attributes.is_a?(Hash)
|
44
|
+
|
45
|
+
# convert string to symbol for hash key
|
46
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
47
|
+
|
48
|
+
if attributes.has_key?(:'filing_notes')
|
49
|
+
if (value = attributes[:'filing_notes']).is_a?(Array)
|
50
|
+
self.filing_notes = value
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
if attributes.has_key?(:'next_page')
|
55
|
+
self.next_page = attributes[:'next_page']
|
56
|
+
end
|
57
|
+
|
58
|
+
end
|
59
|
+
|
60
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
61
|
+
# @return Array for valid properties with the reasons
|
62
|
+
def list_invalid_properties
|
63
|
+
invalid_properties = Array.new
|
64
|
+
return invalid_properties
|
65
|
+
end
|
66
|
+
|
67
|
+
# Check to see if the all the properties in the model are valid
|
68
|
+
# @return true if the model is valid
|
69
|
+
def valid?
|
70
|
+
return true
|
71
|
+
end
|
72
|
+
|
73
|
+
# Checks equality by comparing each attribute.
|
74
|
+
# @param [Object] Object to be compared
|
75
|
+
def ==(o)
|
76
|
+
return true if self.equal?(o)
|
77
|
+
self.class == o.class &&
|
78
|
+
filing_notes == o.filing_notes &&
|
79
|
+
next_page == o.next_page
|
80
|
+
end
|
81
|
+
|
82
|
+
# @see the `==` method
|
83
|
+
# @param [Object] Object to be compared
|
84
|
+
def eql?(o)
|
85
|
+
self == o
|
86
|
+
end
|
87
|
+
|
88
|
+
# Calculates hash code according to all attributes.
|
89
|
+
# @return [Fixnum] Hash code
|
90
|
+
def hash
|
91
|
+
[filing_notes, next_page].hash
|
92
|
+
end
|
93
|
+
|
94
|
+
# Builds the object from hash
|
95
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
96
|
+
# @return [Object] Returns the model itself
|
97
|
+
def build_from_hash(attributes)
|
98
|
+
return nil unless attributes.is_a?(Hash)
|
99
|
+
self.class.swagger_types.each_pair do |key, type|
|
100
|
+
if type =~ /\AArray<(.*)>/i
|
101
|
+
# check to ensure the input is an array given that the the attribute
|
102
|
+
# is documented as an array but the input is not
|
103
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
104
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
105
|
+
end
|
106
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
107
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
108
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
109
|
+
end
|
110
|
+
|
111
|
+
self
|
112
|
+
end
|
113
|
+
|
114
|
+
# Deserializes the data based on type
|
115
|
+
# @param string type Data type
|
116
|
+
# @param string value Value to be deserialized
|
117
|
+
# @return [Object] Deserialized data
|
118
|
+
def _deserialize(type, value)
|
119
|
+
case type.to_sym
|
120
|
+
when :DateTime
|
121
|
+
DateTime.parse(value)
|
122
|
+
when :Date
|
123
|
+
Date.parse(value)
|
124
|
+
when :String
|
125
|
+
value.to_s
|
126
|
+
when :Integer
|
127
|
+
value.to_i
|
128
|
+
when :Float
|
129
|
+
value.to_f
|
130
|
+
when :BOOLEAN
|
131
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
132
|
+
true
|
133
|
+
else
|
134
|
+
false
|
135
|
+
end
|
136
|
+
when :Object
|
137
|
+
# generic object (usually a Hash), return directly
|
138
|
+
value
|
139
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
140
|
+
inner_type = Regexp.last_match[:inner_type]
|
141
|
+
value.map { |v| _deserialize(inner_type, v) }
|
142
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
143
|
+
k_type = Regexp.last_match[:k_type]
|
144
|
+
v_type = Regexp.last_match[:v_type]
|
145
|
+
{}.tap do |hash|
|
146
|
+
value.each do |k, v|
|
147
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
148
|
+
end
|
149
|
+
end
|
150
|
+
else # model
|
151
|
+
temp_model = Intrinio.const_get(type).new
|
152
|
+
temp_model.build_from_hash(value)
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
# Returns the string representation of the object
|
157
|
+
# @return [String] String presentation of the object
|
158
|
+
def to_s
|
159
|
+
to_hash.to_s
|
160
|
+
end
|
161
|
+
|
162
|
+
# to_body is an alias to to_hash (backward compatibility)
|
163
|
+
# @return [Hash] Returns the object in the form of hash
|
164
|
+
def to_body
|
165
|
+
to_hash
|
166
|
+
end
|
167
|
+
|
168
|
+
# Returns the object in the form of hash
|
169
|
+
# @return [Hash] Returns the object in the form of hash
|
170
|
+
def to_hash
|
171
|
+
hash = {}
|
172
|
+
self.class.attribute_map.each_pair do |attr, param|
|
173
|
+
value = self.send(attr)
|
174
|
+
next if value.nil?
|
175
|
+
hash[param] = _to_hash(value)
|
176
|
+
end
|
177
|
+
hash
|
178
|
+
end
|
179
|
+
|
180
|
+
# Outputs non-array value in the form of hash
|
181
|
+
# For object, use to_hash. Otherwise, just return the value
|
182
|
+
# @param [Object] value Any valid value
|
183
|
+
# @return [Hash] Returns the value in the form of hash
|
184
|
+
def _to_hash(value)
|
185
|
+
if value.is_a?(Array)
|
186
|
+
value.compact.map{ |v| _to_hash(v) }
|
187
|
+
elsif value.is_a?(Hash)
|
188
|
+
{}.tap do |hash|
|
189
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
190
|
+
end
|
191
|
+
elsif value.respond_to? :to_hash
|
192
|
+
value.to_hash
|
193
|
+
else
|
194
|
+
value
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
end
|
199
|
+
|
200
|
+
end
|