intrinio-sdk 1.1.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +18 -8
- data/docs/ApiResponseCompaniesSearch.md +8 -0
- data/docs/ApiResponseDataTagsSearch.md +8 -0
- data/docs/ApiResponseEconomicIndicesSearch.md +8 -0
- data/docs/ApiResponseMunicipalities.md +9 -0
- data/docs/ApiResponseMunicipalitiyFinancials.md +9 -0
- data/docs/ApiResponseSICIndicesSearch.md +8 -0
- data/docs/ApiResponseSecuritiesSearch.md +8 -0
- data/docs/ApiResponseSecurityIntradayPrices.md +11 -0
- data/docs/ApiResponseStockMarketIndicesSearch.md +8 -0
- data/docs/CompanyApi.md +44 -115
- data/docs/DataTagApi.md +15 -51
- data/docs/FilingApi.md +19 -97
- data/docs/FundamentalSummary.md +1 -1
- data/docs/HistoricalDataApi.md +2 -0
- data/docs/IndexApi.md +33 -9
- data/docs/IntradayStockPrice.md +15 -0
- data/docs/Municipality.md +26 -0
- data/docs/MunicipalityApi.md +158 -0
- data/docs/MunicipalityFinancial.md +49 -0
- data/docs/RealtimeStockPrice.md +1 -1
- data/docs/SecurityApi.md +71 -4
- data/docs/StockExchangeApi.md +17 -42
- data/intrinio-sdk.gemspec +1 -1
- data/lib/intrinio-sdk.rb +14 -1
- data/lib/intrinio-sdk/api/company_api.rb +97 -154
- data/lib/intrinio-sdk/api/data_point_api.rb +1 -1
- data/lib/intrinio-sdk/api/data_tag_api.rb +27 -63
- data/lib/intrinio-sdk/api/filing_api.rb +42 -121
- data/lib/intrinio-sdk/api/fundamentals_api.rb +1 -1
- data/lib/intrinio-sdk/api/historical_data_api.rb +8 -1
- data/lib/intrinio-sdk/api/index_api.rb +73 -10
- data/lib/intrinio-sdk/api/municipality_api.rb +221 -0
- data/lib/intrinio-sdk/api/security_api.rb +117 -4
- data/lib/intrinio-sdk/api/stock_exchange_api.rb +45 -57
- data/lib/intrinio-sdk/api_client.rb +1 -1
- data/lib/intrinio-sdk/api_error.rb +1 -1
- data/lib/intrinio-sdk/configuration.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_companies.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_companies_search.rb +190 -0
- data/lib/intrinio-sdk/models/api_response_company_filings.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_company_fundamentals.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_company_historical_data.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_company_news.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_company_securities.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_data_tags.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_data_tags_search.rb +190 -0
- data/lib/intrinio-sdk/models/api_response_economic_index_historical_data.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_economic_indices.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_economic_indices_search.rb +190 -0
- data/lib/intrinio-sdk/models/api_response_filing_notes.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_filing_notes_search.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_filings.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_historical_data.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_municipalities.rb +200 -0
- data/lib/intrinio-sdk/models/api_response_municipalitiy_financials.rb +199 -0
- data/lib/intrinio-sdk/models/api_response_news.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_reported_financials.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_securities.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_securities_search.rb +190 -0
- data/lib/intrinio-sdk/models/api_response_security_historical_data.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_intraday_prices.rb +254 -0
- data/lib/intrinio-sdk/models/api_response_security_stock_price_adjustments.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_stock_prices.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_sic_index_historical_data.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_sic_indices.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_sic_indices_search.rb +190 -0
- data/lib/intrinio-sdk/models/api_response_standardized_financials.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_stock_exchange_realtime_stock_prices.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_stock_exchange_securities.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_stock_exchange_stock_price_adjustments.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_stock_exchange_stock_prices.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_stock_exchanges.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_stock_market_index_historical_data.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_stock_market_indices.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_stock_market_indices_search.rb +190 -0
- data/lib/intrinio-sdk/models/company.rb +1 -1
- data/lib/intrinio-sdk/models/company_filing.rb +1 -1
- data/lib/intrinio-sdk/models/company_news.rb +1 -1
- data/lib/intrinio-sdk/models/company_news_summary.rb +1 -1
- data/lib/intrinio-sdk/models/company_summary.rb +1 -1
- data/lib/intrinio-sdk/models/data_tag.rb +1 -1
- data/lib/intrinio-sdk/models/data_tag_summary.rb +1 -1
- data/lib/intrinio-sdk/models/dividend_record.rb +1 -1
- data/lib/intrinio-sdk/models/earnings_record.rb +1 -1
- data/lib/intrinio-sdk/models/economic_index.rb +1 -1
- data/lib/intrinio-sdk/models/economic_index_summary.rb +1 -1
- data/lib/intrinio-sdk/models/filing.rb +1 -1
- data/lib/intrinio-sdk/models/filing_note.rb +1 -1
- data/lib/intrinio-sdk/models/filing_note_filing.rb +1 -1
- data/lib/intrinio-sdk/models/filing_note_summary.rb +1 -1
- data/lib/intrinio-sdk/models/filing_summary.rb +1 -1
- data/lib/intrinio-sdk/models/fundamental.rb +1 -1
- data/lib/intrinio-sdk/models/fundamental_summary.rb +2 -2
- data/lib/intrinio-sdk/models/historical_data.rb +1 -1
- data/lib/intrinio-sdk/models/intraday_stock_price.rb +259 -0
- data/lib/intrinio-sdk/models/municipality.rb +369 -0
- data/lib/intrinio-sdk/models/municipality_financial.rb +599 -0
- data/lib/intrinio-sdk/models/realtime_stock_price.rb +2 -2
- data/lib/intrinio-sdk/models/realtime_stock_price_security.rb +1 -1
- data/lib/intrinio-sdk/models/reported_financial.rb +1 -1
- data/lib/intrinio-sdk/models/reported_tag.rb +1 -1
- data/lib/intrinio-sdk/models/security.rb +1 -1
- data/lib/intrinio-sdk/models/security_screen_clause.rb +1 -1
- data/lib/intrinio-sdk/models/security_screen_group.rb +1 -1
- data/lib/intrinio-sdk/models/security_screen_result.rb +1 -1
- data/lib/intrinio-sdk/models/security_screen_result_data.rb +1 -1
- data/lib/intrinio-sdk/models/security_summary.rb +1 -1
- data/lib/intrinio-sdk/models/sic_index.rb +1 -1
- data/lib/intrinio-sdk/models/standardized_financial.rb +1 -1
- data/lib/intrinio-sdk/models/stock_exchange.rb +1 -1
- data/lib/intrinio-sdk/models/stock_market_index.rb +1 -1
- data/lib/intrinio-sdk/models/stock_market_index_summary.rb +1 -1
- data/lib/intrinio-sdk/models/stock_price.rb +1 -1
- data/lib/intrinio-sdk/models/stock_price_adjustment.rb +1 -1
- data/lib/intrinio-sdk/models/stock_price_adjustment_summary.rb +1 -1
- data/lib/intrinio-sdk/models/stock_price_summary.rb +1 -1
- data/lib/intrinio-sdk/version.rb +2 -2
- data/spec/api/company_api_spec.rb +37 -54
- data/spec/api/data_point_api_spec.rb +3 -3
- data/spec/api/data_tag_api_spec.rb +9 -19
- data/spec/api/filing_api_spec.rb +73 -12
- data/spec/api/fundamentals_api_spec.rb +6 -6
- data/spec/api/historical_data_api_spec.rb +3 -2
- data/spec/api/index_api_spec.rb +28 -19
- data/spec/api/municipality_api_spec.rb +84 -0
- data/spec/api/security_api_spec.rb +74 -13
- data/spec/api/stock_exchange_api_spec.rb +31 -23
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/api_response_companies_search_spec.rb +42 -0
- data/spec/models/api_response_companies_spec.rb +1 -1
- data/spec/models/api_response_company_filings_spec.rb +1 -1
- data/spec/models/api_response_company_fundamentals_spec.rb +1 -1
- data/spec/models/api_response_company_historical_data_spec.rb +1 -1
- data/spec/models/api_response_company_news_spec.rb +1 -1
- data/spec/models/api_response_company_securities_spec.rb +1 -1
- data/spec/models/api_response_data_tags_search_spec.rb +42 -0
- data/spec/models/api_response_data_tags_spec.rb +1 -1
- data/spec/models/api_response_economic_index_historical_data_spec.rb +1 -1
- data/spec/models/api_response_economic_indices_search_spec.rb +42 -0
- data/spec/models/api_response_economic_indices_spec.rb +1 -1
- data/spec/models/api_response_filings_spec.rb +1 -1
- data/spec/models/api_response_historical_data_spec.rb +1 -1
- data/spec/models/api_response_municipalities_spec.rb +48 -0
- data/spec/models/api_response_municipalitiy_financials_spec.rb +48 -0
- data/spec/models/api_response_news_spec.rb +1 -1
- data/spec/models/api_response_reported_financials_spec.rb +1 -1
- data/spec/models/api_response_securities_search_spec.rb +42 -0
- data/spec/models/api_response_securities_spec.rb +1 -1
- data/spec/models/api_response_security_historical_data_spec.rb +1 -1
- data/spec/models/api_response_security_intraday_prices_spec.rb +64 -0
- data/spec/models/api_response_security_stock_price_adjustments_spec.rb +1 -1
- data/spec/models/api_response_security_stock_prices_spec.rb +1 -1
- data/spec/models/api_response_sic_index_historical_data_spec.rb +1 -1
- data/spec/models/api_response_sic_indices_search_spec.rb +42 -0
- data/spec/models/api_response_sic_indices_spec.rb +1 -1
- data/spec/models/api_response_standardized_financials_spec.rb +1 -1
- data/spec/models/api_response_stock_exchange_securities_spec.rb +1 -1
- data/spec/models/api_response_stock_exchange_stock_price_adjustments_spec.rb +1 -1
- data/spec/models/api_response_stock_exchange_stock_prices_spec.rb +1 -1
- data/spec/models/api_response_stock_exchanges_spec.rb +1 -1
- data/spec/models/api_response_stock_market_index_historical_data_spec.rb +1 -1
- data/spec/models/api_response_stock_market_indices_search_spec.rb +42 -0
- data/spec/models/api_response_stock_market_indices_spec.rb +1 -1
- data/spec/models/company_filing_spec.rb +1 -1
- data/spec/models/company_news_spec.rb +1 -1
- data/spec/models/company_news_summary_spec.rb +1 -1
- data/spec/models/company_spec.rb +1 -1
- data/spec/models/company_summary_spec.rb +1 -1
- data/spec/models/data_tag_spec.rb +1 -1
- data/spec/models/data_tag_summary_spec.rb +1 -1
- data/spec/models/economic_index_spec.rb +1 -1
- data/spec/models/economic_index_summary_spec.rb +1 -1
- data/spec/models/filing_spec.rb +1 -1
- data/spec/models/filing_summary_spec.rb +1 -1
- data/spec/models/fundamental_spec.rb +1 -1
- data/spec/models/fundamental_summary_spec.rb +1 -1
- data/spec/models/historical_data_spec.rb +1 -1
- data/spec/models/intraday_stock_price_spec.rb +84 -0
- data/spec/models/municipality_financial_spec.rb +288 -0
- data/spec/models/municipality_spec.rb +150 -0
- data/spec/models/reported_financial_spec.rb +1 -1
- data/spec/models/reported_tag_spec.rb +1 -1
- data/spec/models/security_screen_clause_spec.rb +1 -1
- data/spec/models/security_screen_group_spec.rb +1 -1
- data/spec/models/security_screen_result_data_spec.rb +1 -1
- data/spec/models/security_screen_result_spec.rb +1 -1
- data/spec/models/security_spec.rb +1 -1
- data/spec/models/security_summary_spec.rb +1 -1
- data/spec/models/sic_index_spec.rb +1 -1
- data/spec/models/standardized_financial_spec.rb +1 -1
- data/spec/models/stock_exchange_spec.rb +1 -1
- data/spec/models/stock_market_index_spec.rb +1 -1
- data/spec/models/stock_market_index_summary_spec.rb +1 -1
- data/spec/models/stock_price_adjustment_spec.rb +7 -1
- data/spec/models/stock_price_adjustment_summary_spec.rb +1 -7
- data/spec/models/stock_price_spec.rb +1 -1
- data/spec/models/stock_price_summary_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +54 -3
- data/intrinio-sdk-1.1.0.gem +0 -0
@@ -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.
|
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
|
@@ -23,6 +23,7 @@ module Intrinio
|
|
23
23
|
# All Securities
|
24
24
|
#
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [Float] :page_size The number of results to return (default to 100)
|
26
27
|
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
27
28
|
# @return [ApiResponseSecurities]
|
28
29
|
def get_all_securities(opts = {})
|
@@ -33,17 +34,23 @@ module Intrinio
|
|
33
34
|
# All Securities
|
34
35
|
#
|
35
36
|
# @param [Hash] opts the optional parameters
|
37
|
+
# @option opts [Float] :page_size The number of results to return
|
36
38
|
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
37
39
|
# @return [Array<(ApiResponseSecurities, Fixnum, Hash)>] ApiResponseSecurities data, response status code and response headers
|
38
40
|
def get_all_securities_with_http_info(opts = {})
|
39
41
|
if @api_client.config.debugging
|
40
42
|
@api_client.config.logger.debug "Calling API: SecurityApi.get_all_securities ..."
|
41
43
|
end
|
44
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
|
45
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_all_securities, must be smaller than or equal to 10000.'
|
46
|
+
end
|
47
|
+
|
42
48
|
# resource path
|
43
49
|
local_var_path = "/securities"
|
44
50
|
|
45
51
|
# query parameters
|
46
52
|
query_params = {}
|
53
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
47
54
|
query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
|
48
55
|
|
49
56
|
# header parameters
|
@@ -251,6 +258,7 @@ module Intrinio
|
|
251
258
|
# @option opts [Date] :start_date Get historical data on or after this date
|
252
259
|
# @option opts [Date] :end_date Get historical date on or before this date
|
253
260
|
# @option opts [String] :sort_order Sort by date `asc` or `desc` (default to desc)
|
261
|
+
# @option opts [Float] :page_size The number of results to return (default to 100)
|
254
262
|
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
255
263
|
# @return [ApiResponseSecurityHistoricalData]
|
256
264
|
def get_security_historical_data(identifier, tag, opts = {})
|
@@ -268,6 +276,7 @@ module Intrinio
|
|
268
276
|
# @option opts [Date] :start_date Get historical data on or after this date
|
269
277
|
# @option opts [Date] :end_date Get historical date on or before this date
|
270
278
|
# @option opts [String] :sort_order Sort by date `asc` or `desc`
|
279
|
+
# @option opts [Float] :page_size The number of results to return
|
271
280
|
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
272
281
|
# @return [Array<(ApiResponseSecurityHistoricalData, Fixnum, Hash)>] ApiResponseSecurityHistoricalData data, response status code and response headers
|
273
282
|
def get_security_historical_data_with_http_info(identifier, tag, opts = {})
|
@@ -288,6 +297,10 @@ module Intrinio
|
|
288
297
|
if @api_client.config.client_side_validation && opts[:'sort_order'] && !['asc', 'desc'].include?(opts[:'sort_order'])
|
289
298
|
fail ArgumentError, 'invalid value for "sort_order", must be one of asc, desc'
|
290
299
|
end
|
300
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
|
301
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_historical_data, must be smaller than or equal to 10000.'
|
302
|
+
end
|
303
|
+
|
291
304
|
# resource path
|
292
305
|
local_var_path = "/securities/{identifier}/historical_data/{tag}".sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'tag' + '}', tag.to_s)
|
293
306
|
|
@@ -298,6 +311,7 @@ module Intrinio
|
|
298
311
|
query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
|
299
312
|
query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
|
300
313
|
query_params[:'sort_order'] = opts[:'sort_order'] if !opts[:'sort_order'].nil?
|
314
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
301
315
|
query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
|
302
316
|
|
303
317
|
# header parameters
|
@@ -324,6 +338,77 @@ module Intrinio
|
|
324
338
|
return data, status_code, headers
|
325
339
|
end
|
326
340
|
|
341
|
+
# Intraday Stock Prices for Security
|
342
|
+
# Return intraday stock prices for the Security with the given `identifier`
|
343
|
+
# @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
|
344
|
+
# @param [Hash] opts the optional parameters
|
345
|
+
# @option opts [String] :source Return intraday prices from the specified data source
|
346
|
+
# @option opts [Date] :start_date Return intraday prices starting at the specified date
|
347
|
+
# @option opts [String] :start_time Return intraday prices starting at the specified time on the `start_date` (timezone is UTC)
|
348
|
+
# @option opts [Date] :end_date Return intraday prices stopping at the specified date
|
349
|
+
# @option opts [String] :end_time Return intraday prices stopping at the specified time on the `end_date` (timezone is UTC)
|
350
|
+
# @return [ApiResponseSecurityIntradayPrices]
|
351
|
+
def get_security_intraday_prices(identifier, opts = {})
|
352
|
+
data, _status_code, _headers = get_security_intraday_prices_with_http_info(identifier, opts)
|
353
|
+
return data
|
354
|
+
end
|
355
|
+
|
356
|
+
# Intraday Stock Prices for Security
|
357
|
+
# Return intraday stock prices for the Security with the given `identifier`
|
358
|
+
# @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
|
359
|
+
# @param [Hash] opts the optional parameters
|
360
|
+
# @option opts [String] :source Return intraday prices from the specified data source
|
361
|
+
# @option opts [Date] :start_date Return intraday prices starting at the specified date
|
362
|
+
# @option opts [String] :start_time Return intraday prices starting at the specified time on the `start_date` (timezone is UTC)
|
363
|
+
# @option opts [Date] :end_date Return intraday prices stopping at the specified date
|
364
|
+
# @option opts [String] :end_time Return intraday prices stopping at the specified time on the `end_date` (timezone is UTC)
|
365
|
+
# @return [Array<(ApiResponseSecurityIntradayPrices, Fixnum, Hash)>] ApiResponseSecurityIntradayPrices data, response status code and response headers
|
366
|
+
def get_security_intraday_prices_with_http_info(identifier, opts = {})
|
367
|
+
if @api_client.config.debugging
|
368
|
+
@api_client.config.logger.debug "Calling API: SecurityApi.get_security_intraday_prices ..."
|
369
|
+
end
|
370
|
+
# verify the required parameter 'identifier' is set
|
371
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
372
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_intraday_prices"
|
373
|
+
end
|
374
|
+
if @api_client.config.client_side_validation && opts[:'source'] && !['iex', 'bats'].include?(opts[:'source'])
|
375
|
+
fail ArgumentError, 'invalid value for "source", must be one of iex, bats'
|
376
|
+
end
|
377
|
+
# resource path
|
378
|
+
local_var_path = "/securities/{identifier}/prices/intraday".sub('{' + 'identifier' + '}', identifier.to_s)
|
379
|
+
|
380
|
+
# query parameters
|
381
|
+
query_params = {}
|
382
|
+
query_params[:'source'] = opts[:'source'] if !opts[:'source'].nil?
|
383
|
+
query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
|
384
|
+
query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
|
385
|
+
query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
|
386
|
+
query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
|
387
|
+
|
388
|
+
# header parameters
|
389
|
+
header_params = {}
|
390
|
+
# HTTP header 'Accept' (if needed)
|
391
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
392
|
+
|
393
|
+
# form parameters
|
394
|
+
form_params = {}
|
395
|
+
|
396
|
+
# http body (model)
|
397
|
+
post_body = nil
|
398
|
+
auth_names = ['ApiKeyAuth']
|
399
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
400
|
+
:header_params => header_params,
|
401
|
+
:query_params => query_params,
|
402
|
+
:form_params => form_params,
|
403
|
+
:body => post_body,
|
404
|
+
:auth_names => auth_names,
|
405
|
+
:return_type => 'ApiResponseSecurityIntradayPrices')
|
406
|
+
if @api_client.config.debugging
|
407
|
+
@api_client.config.logger.debug "API called: SecurityApi#get_security_intraday_prices\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
408
|
+
end
|
409
|
+
return data, status_code, headers
|
410
|
+
end
|
411
|
+
|
327
412
|
# Lastest Dividend Record for Security
|
328
413
|
# Returns the latest available dividend information for the Security with the given `identifier`
|
329
414
|
# @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
|
@@ -495,6 +580,7 @@ module Intrinio
|
|
495
580
|
# @param [Hash] opts the optional parameters
|
496
581
|
# @option opts [Date] :start_date Return price adjustments on or after the date
|
497
582
|
# @option opts [Date] :end_date Return price adjustments on or before the date
|
583
|
+
# @option opts [Float] :page_size The number of results to return (default to 100)
|
498
584
|
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
499
585
|
# @return [ApiResponseSecurityStockPriceAdjustments]
|
500
586
|
def get_security_stock_price_adjustments(identifier, opts = {})
|
@@ -508,6 +594,7 @@ module Intrinio
|
|
508
594
|
# @param [Hash] opts the optional parameters
|
509
595
|
# @option opts [Date] :start_date Return price adjustments on or after the date
|
510
596
|
# @option opts [Date] :end_date Return price adjustments on or before the date
|
597
|
+
# @option opts [Float] :page_size The number of results to return
|
511
598
|
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
512
599
|
# @return [Array<(ApiResponseSecurityStockPriceAdjustments, Fixnum, Hash)>] ApiResponseSecurityStockPriceAdjustments data, response status code and response headers
|
513
600
|
def get_security_stock_price_adjustments_with_http_info(identifier, opts = {})
|
@@ -518,6 +605,10 @@ module Intrinio
|
|
518
605
|
if @api_client.config.client_side_validation && identifier.nil?
|
519
606
|
fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_stock_price_adjustments"
|
520
607
|
end
|
608
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
|
609
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_stock_price_adjustments, must be smaller than or equal to 10000.'
|
610
|
+
end
|
611
|
+
|
521
612
|
# resource path
|
522
613
|
local_var_path = "/securities/{identifier}/prices/adjustments".sub('{' + 'identifier' + '}', identifier.to_s)
|
523
614
|
|
@@ -525,6 +616,7 @@ module Intrinio
|
|
525
616
|
query_params = {}
|
526
617
|
query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
|
527
618
|
query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
|
619
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
528
620
|
query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
|
529
621
|
|
530
622
|
# header parameters
|
@@ -558,6 +650,7 @@ module Intrinio
|
|
558
650
|
# @option opts [Date] :start_date Return prices on or after the date
|
559
651
|
# @option opts [Date] :end_date Return prices on or before the date
|
560
652
|
# @option opts [String] :frequency Return stock prices in the given frequency (default to daily)
|
653
|
+
# @option opts [Float] :page_size The number of results to return (default to 100)
|
561
654
|
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
562
655
|
# @return [ApiResponseSecurityStockPrices]
|
563
656
|
def get_security_stock_prices(identifier, opts = {})
|
@@ -572,6 +665,7 @@ module Intrinio
|
|
572
665
|
# @option opts [Date] :start_date Return prices on or after the date
|
573
666
|
# @option opts [Date] :end_date Return prices on or before the date
|
574
667
|
# @option opts [String] :frequency Return stock prices in the given frequency
|
668
|
+
# @option opts [Float] :page_size The number of results to return
|
575
669
|
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
576
670
|
# @return [Array<(ApiResponseSecurityStockPrices, Fixnum, Hash)>] ApiResponseSecurityStockPrices data, response status code and response headers
|
577
671
|
def get_security_stock_prices_with_http_info(identifier, opts = {})
|
@@ -585,6 +679,10 @@ module Intrinio
|
|
585
679
|
if @api_client.config.client_side_validation && opts[:'frequency'] && !['daily', 'weekly', 'monthly', 'quarterly', 'yearly'].include?(opts[:'frequency'])
|
586
680
|
fail ArgumentError, 'invalid value for "frequency", must be one of daily, weekly, monthly, quarterly, yearly'
|
587
681
|
end
|
682
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
|
683
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_stock_prices, must be smaller than or equal to 10000.'
|
684
|
+
end
|
685
|
+
|
588
686
|
# resource path
|
589
687
|
local_var_path = "/securities/{identifier}/prices".sub('{' + 'identifier' + '}', identifier.to_s)
|
590
688
|
|
@@ -593,6 +691,7 @@ module Intrinio
|
|
593
691
|
query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
|
594
692
|
query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
|
595
693
|
query_params[:'frequency'] = opts[:'frequency'] if !opts[:'frequency'].nil?
|
694
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
596
695
|
query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
|
597
696
|
|
598
697
|
# header parameters
|
@@ -626,6 +725,7 @@ module Intrinio
|
|
626
725
|
# @option opts [String] :order_column Results returned sorted by this column
|
627
726
|
# @option opts [String] :order_direction Sort order to use with the order_column (default to asc)
|
628
727
|
# @option opts [BOOLEAN] :primary_only Return only primary securities (default to false)
|
728
|
+
# @option opts [Float] :page_size The number of results to return (default to 100)
|
629
729
|
# @return [Array<SecurityScreenResult>]
|
630
730
|
def screen_securities(opts = {})
|
631
731
|
data, _status_code, _headers = screen_securities_with_http_info(opts)
|
@@ -639,6 +739,7 @@ module Intrinio
|
|
639
739
|
# @option opts [String] :order_column Results returned sorted by this column
|
640
740
|
# @option opts [String] :order_direction Sort order to use with the order_column
|
641
741
|
# @option opts [BOOLEAN] :primary_only Return only primary securities
|
742
|
+
# @option opts [Float] :page_size The number of results to return
|
642
743
|
# @return [Array<(Array<SecurityScreenResult>, Fixnum, Hash)>] Array<SecurityScreenResult> data, response status code and response headers
|
643
744
|
def screen_securities_with_http_info(opts = {})
|
644
745
|
if @api_client.config.debugging
|
@@ -647,6 +748,10 @@ module Intrinio
|
|
647
748
|
if @api_client.config.client_side_validation && opts[:'order_direction'] && !['asc', 'desc'].include?(opts[:'order_direction'])
|
648
749
|
fail ArgumentError, 'invalid value for "order_direction", must be one of asc, desc'
|
649
750
|
end
|
751
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
|
752
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.screen_securities, must be smaller than or equal to 10000.'
|
753
|
+
end
|
754
|
+
|
650
755
|
# resource path
|
651
756
|
local_var_path = "/securities/screen"
|
652
757
|
|
@@ -655,6 +760,7 @@ module Intrinio
|
|
655
760
|
query_params[:'order_column'] = opts[:'order_column'] if !opts[:'order_column'].nil?
|
656
761
|
query_params[:'order_direction'] = opts[:'order_direction'] if !opts[:'order_direction'].nil?
|
657
762
|
query_params[:'primary_only'] = opts[:'primary_only'] if !opts[:'primary_only'].nil?
|
763
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
658
764
|
|
659
765
|
# header parameters
|
660
766
|
header_params = {}
|
@@ -686,7 +792,8 @@ module Intrinio
|
|
686
792
|
# Searches for Securities matching the text `query`
|
687
793
|
# @param query
|
688
794
|
# @param [Hash] opts the optional parameters
|
689
|
-
# @
|
795
|
+
# @option opts [Float] :page_size The number of results to return (default to 100)
|
796
|
+
# @return [ApiResponseSecuritiesSearch]
|
690
797
|
def search_securities(query, opts = {})
|
691
798
|
data, _status_code, _headers = search_securities_with_http_info(query, opts)
|
692
799
|
return data
|
@@ -696,7 +803,8 @@ module Intrinio
|
|
696
803
|
# Searches for Securities matching the text `query`
|
697
804
|
# @param query
|
698
805
|
# @param [Hash] opts the optional parameters
|
699
|
-
# @
|
806
|
+
# @option opts [Float] :page_size The number of results to return
|
807
|
+
# @return [Array<(ApiResponseSecuritiesSearch, Fixnum, Hash)>] ApiResponseSecuritiesSearch data, response status code and response headers
|
700
808
|
def search_securities_with_http_info(query, opts = {})
|
701
809
|
if @api_client.config.debugging
|
702
810
|
@api_client.config.logger.debug "Calling API: SecurityApi.search_securities ..."
|
@@ -705,12 +813,17 @@ module Intrinio
|
|
705
813
|
if @api_client.config.client_side_validation && query.nil?
|
706
814
|
fail ArgumentError, "Missing the required parameter 'query' when calling SecurityApi.search_securities"
|
707
815
|
end
|
816
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
|
817
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.search_securities, must be smaller than or equal to 10000.'
|
818
|
+
end
|
819
|
+
|
708
820
|
# resource path
|
709
821
|
local_var_path = "/securities/search"
|
710
822
|
|
711
823
|
# query parameters
|
712
824
|
query_params = {}
|
713
825
|
query_params[:'query'] = query
|
826
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
714
827
|
|
715
828
|
# header parameters
|
716
829
|
header_params = {}
|
@@ -729,7 +842,7 @@ module Intrinio
|
|
729
842
|
:form_params => form_params,
|
730
843
|
:body => post_body,
|
731
844
|
:auth_names => auth_names,
|
732
|
-
:return_type => '
|
845
|
+
:return_type => 'ApiResponseSecuritiesSearch')
|
733
846
|
if @api_client.config.debugging
|
734
847
|
@api_client.config.logger.debug "API called: SecurityApi#search_securities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
735
848
|
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.
|
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,65 +20,13 @@ module Intrinio
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
|
23
|
-
#
|
24
|
-
# Returns Stock Exchanges matching
|
23
|
+
# All Stock Exchanges
|
24
|
+
# Returns all Stock Exchanges. Returns Stock Exchanges matching parameters when specified.
|
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
|
28
28
|
# @option opts [String] :country_code Filter by ISO country code
|
29
|
-
# @
|
30
|
-
def filter_stock_exchanges(opts = {})
|
31
|
-
data, _status_code, _headers = filter_stock_exchanges_with_http_info(opts)
|
32
|
-
return data
|
33
|
-
end
|
34
|
-
|
35
|
-
# Filter Stock Exchanges
|
36
|
-
# Returns Stock Exchanges matching the given filters
|
37
|
-
# @param [Hash] opts the optional parameters
|
38
|
-
# @option opts [String] :city Filter by city
|
39
|
-
# @option opts [String] :country Filter by country
|
40
|
-
# @option opts [String] :country_code Filter by ISO country code
|
41
|
-
# @return [Array<(ApiResponseStockExchanges, Fixnum, Hash)>] ApiResponseStockExchanges data, response status code and response headers
|
42
|
-
def filter_stock_exchanges_with_http_info(opts = {})
|
43
|
-
if @api_client.config.debugging
|
44
|
-
@api_client.config.logger.debug "Calling API: StockExchangeApi.filter_stock_exchanges ..."
|
45
|
-
end
|
46
|
-
# resource path
|
47
|
-
local_var_path = "/stock_exchanges/filter"
|
48
|
-
|
49
|
-
# query parameters
|
50
|
-
query_params = {}
|
51
|
-
query_params[:'city'] = opts[:'city'] if !opts[:'city'].nil?
|
52
|
-
query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
|
53
|
-
query_params[:'country_code'] = opts[:'country_code'] if !opts[:'country_code'].nil?
|
54
|
-
|
55
|
-
# header parameters
|
56
|
-
header_params = {}
|
57
|
-
# HTTP header 'Accept' (if needed)
|
58
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
59
|
-
|
60
|
-
# form parameters
|
61
|
-
form_params = {}
|
62
|
-
|
63
|
-
# http body (model)
|
64
|
-
post_body = nil
|
65
|
-
auth_names = ['ApiKeyAuth']
|
66
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
67
|
-
:header_params => header_params,
|
68
|
-
:query_params => query_params,
|
69
|
-
:form_params => form_params,
|
70
|
-
:body => post_body,
|
71
|
-
:auth_names => auth_names,
|
72
|
-
:return_type => 'ApiResponseStockExchanges')
|
73
|
-
if @api_client.config.debugging
|
74
|
-
@api_client.config.logger.debug "API called: StockExchangeApi#filter_stock_exchanges\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
75
|
-
end
|
76
|
-
return data, status_code, headers
|
77
|
-
end
|
78
|
-
|
79
|
-
# All Stock Exchanges
|
80
|
-
# Returns all Stock Exchanges
|
81
|
-
# @param [Hash] opts the optional parameters
|
29
|
+
# @option opts [Float] :page_size The number of results to return (default to 100)
|
82
30
|
# @return [ApiResponseStockExchanges]
|
83
31
|
def get_all_stock_exchanges(opts = {})
|
84
32
|
data, _status_code, _headers = get_all_stock_exchanges_with_http_info(opts)
|
@@ -86,18 +34,30 @@ module Intrinio
|
|
86
34
|
end
|
87
35
|
|
88
36
|
# All Stock Exchanges
|
89
|
-
# Returns all Stock Exchanges
|
37
|
+
# Returns all Stock Exchanges. Returns Stock Exchanges matching parameters when specified.
|
90
38
|
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [String] :city Filter by city
|
40
|
+
# @option opts [String] :country Filter by country
|
41
|
+
# @option opts [String] :country_code Filter by ISO country code
|
42
|
+
# @option opts [Float] :page_size The number of results to return
|
91
43
|
# @return [Array<(ApiResponseStockExchanges, Fixnum, Hash)>] ApiResponseStockExchanges data, response status code and response headers
|
92
44
|
def get_all_stock_exchanges_with_http_info(opts = {})
|
93
45
|
if @api_client.config.debugging
|
94
46
|
@api_client.config.logger.debug "Calling API: StockExchangeApi.get_all_stock_exchanges ..."
|
95
47
|
end
|
48
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
|
49
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling StockExchangeApi.get_all_stock_exchanges, must be smaller than or equal to 10000.'
|
50
|
+
end
|
51
|
+
|
96
52
|
# resource path
|
97
53
|
local_var_path = "/stock_exchanges"
|
98
54
|
|
99
55
|
# query parameters
|
100
56
|
query_params = {}
|
57
|
+
query_params[:'city'] = opts[:'city'] if !opts[:'city'].nil?
|
58
|
+
query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
|
59
|
+
query_params[:'country_code'] = opts[:'country_code'] if !opts[:'country_code'].nil?
|
60
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
101
61
|
|
102
62
|
# header parameters
|
103
63
|
header_params = {}
|
@@ -181,6 +141,7 @@ module Intrinio
|
|
181
141
|
# @param identifier A Stock Exchange identifier (MIC or Intrinio ID)
|
182
142
|
# @param [Hash] opts the optional parameters
|
183
143
|
# @option opts [Date] :date The date for which to return price adjustments
|
144
|
+
# @option opts [Float] :page_size The number of results to return (default to 100)
|
184
145
|
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
185
146
|
# @return [ApiResponseStockExchangeStockPriceAdjustments]
|
186
147
|
def get_stock_exchange_price_adjustments(identifier, opts = {})
|
@@ -193,6 +154,7 @@ module Intrinio
|
|
193
154
|
# @param identifier A Stock Exchange identifier (MIC or Intrinio ID)
|
194
155
|
# @param [Hash] opts the optional parameters
|
195
156
|
# @option opts [Date] :date The date for which to return price adjustments
|
157
|
+
# @option opts [Float] :page_size The number of results to return
|
196
158
|
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
197
159
|
# @return [Array<(ApiResponseStockExchangeStockPriceAdjustments, Fixnum, Hash)>] ApiResponseStockExchangeStockPriceAdjustments data, response status code and response headers
|
198
160
|
def get_stock_exchange_price_adjustments_with_http_info(identifier, opts = {})
|
@@ -203,12 +165,17 @@ module Intrinio
|
|
203
165
|
if @api_client.config.client_side_validation && identifier.nil?
|
204
166
|
fail ArgumentError, "Missing the required parameter 'identifier' when calling StockExchangeApi.get_stock_exchange_price_adjustments"
|
205
167
|
end
|
168
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
|
169
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling StockExchangeApi.get_stock_exchange_price_adjustments, must be smaller than or equal to 10000.'
|
170
|
+
end
|
171
|
+
|
206
172
|
# resource path
|
207
173
|
local_var_path = "/stock_exchanges/{identifier}/prices/adjustments".sub('{' + 'identifier' + '}', identifier.to_s)
|
208
174
|
|
209
175
|
# query parameters
|
210
176
|
query_params = {}
|
211
177
|
query_params[:'date'] = opts[:'date'] if !opts[:'date'].nil?
|
178
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
212
179
|
query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
|
213
180
|
|
214
181
|
# header parameters
|
@@ -240,6 +207,7 @@ module Intrinio
|
|
240
207
|
# @param identifier A Stock Exchange identifier (MIC or Intrinio ID)
|
241
208
|
# @param [Hash] opts the optional parameters
|
242
209
|
# @option opts [Date] :date The date for which to return prices
|
210
|
+
# @option opts [Float] :page_size The number of results to return (default to 100)
|
243
211
|
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
244
212
|
# @return [ApiResponseStockExchangeStockPrices]
|
245
213
|
def get_stock_exchange_prices(identifier, opts = {})
|
@@ -252,6 +220,7 @@ module Intrinio
|
|
252
220
|
# @param identifier A Stock Exchange identifier (MIC or Intrinio ID)
|
253
221
|
# @param [Hash] opts the optional parameters
|
254
222
|
# @option opts [Date] :date The date for which to return prices
|
223
|
+
# @option opts [Float] :page_size The number of results to return
|
255
224
|
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
256
225
|
# @return [Array<(ApiResponseStockExchangeStockPrices, Fixnum, Hash)>] ApiResponseStockExchangeStockPrices data, response status code and response headers
|
257
226
|
def get_stock_exchange_prices_with_http_info(identifier, opts = {})
|
@@ -262,12 +231,17 @@ module Intrinio
|
|
262
231
|
if @api_client.config.client_side_validation && identifier.nil?
|
263
232
|
fail ArgumentError, "Missing the required parameter 'identifier' when calling StockExchangeApi.get_stock_exchange_prices"
|
264
233
|
end
|
234
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
|
235
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling StockExchangeApi.get_stock_exchange_prices, must be smaller than or equal to 10000.'
|
236
|
+
end
|
237
|
+
|
265
238
|
# resource path
|
266
239
|
local_var_path = "/stock_exchanges/{identifier}/prices".sub('{' + 'identifier' + '}', identifier.to_s)
|
267
240
|
|
268
241
|
# query parameters
|
269
242
|
query_params = {}
|
270
243
|
query_params[:'date'] = opts[:'date'] if !opts[:'date'].nil?
|
244
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
271
245
|
query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
|
272
246
|
|
273
247
|
# header parameters
|
@@ -299,6 +273,7 @@ module Intrinio
|
|
299
273
|
# @param identifier A Stock Exchange identifier (MIC or Intrinio ID)
|
300
274
|
# @param [Hash] opts the optional parameters
|
301
275
|
# @option opts [String] :source Return realtime prices from the specified data source
|
276
|
+
# @option opts [Float] :page_size The number of results to return (default to 100)
|
302
277
|
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
303
278
|
# @return [ApiResponseStockExchangeRealtimeStockPrices]
|
304
279
|
def get_stock_exchange_realtime_prices(identifier, opts = {})
|
@@ -311,6 +286,7 @@ module Intrinio
|
|
311
286
|
# @param identifier A Stock Exchange identifier (MIC or Intrinio ID)
|
312
287
|
# @param [Hash] opts the optional parameters
|
313
288
|
# @option opts [String] :source Return realtime prices from the specified data source
|
289
|
+
# @option opts [Float] :page_size The number of results to return
|
314
290
|
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
315
291
|
# @return [Array<(ApiResponseStockExchangeRealtimeStockPrices, Fixnum, Hash)>] ApiResponseStockExchangeRealtimeStockPrices data, response status code and response headers
|
316
292
|
def get_stock_exchange_realtime_prices_with_http_info(identifier, opts = {})
|
@@ -324,12 +300,17 @@ module Intrinio
|
|
324
300
|
if @api_client.config.client_side_validation && opts[:'source'] && !['iex', 'bats', 'bats_delayed'].include?(opts[:'source'])
|
325
301
|
fail ArgumentError, 'invalid value for "source", must be one of iex, bats, bats_delayed'
|
326
302
|
end
|
303
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
|
304
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling StockExchangeApi.get_stock_exchange_realtime_prices, must be smaller than or equal to 10000.'
|
305
|
+
end
|
306
|
+
|
327
307
|
# resource path
|
328
308
|
local_var_path = "/stock_exchanges/{identifier}/prices/realtime".sub('{' + 'identifier' + '}', identifier.to_s)
|
329
309
|
|
330
310
|
# query parameters
|
331
311
|
query_params = {}
|
332
312
|
query_params[:'source'] = opts[:'source'] if !opts[:'source'].nil?
|
313
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
333
314
|
query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
|
334
315
|
|
335
316
|
# header parameters
|
@@ -360,6 +341,7 @@ module Intrinio
|
|
360
341
|
# Returns Securities traded on the Stock Exchange with `identifier`
|
361
342
|
# @param identifier A Stock Exchange identifier (MIC or Intrinio ID)
|
362
343
|
# @param [Hash] opts the optional parameters
|
344
|
+
# @option opts [Float] :page_size The number of results to return (default to 100)
|
363
345
|
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
364
346
|
# @return [ApiResponseStockExchangeSecurities]
|
365
347
|
def get_stock_exchange_securities(identifier, opts = {})
|
@@ -371,6 +353,7 @@ module Intrinio
|
|
371
353
|
# Returns Securities traded on the Stock Exchange with `identifier`
|
372
354
|
# @param identifier A Stock Exchange identifier (MIC or Intrinio ID)
|
373
355
|
# @param [Hash] opts the optional parameters
|
356
|
+
# @option opts [Float] :page_size The number of results to return
|
374
357
|
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
375
358
|
# @return [Array<(ApiResponseStockExchangeSecurities, Fixnum, Hash)>] ApiResponseStockExchangeSecurities data, response status code and response headers
|
376
359
|
def get_stock_exchange_securities_with_http_info(identifier, opts = {})
|
@@ -381,11 +364,16 @@ module Intrinio
|
|
381
364
|
if @api_client.config.client_side_validation && identifier.nil?
|
382
365
|
fail ArgumentError, "Missing the required parameter 'identifier' when calling StockExchangeApi.get_stock_exchange_securities"
|
383
366
|
end
|
367
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
|
368
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling StockExchangeApi.get_stock_exchange_securities, must be smaller than or equal to 10000.'
|
369
|
+
end
|
370
|
+
|
384
371
|
# resource path
|
385
372
|
local_var_path = "/stock_exchanges/{identifier}/securities".sub('{' + 'identifier' + '}', identifier.to_s)
|
386
373
|
|
387
374
|
# query parameters
|
388
375
|
query_params = {}
|
376
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
389
377
|
query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
|
390
378
|
|
391
379
|
# header parameters
|