intrinio-sdk 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/README.md +176 -0
- data/Rakefile +8 -0
- data/docs/ApiResponseCompanies.md +9 -0
- data/docs/ApiResponseCompanyFilings.md +10 -0
- data/docs/ApiResponseCompanyFundamentals.md +10 -0
- data/docs/ApiResponseCompanyHistoricalData.md +10 -0
- data/docs/ApiResponseCompanyNews.md +10 -0
- data/docs/ApiResponseCompanySecurities.md +10 -0
- data/docs/ApiResponseDataTags.md +9 -0
- data/docs/ApiResponseEconomicIndexHistoricalData.md +10 -0
- data/docs/ApiResponseEconomicIndices.md +9 -0
- data/docs/ApiResponseFilings.md +9 -0
- data/docs/ApiResponseHistoricalData.md +9 -0
- data/docs/ApiResponseNews.md +9 -0
- data/docs/ApiResponseReportedFinancials.md +10 -0
- data/docs/ApiResponseSICIndexHistoricalData.md +10 -0
- data/docs/ApiResponseSICIndices.md +9 -0
- data/docs/ApiResponseSecurities.md +9 -0
- data/docs/ApiResponseSecurityHistoricalData.md +10 -0
- data/docs/ApiResponseSecurityStockPriceAdjustments.md +10 -0
- data/docs/ApiResponseSecurityStockPrices.md +10 -0
- data/docs/ApiResponseStandardizedFinancials.md +10 -0
- data/docs/ApiResponseStockExchangeSecurities.md +10 -0
- data/docs/ApiResponseStockExchangeStockPriceAdjustments.md +10 -0
- data/docs/ApiResponseStockExchangeStockPrices.md +10 -0
- data/docs/ApiResponseStockExchanges.md +9 -0
- data/docs/ApiResponseStockMarketIndexHistoricalData.md +10 -0
- data/docs/ApiResponseStockMarketIndices.md +9 -0
- data/docs/Company.md +39 -0
- data/docs/CompanyApi.md +659 -0
- data/docs/CompanyFiling.md +17 -0
- data/docs/CompanyNews.md +13 -0
- data/docs/CompanyNewsSummary.md +12 -0
- data/docs/CompanySummary.md +12 -0
- data/docs/DataPointApi.md +96 -0
- data/docs/DataTag.md +17 -0
- data/docs/DataTagApi.md +184 -0
- data/docs/DataTagSummary.md +11 -0
- data/docs/EconomicIndex.md +19 -0
- data/docs/EconomicIndexSummary.md +18 -0
- data/docs/Filing.md +17 -0
- data/docs/FilingApi.md +142 -0
- data/docs/FilingSummary.md +16 -0
- data/docs/Fundamental.md +16 -0
- data/docs/FundamentalSummary.md +15 -0
- data/docs/FundamentalsApi.md +181 -0
- data/docs/HistoricalData.md +9 -0
- data/docs/HistoricalDataApi.md +64 -0
- data/docs/IndexApi.md +800 -0
- data/docs/ReportedFinancial.md +9 -0
- data/docs/ReportedTag.md +14 -0
- data/docs/SICIndex.md +12 -0
- data/docs/Security.md +34 -0
- data/docs/SecurityApi.md +420 -0
- data/docs/SecurityScreenClause.md +10 -0
- data/docs/SecurityScreenGroup.md +10 -0
- data/docs/SecurityScreenResult.md +9 -0
- data/docs/SecurityScreenResultData.md +10 -0
- data/docs/SecuritySummary.md +17 -0
- data/docs/StandardizedFinancial.md +9 -0
- data/docs/StockExchange.md +17 -0
- data/docs/StockExchangeApi.md +267 -0
- data/docs/StockMarketIndex.md +17 -0
- data/docs/StockMarketIndexSummary.md +16 -0
- data/docs/StockPrice.md +21 -0
- data/docs/StockPriceAdjustment.md +12 -0
- data/docs/StockPriceAdjustmentSummary.md +13 -0
- data/docs/StockPriceSummary.md +20 -0
- data/git_push.sh +55 -0
- data/intrinio-sdk.gemspec +45 -0
- data/lib/intrinio-sdk.rb +105 -0
- data/lib/intrinio-sdk/api/company_api.rb +885 -0
- data/lib/intrinio-sdk/api/data_point_api.rb +141 -0
- data/lib/intrinio-sdk/api/data_tag_api.rb +251 -0
- data/lib/intrinio-sdk/api/filing_api.rb +192 -0
- data/lib/intrinio-sdk/api/fundamentals_api.rb +261 -0
- data/lib/intrinio-sdk/api/historical_data_api.rb +100 -0
- data/lib/intrinio-sdk/api/index_api.rb +1079 -0
- data/lib/intrinio-sdk/api/security_api.rb +568 -0
- data/lib/intrinio-sdk/api/stock_exchange_api.rb +353 -0
- data/lib/intrinio-sdk/api_client.rb +389 -0
- data/lib/intrinio-sdk/api_error.rb +38 -0
- data/lib/intrinio-sdk/configuration.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_companies.rb +200 -0
- data/lib/intrinio-sdk/models/api_response_company_filings.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_company_fundamentals.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_company_historical_data.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_company_news.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_company_securities.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_data_tags.rb +200 -0
- data/lib/intrinio-sdk/models/api_response_economic_index_historical_data.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_economic_indices.rb +200 -0
- data/lib/intrinio-sdk/models/api_response_filings.rb +200 -0
- data/lib/intrinio-sdk/models/api_response_historical_data.rb +200 -0
- data/lib/intrinio-sdk/models/api_response_news.rb +200 -0
- data/lib/intrinio-sdk/models/api_response_reported_financials.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_securities.rb +200 -0
- data/lib/intrinio-sdk/models/api_response_security_historical_data.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_security_stock_price_adjustments.rb +211 -0
- data/lib/intrinio-sdk/models/api_response_security_stock_prices.rb +211 -0
- data/lib/intrinio-sdk/models/api_response_sic_index_historical_data.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_sic_indices.rb +200 -0
- data/lib/intrinio-sdk/models/api_response_standardized_financials.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_stock_exchange_securities.rb +211 -0
- data/lib/intrinio-sdk/models/api_response_stock_exchange_stock_price_adjustments.rb +211 -0
- data/lib/intrinio-sdk/models/api_response_stock_exchange_stock_prices.rb +211 -0
- data/lib/intrinio-sdk/models/api_response_stock_exchanges.rb +200 -0
- data/lib/intrinio-sdk/models/api_response_stock_market_index_historical_data.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_stock_market_indices.rb +200 -0
- data/lib/intrinio-sdk/models/company.rb +498 -0
- data/lib/intrinio-sdk/models/company_filing.rb +278 -0
- data/lib/intrinio-sdk/models/company_news.rb +239 -0
- data/lib/intrinio-sdk/models/company_news_summary.rb +229 -0
- data/lib/intrinio-sdk/models/company_summary.rb +229 -0
- data/lib/intrinio-sdk/models/data_tag.rb +312 -0
- data/lib/intrinio-sdk/models/data_tag_summary.rb +219 -0
- data/lib/intrinio-sdk/models/economic_index.rb +299 -0
- data/lib/intrinio-sdk/models/economic_index_summary.rb +289 -0
- data/lib/intrinio-sdk/models/filing.rb +278 -0
- data/lib/intrinio-sdk/models/filing_summary.rb +269 -0
- data/lib/intrinio-sdk/models/fundamental.rb +302 -0
- data/lib/intrinio-sdk/models/fundamental_summary.rb +292 -0
- data/lib/intrinio-sdk/models/historical_data.rb +199 -0
- data/lib/intrinio-sdk/models/reported_financial.rb +198 -0
- data/lib/intrinio-sdk/models/reported_tag.rb +249 -0
- data/lib/intrinio-sdk/models/security.rb +453 -0
- data/lib/intrinio-sdk/models/security_screen_clause.rb +242 -0
- data/lib/intrinio-sdk/models/security_screen_group.rb +213 -0
- data/lib/intrinio-sdk/models/security_screen_result.rb +199 -0
- data/lib/intrinio-sdk/models/security_screen_result_data.rb +209 -0
- data/lib/intrinio-sdk/models/security_summary.rb +279 -0
- data/lib/intrinio-sdk/models/sic_index.rb +229 -0
- data/lib/intrinio-sdk/models/standardized_financial.rb +198 -0
- data/lib/intrinio-sdk/models/stock_exchange.rb +279 -0
- data/lib/intrinio-sdk/models/stock_market_index.rb +279 -0
- data/lib/intrinio-sdk/models/stock_market_index_summary.rb +269 -0
- data/lib/intrinio-sdk/models/stock_price.rb +352 -0
- data/lib/intrinio-sdk/models/stock_price_adjustment.rb +229 -0
- data/lib/intrinio-sdk/models/stock_price_adjustment_summary.rb +239 -0
- data/lib/intrinio-sdk/models/stock_price_summary.rb +342 -0
- data/lib/intrinio-sdk/version.rb +15 -0
- data/spec/api/company_api_spec.rb +233 -0
- data/spec/api/data_point_api_spec.rb +61 -0
- data/spec/api/data_tag_api_spec.rb +88 -0
- data/spec/api/filing_api_spec.rb +75 -0
- data/spec/api/fundamentals_api_spec.rb +86 -0
- data/spec/api/historical_data_api_spec.rb +53 -0
- data/spec/api/index_api_spec.rb +275 -0
- data/spec/api/security_api_spec.rb +161 -0
- data/spec/api/stock_exchange_api_spec.rb +113 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/api_response_companies_spec.rb +48 -0
- data/spec/models/api_response_company_filings_spec.rb +54 -0
- data/spec/models/api_response_company_fundamentals_spec.rb +54 -0
- data/spec/models/api_response_company_historical_data_spec.rb +54 -0
- data/spec/models/api_response_company_news_spec.rb +54 -0
- data/spec/models/api_response_company_securities_spec.rb +54 -0
- data/spec/models/api_response_data_tags_spec.rb +48 -0
- data/spec/models/api_response_economic_index_historical_data_spec.rb +54 -0
- data/spec/models/api_response_economic_indices_spec.rb +48 -0
- data/spec/models/api_response_filings_spec.rb +48 -0
- data/spec/models/api_response_historical_data_spec.rb +48 -0
- data/spec/models/api_response_news_spec.rb +48 -0
- data/spec/models/api_response_reported_financials_spec.rb +54 -0
- data/spec/models/api_response_securities_spec.rb +48 -0
- data/spec/models/api_response_security_historical_data_spec.rb +54 -0
- data/spec/models/api_response_security_stock_price_adjustments_spec.rb +54 -0
- data/spec/models/api_response_security_stock_prices_spec.rb +54 -0
- data/spec/models/api_response_sic_index_historical_data_spec.rb +54 -0
- data/spec/models/api_response_sic_indices_spec.rb +48 -0
- data/spec/models/api_response_standardized_financials_spec.rb +54 -0
- data/spec/models/api_response_stock_exchange_securities_spec.rb +54 -0
- data/spec/models/api_response_stock_exchange_stock_price_adjustments_spec.rb +54 -0
- data/spec/models/api_response_stock_exchange_stock_prices_spec.rb +54 -0
- data/spec/models/api_response_stock_exchanges_spec.rb +48 -0
- data/spec/models/api_response_stock_market_index_historical_data_spec.rb +54 -0
- data/spec/models/api_response_stock_market_indices_spec.rb +48 -0
- data/spec/models/company_filing_spec.rb +96 -0
- data/spec/models/company_news_spec.rb +72 -0
- data/spec/models/company_news_summary_spec.rb +66 -0
- data/spec/models/company_spec.rb +228 -0
- data/spec/models/company_summary_spec.rb +66 -0
- data/spec/models/data_tag_spec.rb +100 -0
- data/spec/models/data_tag_summary_spec.rb +60 -0
- data/spec/models/economic_index_spec.rb +108 -0
- data/spec/models/economic_index_summary_spec.rb +102 -0
- data/spec/models/filing_spec.rb +96 -0
- data/spec/models/filing_summary_spec.rb +90 -0
- data/spec/models/fundamental_spec.rb +94 -0
- data/spec/models/fundamental_summary_spec.rb +88 -0
- data/spec/models/historical_data_spec.rb +48 -0
- data/spec/models/reported_financial_spec.rb +48 -0
- data/spec/models/reported_tag_spec.rb +78 -0
- data/spec/models/security_screen_clause_spec.rb +58 -0
- data/spec/models/security_screen_group_spec.rb +54 -0
- data/spec/models/security_screen_result_data_spec.rb +54 -0
- data/spec/models/security_screen_result_spec.rb +48 -0
- data/spec/models/security_spec.rb +198 -0
- data/spec/models/security_summary_spec.rb +96 -0
- data/spec/models/sic_index_spec.rb +66 -0
- data/spec/models/standardized_financial_spec.rb +48 -0
- data/spec/models/stock_exchange_spec.rb +96 -0
- data/spec/models/stock_market_index_spec.rb +96 -0
- data/spec/models/stock_market_index_summary_spec.rb +90 -0
- data/spec/models/stock_price_adjustment_spec.rb +66 -0
- data/spec/models/stock_price_adjustment_summary_spec.rb +72 -0
- data/spec/models/stock_price_spec.rb +124 -0
- data/spec/models/stock_price_summary_spec.rb +118 -0
- data/spec/spec_helper.rb +111 -0
- metadata +509 -0
|
@@ -0,0 +1,568 @@
|
|
|
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.0.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 "uri"
|
|
14
|
+
|
|
15
|
+
module Intrinio
|
|
16
|
+
class SecurityApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# Get All Securiites
|
|
24
|
+
#
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
|
27
|
+
# @return [ApiResponseSecurities]
|
|
28
|
+
def get_all_securities(opts = {})
|
|
29
|
+
data, _status_code, _headers = get_all_securities_with_http_info(opts)
|
|
30
|
+
return data
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Get All Securiites
|
|
34
|
+
#
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
|
37
|
+
# @return [Array<(ApiResponseSecurities, Fixnum, Hash)>] ApiResponseSecurities data, response status code and response headers
|
|
38
|
+
def get_all_securities_with_http_info(opts = {})
|
|
39
|
+
if @api_client.config.debugging
|
|
40
|
+
@api_client.config.logger.debug "Calling API: SecurityApi.get_all_securities ..."
|
|
41
|
+
end
|
|
42
|
+
# resource path
|
|
43
|
+
local_var_path = "/securities"
|
|
44
|
+
|
|
45
|
+
# query parameters
|
|
46
|
+
query_params = {}
|
|
47
|
+
query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
|
|
48
|
+
|
|
49
|
+
# header parameters
|
|
50
|
+
header_params = {}
|
|
51
|
+
# HTTP header 'Accept' (if needed)
|
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
53
|
+
|
|
54
|
+
# form parameters
|
|
55
|
+
form_params = {}
|
|
56
|
+
|
|
57
|
+
# http body (model)
|
|
58
|
+
post_body = nil
|
|
59
|
+
auth_names = ['ApiKeyAuth']
|
|
60
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
61
|
+
:header_params => header_params,
|
|
62
|
+
:query_params => query_params,
|
|
63
|
+
:form_params => form_params,
|
|
64
|
+
:body => post_body,
|
|
65
|
+
:auth_names => auth_names,
|
|
66
|
+
:return_type => 'ApiResponseSecurities')
|
|
67
|
+
if @api_client.config.debugging
|
|
68
|
+
@api_client.config.logger.debug "API called: SecurityApi#get_all_securities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
69
|
+
end
|
|
70
|
+
return data, status_code, headers
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Get a Security by ID
|
|
74
|
+
#
|
|
75
|
+
# @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
|
|
76
|
+
# @param [Hash] opts the optional parameters
|
|
77
|
+
# @return [Security]
|
|
78
|
+
def get_security_by_id(identifier, opts = {})
|
|
79
|
+
data, _status_code, _headers = get_security_by_id_with_http_info(identifier, opts)
|
|
80
|
+
return data
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Get a Security by ID
|
|
84
|
+
#
|
|
85
|
+
# @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
|
|
86
|
+
# @param [Hash] opts the optional parameters
|
|
87
|
+
# @return [Array<(Security, Fixnum, Hash)>] Security data, response status code and response headers
|
|
88
|
+
def get_security_by_id_with_http_info(identifier, opts = {})
|
|
89
|
+
if @api_client.config.debugging
|
|
90
|
+
@api_client.config.logger.debug "Calling API: SecurityApi.get_security_by_id ..."
|
|
91
|
+
end
|
|
92
|
+
# verify the required parameter 'identifier' is set
|
|
93
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
|
94
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_by_id"
|
|
95
|
+
end
|
|
96
|
+
# resource path
|
|
97
|
+
local_var_path = "/securities/{identifier}".sub('{' + 'identifier' + '}', identifier.to_s)
|
|
98
|
+
|
|
99
|
+
# query parameters
|
|
100
|
+
query_params = {}
|
|
101
|
+
|
|
102
|
+
# header parameters
|
|
103
|
+
header_params = {}
|
|
104
|
+
# HTTP header 'Accept' (if needed)
|
|
105
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
106
|
+
|
|
107
|
+
# form parameters
|
|
108
|
+
form_params = {}
|
|
109
|
+
|
|
110
|
+
# http body (model)
|
|
111
|
+
post_body = nil
|
|
112
|
+
auth_names = ['ApiKeyAuth']
|
|
113
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
114
|
+
:header_params => header_params,
|
|
115
|
+
:query_params => query_params,
|
|
116
|
+
:form_params => form_params,
|
|
117
|
+
:body => post_body,
|
|
118
|
+
:auth_names => auth_names,
|
|
119
|
+
:return_type => 'Security')
|
|
120
|
+
if @api_client.config.debugging
|
|
121
|
+
@api_client.config.logger.debug "API called: SecurityApi#get_security_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
122
|
+
end
|
|
123
|
+
return data, status_code, headers
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Get Security Data Point (Number)
|
|
127
|
+
# Returns a numeric value for the given `tag` for the Security with the given `identifier`
|
|
128
|
+
# @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
|
|
129
|
+
# @param tag An Intrinio data tag ID or code-name
|
|
130
|
+
# @param [Hash] opts the optional parameters
|
|
131
|
+
# @return [Float]
|
|
132
|
+
def get_security_data_point_number(identifier, tag, opts = {})
|
|
133
|
+
data, _status_code, _headers = get_security_data_point_number_with_http_info(identifier, tag, opts)
|
|
134
|
+
return data
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Get Security Data Point (Number)
|
|
138
|
+
# Returns a numeric value for the given `tag` for the Security with the given `identifier`
|
|
139
|
+
# @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
|
|
140
|
+
# @param tag An Intrinio data tag ID or code-name
|
|
141
|
+
# @param [Hash] opts the optional parameters
|
|
142
|
+
# @return [Array<(Float, Fixnum, Hash)>] Float data, response status code and response headers
|
|
143
|
+
def get_security_data_point_number_with_http_info(identifier, tag, opts = {})
|
|
144
|
+
if @api_client.config.debugging
|
|
145
|
+
@api_client.config.logger.debug "Calling API: SecurityApi.get_security_data_point_number ..."
|
|
146
|
+
end
|
|
147
|
+
# verify the required parameter 'identifier' is set
|
|
148
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
|
149
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_data_point_number"
|
|
150
|
+
end
|
|
151
|
+
# verify the required parameter 'tag' is set
|
|
152
|
+
if @api_client.config.client_side_validation && tag.nil?
|
|
153
|
+
fail ArgumentError, "Missing the required parameter 'tag' when calling SecurityApi.get_security_data_point_number"
|
|
154
|
+
end
|
|
155
|
+
# resource path
|
|
156
|
+
local_var_path = "/securities/{identifier}/data_point/{tag}/number".sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'tag' + '}', tag.to_s)
|
|
157
|
+
|
|
158
|
+
# query parameters
|
|
159
|
+
query_params = {}
|
|
160
|
+
|
|
161
|
+
# header parameters
|
|
162
|
+
header_params = {}
|
|
163
|
+
# HTTP header 'Accept' (if needed)
|
|
164
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain; charset=utf-8'])
|
|
165
|
+
|
|
166
|
+
# form parameters
|
|
167
|
+
form_params = {}
|
|
168
|
+
|
|
169
|
+
# http body (model)
|
|
170
|
+
post_body = nil
|
|
171
|
+
auth_names = ['ApiKeyAuth']
|
|
172
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
173
|
+
:header_params => header_params,
|
|
174
|
+
:query_params => query_params,
|
|
175
|
+
:form_params => form_params,
|
|
176
|
+
:body => post_body,
|
|
177
|
+
:auth_names => auth_names,
|
|
178
|
+
:return_type => 'Float')
|
|
179
|
+
if @api_client.config.debugging
|
|
180
|
+
@api_client.config.logger.debug "API called: SecurityApi#get_security_data_point_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
181
|
+
end
|
|
182
|
+
return data, status_code, headers
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# Get Security Data Point (Text)
|
|
186
|
+
# Returns a text value for the given `tag` for the Security with the given `identifier`
|
|
187
|
+
# @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
|
|
188
|
+
# @param tag An Intrinio data tag ID or code-name
|
|
189
|
+
# @param [Hash] opts the optional parameters
|
|
190
|
+
# @return [String]
|
|
191
|
+
def get_security_data_point_text(identifier, tag, opts = {})
|
|
192
|
+
data, _status_code, _headers = get_security_data_point_text_with_http_info(identifier, tag, opts)
|
|
193
|
+
return data
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# Get Security Data Point (Text)
|
|
197
|
+
# Returns a text value for the given `tag` for the Security with the given `identifier`
|
|
198
|
+
# @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
|
|
199
|
+
# @param tag An Intrinio data tag ID or code-name
|
|
200
|
+
# @param [Hash] opts the optional parameters
|
|
201
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
|
202
|
+
def get_security_data_point_text_with_http_info(identifier, tag, opts = {})
|
|
203
|
+
if @api_client.config.debugging
|
|
204
|
+
@api_client.config.logger.debug "Calling API: SecurityApi.get_security_data_point_text ..."
|
|
205
|
+
end
|
|
206
|
+
# verify the required parameter 'identifier' is set
|
|
207
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
|
208
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_data_point_text"
|
|
209
|
+
end
|
|
210
|
+
# verify the required parameter 'tag' is set
|
|
211
|
+
if @api_client.config.client_side_validation && tag.nil?
|
|
212
|
+
fail ArgumentError, "Missing the required parameter 'tag' when calling SecurityApi.get_security_data_point_text"
|
|
213
|
+
end
|
|
214
|
+
# resource path
|
|
215
|
+
local_var_path = "/securities/{identifier}/data_point/{tag}/text".sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'tag' + '}', tag.to_s)
|
|
216
|
+
|
|
217
|
+
# query parameters
|
|
218
|
+
query_params = {}
|
|
219
|
+
|
|
220
|
+
# header parameters
|
|
221
|
+
header_params = {}
|
|
222
|
+
# HTTP header 'Accept' (if needed)
|
|
223
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain; charset=utf-8'])
|
|
224
|
+
|
|
225
|
+
# form parameters
|
|
226
|
+
form_params = {}
|
|
227
|
+
|
|
228
|
+
# http body (model)
|
|
229
|
+
post_body = nil
|
|
230
|
+
auth_names = ['ApiKeyAuth']
|
|
231
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
232
|
+
:header_params => header_params,
|
|
233
|
+
:query_params => query_params,
|
|
234
|
+
:form_params => form_params,
|
|
235
|
+
:body => post_body,
|
|
236
|
+
:auth_names => auth_names,
|
|
237
|
+
:return_type => 'String')
|
|
238
|
+
if @api_client.config.debugging
|
|
239
|
+
@api_client.config.logger.debug "API called: SecurityApi#get_security_data_point_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
240
|
+
end
|
|
241
|
+
return data, status_code, headers
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
# Get Security Historical Data
|
|
245
|
+
# Returns historical values for the given `tag` and the Security with the given `identifier`
|
|
246
|
+
# @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
|
|
247
|
+
# @param tag An Intrinio data tag ID or code-name
|
|
248
|
+
# @param [Hash] opts the optional parameters
|
|
249
|
+
# @option opts [String] :type Filter by type, when applicable
|
|
250
|
+
# @option opts [Date] :start_date Get historical data on or after this date
|
|
251
|
+
# @option opts [Date] :end_date Get historical date on or before this date
|
|
252
|
+
# @option opts [String] :sort_order Sort by date `asc` or `desc` (default to desc)
|
|
253
|
+
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
|
254
|
+
# @return [ApiResponseSecurityHistoricalData]
|
|
255
|
+
def get_security_historical_data(identifier, tag, opts = {})
|
|
256
|
+
data, _status_code, _headers = get_security_historical_data_with_http_info(identifier, tag, opts)
|
|
257
|
+
return data
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
# Get Security Historical Data
|
|
261
|
+
# Returns historical values for the given `tag` and the Security with the given `identifier`
|
|
262
|
+
# @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
|
|
263
|
+
# @param tag An Intrinio data tag ID or code-name
|
|
264
|
+
# @param [Hash] opts the optional parameters
|
|
265
|
+
# @option opts [String] :type Filter by type, when applicable
|
|
266
|
+
# @option opts [Date] :start_date Get historical data on or after this date
|
|
267
|
+
# @option opts [Date] :end_date Get historical date on or before this date
|
|
268
|
+
# @option opts [String] :sort_order Sort by date `asc` or `desc`
|
|
269
|
+
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
|
270
|
+
# @return [Array<(ApiResponseSecurityHistoricalData, Fixnum, Hash)>] ApiResponseSecurityHistoricalData data, response status code and response headers
|
|
271
|
+
def get_security_historical_data_with_http_info(identifier, tag, opts = {})
|
|
272
|
+
if @api_client.config.debugging
|
|
273
|
+
@api_client.config.logger.debug "Calling API: SecurityApi.get_security_historical_data ..."
|
|
274
|
+
end
|
|
275
|
+
# verify the required parameter 'identifier' is set
|
|
276
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
|
277
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_historical_data"
|
|
278
|
+
end
|
|
279
|
+
# verify the required parameter 'tag' is set
|
|
280
|
+
if @api_client.config.client_side_validation && tag.nil?
|
|
281
|
+
fail ArgumentError, "Missing the required parameter 'tag' when calling SecurityApi.get_security_historical_data"
|
|
282
|
+
end
|
|
283
|
+
if @api_client.config.client_side_validation && opts[:'sort_order'] && !['asc', 'desc'].include?(opts[:'sort_order'])
|
|
284
|
+
fail ArgumentError, 'invalid value for "sort_order", must be one of asc, desc'
|
|
285
|
+
end
|
|
286
|
+
# resource path
|
|
287
|
+
local_var_path = "/securities/{identifier}/historical_data/{tag}".sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'tag' + '}', tag.to_s)
|
|
288
|
+
|
|
289
|
+
# query parameters
|
|
290
|
+
query_params = {}
|
|
291
|
+
query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
|
|
292
|
+
query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
|
|
293
|
+
query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
|
|
294
|
+
query_params[:'sort_order'] = opts[:'sort_order'] if !opts[:'sort_order'].nil?
|
|
295
|
+
query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
|
|
296
|
+
|
|
297
|
+
# header parameters
|
|
298
|
+
header_params = {}
|
|
299
|
+
# HTTP header 'Accept' (if needed)
|
|
300
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
301
|
+
|
|
302
|
+
# form parameters
|
|
303
|
+
form_params = {}
|
|
304
|
+
|
|
305
|
+
# http body (model)
|
|
306
|
+
post_body = nil
|
|
307
|
+
auth_names = ['ApiKeyAuth']
|
|
308
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
309
|
+
:header_params => header_params,
|
|
310
|
+
:query_params => query_params,
|
|
311
|
+
:form_params => form_params,
|
|
312
|
+
:body => post_body,
|
|
313
|
+
:auth_names => auth_names,
|
|
314
|
+
:return_type => 'ApiResponseSecurityHistoricalData')
|
|
315
|
+
if @api_client.config.debugging
|
|
316
|
+
@api_client.config.logger.debug "API called: SecurityApi#get_security_historical_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
317
|
+
end
|
|
318
|
+
return data, status_code, headers
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
# Get Stock Price Adjustments for Security
|
|
322
|
+
# Return stock price adjustments for the Security with the given `identifier`
|
|
323
|
+
# @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
|
|
324
|
+
# @param [Hash] opts the optional parameters
|
|
325
|
+
# @option opts [Date] :start_date Return price adjustments on or after the date
|
|
326
|
+
# @option opts [Date] :end_date Return price adjustments on or before the date
|
|
327
|
+
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
|
328
|
+
# @return [ApiResponseSecurityStockPriceAdjustments]
|
|
329
|
+
def get_security_stock_price_adjustments(identifier, opts = {})
|
|
330
|
+
data, _status_code, _headers = get_security_stock_price_adjustments_with_http_info(identifier, opts)
|
|
331
|
+
return data
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
# Get Stock Price Adjustments for Security
|
|
335
|
+
# Return stock price adjustments for the Security with the given `identifier`
|
|
336
|
+
# @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
|
|
337
|
+
# @param [Hash] opts the optional parameters
|
|
338
|
+
# @option opts [Date] :start_date Return price adjustments on or after the date
|
|
339
|
+
# @option opts [Date] :end_date Return price adjustments on or before the date
|
|
340
|
+
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
|
341
|
+
# @return [Array<(ApiResponseSecurityStockPriceAdjustments, Fixnum, Hash)>] ApiResponseSecurityStockPriceAdjustments data, response status code and response headers
|
|
342
|
+
def get_security_stock_price_adjustments_with_http_info(identifier, opts = {})
|
|
343
|
+
if @api_client.config.debugging
|
|
344
|
+
@api_client.config.logger.debug "Calling API: SecurityApi.get_security_stock_price_adjustments ..."
|
|
345
|
+
end
|
|
346
|
+
# verify the required parameter 'identifier' is set
|
|
347
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
|
348
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_stock_price_adjustments"
|
|
349
|
+
end
|
|
350
|
+
# resource path
|
|
351
|
+
local_var_path = "/securities/{identifier}/prices/adjustments".sub('{' + 'identifier' + '}', identifier.to_s)
|
|
352
|
+
|
|
353
|
+
# query parameters
|
|
354
|
+
query_params = {}
|
|
355
|
+
query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
|
|
356
|
+
query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
|
|
357
|
+
query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
|
|
358
|
+
|
|
359
|
+
# header parameters
|
|
360
|
+
header_params = {}
|
|
361
|
+
# HTTP header 'Accept' (if needed)
|
|
362
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
363
|
+
|
|
364
|
+
# form parameters
|
|
365
|
+
form_params = {}
|
|
366
|
+
|
|
367
|
+
# http body (model)
|
|
368
|
+
post_body = nil
|
|
369
|
+
auth_names = ['ApiKeyAuth']
|
|
370
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
371
|
+
:header_params => header_params,
|
|
372
|
+
:query_params => query_params,
|
|
373
|
+
:form_params => form_params,
|
|
374
|
+
:body => post_body,
|
|
375
|
+
:auth_names => auth_names,
|
|
376
|
+
:return_type => 'ApiResponseSecurityStockPriceAdjustments')
|
|
377
|
+
if @api_client.config.debugging
|
|
378
|
+
@api_client.config.logger.debug "API called: SecurityApi#get_security_stock_price_adjustments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
379
|
+
end
|
|
380
|
+
return data, status_code, headers
|
|
381
|
+
end
|
|
382
|
+
|
|
383
|
+
# Get Stock Prices for Security
|
|
384
|
+
# Return stock prices for the Security with the given `identifier`
|
|
385
|
+
# @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
|
|
386
|
+
# @param [Hash] opts the optional parameters
|
|
387
|
+
# @option opts [Date] :start_date Return prices on or after the date
|
|
388
|
+
# @option opts [Date] :end_date Return prices on or before the date
|
|
389
|
+
# @option opts [String] :frequency Return stock prices in the given frequency (default to daily)
|
|
390
|
+
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
|
391
|
+
# @return [ApiResponseSecurityStockPrices]
|
|
392
|
+
def get_security_stock_prices(identifier, opts = {})
|
|
393
|
+
data, _status_code, _headers = get_security_stock_prices_with_http_info(identifier, opts)
|
|
394
|
+
return data
|
|
395
|
+
end
|
|
396
|
+
|
|
397
|
+
# Get Stock Prices for Security
|
|
398
|
+
# Return stock prices for the Security with the given `identifier`
|
|
399
|
+
# @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
|
|
400
|
+
# @param [Hash] opts the optional parameters
|
|
401
|
+
# @option opts [Date] :start_date Return prices on or after the date
|
|
402
|
+
# @option opts [Date] :end_date Return prices on or before the date
|
|
403
|
+
# @option opts [String] :frequency Return stock prices in the given frequency
|
|
404
|
+
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
|
405
|
+
# @return [Array<(ApiResponseSecurityStockPrices, Fixnum, Hash)>] ApiResponseSecurityStockPrices data, response status code and response headers
|
|
406
|
+
def get_security_stock_prices_with_http_info(identifier, opts = {})
|
|
407
|
+
if @api_client.config.debugging
|
|
408
|
+
@api_client.config.logger.debug "Calling API: SecurityApi.get_security_stock_prices ..."
|
|
409
|
+
end
|
|
410
|
+
# verify the required parameter 'identifier' is set
|
|
411
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
|
412
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_stock_prices"
|
|
413
|
+
end
|
|
414
|
+
if @api_client.config.client_side_validation && opts[:'frequency'] && !['daily', 'weekly', 'monthly', 'quarterly', 'yearly'].include?(opts[:'frequency'])
|
|
415
|
+
fail ArgumentError, 'invalid value for "frequency", must be one of daily, weekly, monthly, quarterly, yearly'
|
|
416
|
+
end
|
|
417
|
+
# resource path
|
|
418
|
+
local_var_path = "/securities/{identifier}/prices".sub('{' + 'identifier' + '}', identifier.to_s)
|
|
419
|
+
|
|
420
|
+
# query parameters
|
|
421
|
+
query_params = {}
|
|
422
|
+
query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
|
|
423
|
+
query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
|
|
424
|
+
query_params[:'frequency'] = opts[:'frequency'] if !opts[:'frequency'].nil?
|
|
425
|
+
query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
|
|
426
|
+
|
|
427
|
+
# header parameters
|
|
428
|
+
header_params = {}
|
|
429
|
+
# HTTP header 'Accept' (if needed)
|
|
430
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
431
|
+
|
|
432
|
+
# form parameters
|
|
433
|
+
form_params = {}
|
|
434
|
+
|
|
435
|
+
# http body (model)
|
|
436
|
+
post_body = nil
|
|
437
|
+
auth_names = ['ApiKeyAuth']
|
|
438
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
439
|
+
:header_params => header_params,
|
|
440
|
+
:query_params => query_params,
|
|
441
|
+
:form_params => form_params,
|
|
442
|
+
:body => post_body,
|
|
443
|
+
:auth_names => auth_names,
|
|
444
|
+
:return_type => 'ApiResponseSecurityStockPrices')
|
|
445
|
+
if @api_client.config.debugging
|
|
446
|
+
@api_client.config.logger.debug "API called: SecurityApi#get_security_stock_prices\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
447
|
+
end
|
|
448
|
+
return data, status_code, headers
|
|
449
|
+
end
|
|
450
|
+
|
|
451
|
+
# Screen Securities
|
|
452
|
+
# Screen securities using complex logic
|
|
453
|
+
# @param [Hash] opts the optional parameters
|
|
454
|
+
# @option opts [SecurityScreenGroup] :logic The logic to screen with, consisting of operators, clauses, and nested groups.<br/> See <a href=\"/documentation/screener_v2\" target=\"_blank\">screener documentation</a> for details on how to construct conditions.
|
|
455
|
+
# @option opts [String] :order_column Results returned sorted by this column
|
|
456
|
+
# @option opts [String] :order_direction Sort order to use with the order_column (default to asc)
|
|
457
|
+
# @option opts [BOOLEAN] :primary_only Return only primary securities (default to false)
|
|
458
|
+
# @return [Array<SecurityScreenResult>]
|
|
459
|
+
def screen_securities(opts = {})
|
|
460
|
+
data, _status_code, _headers = screen_securities_with_http_info(opts)
|
|
461
|
+
return data
|
|
462
|
+
end
|
|
463
|
+
|
|
464
|
+
# Screen Securities
|
|
465
|
+
# Screen securities using complex logic
|
|
466
|
+
# @param [Hash] opts the optional parameters
|
|
467
|
+
# @option opts [SecurityScreenGroup] :logic The logic to screen with, consisting of operators, clauses, and nested groups.<br/> See <a href=\"/documentation/screener_v2\" target=\"_blank\">screener documentation</a> for details on how to construct conditions.
|
|
468
|
+
# @option opts [String] :order_column Results returned sorted by this column
|
|
469
|
+
# @option opts [String] :order_direction Sort order to use with the order_column
|
|
470
|
+
# @option opts [BOOLEAN] :primary_only Return only primary securities
|
|
471
|
+
# @return [Array<(Array<SecurityScreenResult>, Fixnum, Hash)>] Array<SecurityScreenResult> data, response status code and response headers
|
|
472
|
+
def screen_securities_with_http_info(opts = {})
|
|
473
|
+
if @api_client.config.debugging
|
|
474
|
+
@api_client.config.logger.debug "Calling API: SecurityApi.screen_securities ..."
|
|
475
|
+
end
|
|
476
|
+
if @api_client.config.client_side_validation && opts[:'order_direction'] && !['asc', 'desc'].include?(opts[:'order_direction'])
|
|
477
|
+
fail ArgumentError, 'invalid value for "order_direction", must be one of asc, desc'
|
|
478
|
+
end
|
|
479
|
+
# resource path
|
|
480
|
+
local_var_path = "/securities/screen"
|
|
481
|
+
|
|
482
|
+
# query parameters
|
|
483
|
+
query_params = {}
|
|
484
|
+
query_params[:'order_column'] = opts[:'order_column'] if !opts[:'order_column'].nil?
|
|
485
|
+
query_params[:'order_direction'] = opts[:'order_direction'] if !opts[:'order_direction'].nil?
|
|
486
|
+
query_params[:'primary_only'] = opts[:'primary_only'] if !opts[:'primary_only'].nil?
|
|
487
|
+
|
|
488
|
+
# header parameters
|
|
489
|
+
header_params = {}
|
|
490
|
+
# HTTP header 'Accept' (if needed)
|
|
491
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
492
|
+
# HTTP header 'Content-Type'
|
|
493
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
494
|
+
|
|
495
|
+
# form parameters
|
|
496
|
+
form_params = {}
|
|
497
|
+
|
|
498
|
+
# http body (model)
|
|
499
|
+
post_body = @api_client.object_to_http_body(opts[:'logic'])
|
|
500
|
+
auth_names = ['ApiKeyAuth']
|
|
501
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
502
|
+
:header_params => header_params,
|
|
503
|
+
:query_params => query_params,
|
|
504
|
+
:form_params => form_params,
|
|
505
|
+
:body => post_body,
|
|
506
|
+
:auth_names => auth_names,
|
|
507
|
+
:return_type => 'Array<SecurityScreenResult>')
|
|
508
|
+
if @api_client.config.debugging
|
|
509
|
+
@api_client.config.logger.debug "API called: SecurityApi#screen_securities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
510
|
+
end
|
|
511
|
+
return data, status_code, headers
|
|
512
|
+
end
|
|
513
|
+
|
|
514
|
+
# Search Securities
|
|
515
|
+
# Searches for Securities matching the text `query`
|
|
516
|
+
# @param query
|
|
517
|
+
# @param [Hash] opts the optional parameters
|
|
518
|
+
# @return [ApiResponseSecurities]
|
|
519
|
+
def search_securities(query, opts = {})
|
|
520
|
+
data, _status_code, _headers = search_securities_with_http_info(query, opts)
|
|
521
|
+
return data
|
|
522
|
+
end
|
|
523
|
+
|
|
524
|
+
# Search Securities
|
|
525
|
+
# Searches for Securities matching the text `query`
|
|
526
|
+
# @param query
|
|
527
|
+
# @param [Hash] opts the optional parameters
|
|
528
|
+
# @return [Array<(ApiResponseSecurities, Fixnum, Hash)>] ApiResponseSecurities data, response status code and response headers
|
|
529
|
+
def search_securities_with_http_info(query, opts = {})
|
|
530
|
+
if @api_client.config.debugging
|
|
531
|
+
@api_client.config.logger.debug "Calling API: SecurityApi.search_securities ..."
|
|
532
|
+
end
|
|
533
|
+
# verify the required parameter 'query' is set
|
|
534
|
+
if @api_client.config.client_side_validation && query.nil?
|
|
535
|
+
fail ArgumentError, "Missing the required parameter 'query' when calling SecurityApi.search_securities"
|
|
536
|
+
end
|
|
537
|
+
# resource path
|
|
538
|
+
local_var_path = "/securities/search"
|
|
539
|
+
|
|
540
|
+
# query parameters
|
|
541
|
+
query_params = {}
|
|
542
|
+
query_params[:'query'] = query
|
|
543
|
+
|
|
544
|
+
# header parameters
|
|
545
|
+
header_params = {}
|
|
546
|
+
# HTTP header 'Accept' (if needed)
|
|
547
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
548
|
+
|
|
549
|
+
# form parameters
|
|
550
|
+
form_params = {}
|
|
551
|
+
|
|
552
|
+
# http body (model)
|
|
553
|
+
post_body = nil
|
|
554
|
+
auth_names = ['ApiKeyAuth']
|
|
555
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
556
|
+
:header_params => header_params,
|
|
557
|
+
:query_params => query_params,
|
|
558
|
+
:form_params => form_params,
|
|
559
|
+
:body => post_body,
|
|
560
|
+
:auth_names => auth_names,
|
|
561
|
+
:return_type => 'ApiResponseSecurities')
|
|
562
|
+
if @api_client.config.debugging
|
|
563
|
+
@api_client.config.logger.debug "API called: SecurityApi#search_securities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
564
|
+
end
|
|
565
|
+
return data, status_code, headers
|
|
566
|
+
end
|
|
567
|
+
end
|
|
568
|
+
end
|