Class: Intrinio::CompanyApi
- Inherits:
-
Object
- Object
- Intrinio::CompanyApi
- Defined in:
- lib/intrinio-sdk/api/company_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#filter_companies(opts = {}) ⇒ ApiResponseCompanies
Filter Companies Returns Companies matching the specified filters.
-
#filter_companies_with_http_info(opts = {}) ⇒ Array<(ApiResponseCompanies, Fixnum, Hash)>
Filter Companies Returns Companies matching the specified filters.
-
#filter_company_fundamentals(identifier, opts = {}) ⇒ ApiResponseCompanyFundamentals
Filter Fundamentals for a Company Returns Fundamentals for the Company with the given ‘identifier` and matching the specified filters.
-
#filter_company_fundamentals_with_http_info(identifier, opts = {}) ⇒ Array<(ApiResponseCompanyFundamentals, Fixnum, Hash)>
Filter Fundamentals for a Company Returns Fundamentals for the Company with the given `identifier` and matching the specified filters.
-
#get_all_companies(opts = {}) ⇒ ApiResponseCompanies
Get All Companies.
-
#get_all_companies_with_http_info(opts = {}) ⇒ Array<(ApiResponseCompanies, Fixnum, Hash)>
Get All Companies.
-
#get_all_company_news(opts = {}) ⇒ ApiResponseNews
Get All Company News Returns all news for all companies.
-
#get_all_company_news_with_http_info(opts = {}) ⇒ Array<(ApiResponseNews, Fixnum, Hash)>
Get All Company News Returns all news for all companies.
-
#get_company(identifier, opts = {}) ⇒ Company
Get a Company by ID.
-
#get_company_data_point_number(identifier, tag, opts = {}) ⇒ Float
Get Company Data Point (Number) Returns a numeric value for the given ‘tag` for the Company with the given `identifier`.
-
#get_company_data_point_number_with_http_info(identifier, tag, opts = {}) ⇒ Array<(Float, Fixnum, Hash)>
Get Company Data Point (Number) Returns a numeric value for the given `tag` for the Company with the given `identifier`.
-
#get_company_data_point_text(identifier, tag, opts = {}) ⇒ String
Get Company Data Point (Text) Returns a text value for the given ‘tag` for the Company with the given `identifier`.
-
#get_company_data_point_text_with_http_info(identifier, tag, opts = {}) ⇒ Array<(String, Fixnum, Hash)>
Get Company Data Point (Text) Returns a text value for the given `tag` for the Company with the given `identifier`.
-
#get_company_filings(identifier, opts = {}) ⇒ ApiResponseCompanyFilings
Get Filings for a Company Returns a complete list of SEC filings for the Company with the given ‘identifier`.
-
#get_company_filings_with_http_info(identifier, opts = {}) ⇒ Array<(ApiResponseCompanyFilings, Fixnum, Hash)>
Get Filings for a Company Returns a complete list of SEC filings for the Company with the given `identifier`.
-
#get_company_fundamentals(identifier, opts = {}) ⇒ ApiResponseCompanyFundamentals
Get All Fundamentals for a Company Returns all Fundamentals for the Company with the given ‘identifier`.
-
#get_company_fundamentals_with_http_info(identifier, opts = {}) ⇒ Array<(ApiResponseCompanyFundamentals, Fixnum, Hash)>
Get All Fundamentals for a Company Returns all Fundamentals for the Company with the given `identifier`.
-
#get_company_historical_data(identifier, tag, opts = {}) ⇒ ApiResponseCompanyHistoricalData
Get Company Historical Data Returns historical values for the given ‘tag` and the Company with the given `identifier`.
-
#get_company_historical_data_with_http_info(identifier, tag, opts = {}) ⇒ Array<(ApiResponseCompanyHistoricalData, Fixnum, Hash)>
Get Company Historical Data Returns historical values for the given `tag` and the Company with the given `identifier`.
-
#get_company_news(identifier, opts = {}) ⇒ ApiResponseCompanyNews
Get News for a Company Returns news for the Company with the given ‘identifier`.
-
#get_company_news_with_http_info(identifier, opts = {}) ⇒ Array<(ApiResponseCompanyNews, Fixnum, Hash)>
Get News for a Company Returns news for the Company with the given `identifier`.
-
#get_company_securities(identifier, opts = {}) ⇒ ApiResponseCompanySecurities
Get Securities by Company Return Securities for the Company with ‘identifier`.
-
#get_company_securities_with_http_info(identifier, opts = {}) ⇒ Array<(ApiResponseCompanySecurities, Fixnum, Hash)>
Get Securities by Company Return Securities for the Company with `identifier`.
-
#get_company_with_http_info(identifier, opts = {}) ⇒ Array<(Company, Fixnum, Hash)>
Get a Company by ID.
-
#initialize(api_client = ApiClient.default) ⇒ CompanyApi
constructor
A new instance of CompanyApi.
-
#lookup_company_fundamental(identifier, statement_code, fiscal_period, fiscal_year, opts = {}) ⇒ Fundamental
Lookup a Fundamental for a Company Returns the Fundamental for the Company with the given ‘identifier` and with the given parameters.
-
#lookup_company_fundamental_with_http_info(identifier, statement_code, fiscal_period, fiscal_year, opts = {}) ⇒ Array<(Fundamental, Fixnum, Hash)>
Lookup a Fundamental for a Company Returns the Fundamental for the Company with the given `identifier` and with the given parameters.
-
#search_companies(query, opts = {}) ⇒ ApiResponseCompanies
Search Companies Searches for Companies matching the text ‘query`.
-
#search_companies_with_http_info(query, opts = {}) ⇒ Array<(ApiResponseCompanies, Fixnum, Hash)>
Search Companies Searches for Companies matching the text `query`.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ CompanyApi
Returns a new instance of CompanyApi.
19 20 21 |
# File 'lib/intrinio-sdk/api/company_api.rb', line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/intrinio-sdk/api/company_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#filter_companies(opts = {}) ⇒ ApiResponseCompanies
Filter Companies Returns Companies matching the specified filters
34 35 36 37 |
# File 'lib/intrinio-sdk/api/company_api.rb', line 34 def filter_companies(opts = {}) data, _status_code, _headers = filter_companies_with_http_info(opts) return data end |
#filter_companies_with_http_info(opts = {}) ⇒ Array<(ApiResponseCompanies, Fixnum, Hash)>
Filter Companies Returns Companies matching the specified filters
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/intrinio-sdk/api/company_api.rb', line 50 def filter_companies_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CompanyApi.filter_companies ..." end if @api_client.config.client_side_validation && opts[:'template'] && !['industrial', 'financial'].include?(opts[:'template']) fail ArgumentError, 'invalid value for "template", must be one of industrial, financial' end # resource path local_var_path = "/companies/filter" # query parameters query_params = {} query_params[:'last_filing_date'] = opts[:'last_filing_date'] if !opts[:'last_filing_date'].nil? query_params[:'sic'] = opts[:'sic'] if !opts[:'sic'].nil? query_params[:'template'] = opts[:'template'] if !opts[:'template'].nil? query_params[:'sector'] = opts[:'sector'] if !opts[:'sector'].nil? query_params[:'industry_category'] = opts[:'industry_category'] if !opts[:'industry_category'].nil? query_params[:'industry_group'] = opts[:'industry_group'] if !opts[:'industry_group'].nil? query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ApiKeyAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ApiResponseCompanies') if @api_client.config.debugging @api_client.config.logger.debug "API called: CompanyApi#filter_companies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#filter_company_fundamentals(identifier, opts = {}) ⇒ ApiResponseCompanyFundamentals
Filter Fundamentals for a Company Returns Fundamentals for the Company with the given ‘identifier` and matching the specified filters
108 109 110 111 |
# File 'lib/intrinio-sdk/api/company_api.rb', line 108 def filter_company_fundamentals(identifier, opts = {}) data, _status_code, _headers = filter_company_fundamentals_with_http_info(identifier, opts) return data end |
#filter_company_fundamentals_with_http_info(identifier, opts = {}) ⇒ Array<(ApiResponseCompanyFundamentals, Fixnum, Hash)>
Filter Fundamentals for a Company Returns Fundamentals for the Company with the given `identifier` and matching the specified filters
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 |
# File 'lib/intrinio-sdk/api/company_api.rb', line 127 def filter_company_fundamentals_with_http_info(identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CompanyApi.filter_company_fundamentals ..." end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling CompanyApi.filter_company_fundamentals" end if @api_client.config.client_side_validation && opts[:'statement_code'] && !['income_statement', 'balance_sheet_statement', 'cash_flow_statement', 'calculations'].include?(opts[:'statement_code']) fail ArgumentError, 'invalid value for "statement_code", must be one of income_statement, balance_sheet_statement, cash_flow_statement, calculations' end if @api_client.config.client_side_validation && opts[:'type'] && !['QTR', 'YTD', 'FY', 'TTM'].include?(opts[:'type']) fail ArgumentError, 'invalid value for "type", must be one of QTR, YTD, FY, TTM' end # resource path local_var_path = "/companies/{identifier}/fundamentals/filter".sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} query_params[:'filed_after'] = opts[:'filed_after'] if !opts[:'filed_after'].nil? query_params[:'filed_before'] = opts[:'filed_before'] if !opts[:'filed_before'].nil? query_params[:'reported_only'] = opts[:'reported_only'] if !opts[:'reported_only'].nil? query_params[:'fiscal_year'] = opts[:'fiscal_year'] if !opts[:'fiscal_year'].nil? query_params[:'statement_code'] = opts[:'statement_code'] if !opts[:'statement_code'].nil? query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil? query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil? query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil? query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ApiKeyAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ApiResponseCompanyFundamentals') if @api_client.config.debugging @api_client.config.logger.debug "API called: CompanyApi#filter_company_fundamentals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_all_companies(opts = {}) ⇒ ApiResponseCompanies
Get All Companies
185 186 187 188 |
# File 'lib/intrinio-sdk/api/company_api.rb', line 185 def get_all_companies(opts = {}) data, _status_code, _headers = get_all_companies_with_http_info(opts) return data end |
#get_all_companies_with_http_info(opts = {}) ⇒ Array<(ApiResponseCompanies, Fixnum, Hash)>
Get All Companies
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 |
# File 'lib/intrinio-sdk/api/company_api.rb', line 195 def get_all_companies_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CompanyApi.get_all_companies ..." end # resource path local_var_path = "/companies" # query parameters query_params = {} query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ApiKeyAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ApiResponseCompanies') if @api_client.config.debugging @api_client.config.logger.debug "API called: CompanyApi#get_all_companies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_all_company_news(opts = {}) ⇒ ApiResponseNews
Get All Company News Returns all news for all companies
235 236 237 238 |
# File 'lib/intrinio-sdk/api/company_api.rb', line 235 def get_all_company_news(opts = {}) data, _status_code, _headers = get_all_company_news_with_http_info(opts) return data end |
#get_all_company_news_with_http_info(opts = {}) ⇒ Array<(ApiResponseNews, Fixnum, Hash)>
Get All Company News Returns all news for all companies
245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 |
# File 'lib/intrinio-sdk/api/company_api.rb', line 245 def get_all_company_news_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CompanyApi.get_all_company_news ..." end # resource path local_var_path = "/companies/news" # query parameters query_params = {} query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ApiKeyAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ApiResponseNews') if @api_client.config.debugging @api_client.config.logger.debug "API called: CompanyApi#get_all_company_news\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_company(identifier, opts = {}) ⇒ Company
Get a Company by ID
285 286 287 288 |
# File 'lib/intrinio-sdk/api/company_api.rb', line 285 def get_company(identifier, opts = {}) data, _status_code, _headers = get_company_with_http_info(identifier, opts) return data end |
#get_company_data_point_number(identifier, tag, opts = {}) ⇒ Float
Get Company Data Point (Number) Returns a numeric value for the given ‘tag` for the Company with the given `identifier`
339 340 341 342 |
# File 'lib/intrinio-sdk/api/company_api.rb', line 339 def get_company_data_point_number(identifier, tag, opts = {}) data, _status_code, _headers = get_company_data_point_number_with_http_info(identifier, tag, opts) return data end |
#get_company_data_point_number_with_http_info(identifier, tag, opts = {}) ⇒ Array<(Float, Fixnum, Hash)>
Get Company Data Point (Number) Returns a numeric value for the given `tag` for the Company with the given `identifier`
350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 |
# File 'lib/intrinio-sdk/api/company_api.rb', line 350 def get_company_data_point_number_with_http_info(identifier, tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CompanyApi.get_company_data_point_number ..." end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling CompanyApi.get_company_data_point_number" end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling CompanyApi.get_company_data_point_number" end # resource path local_var_path = "/companies/{identifier}/data_point/{tag}/number".sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'tag' + '}', tag.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['text/plain; charset=utf-8']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ApiKeyAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Float') if @api_client.config.debugging @api_client.config.logger.debug "API called: CompanyApi#get_company_data_point_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_company_data_point_text(identifier, tag, opts = {}) ⇒ String
Get Company Data Point (Text) Returns a text value for the given ‘tag` for the Company with the given `identifier`
398 399 400 401 |
# File 'lib/intrinio-sdk/api/company_api.rb', line 398 def get_company_data_point_text(identifier, tag, opts = {}) data, _status_code, _headers = get_company_data_point_text_with_http_info(identifier, tag, opts) return data end |
#get_company_data_point_text_with_http_info(identifier, tag, opts = {}) ⇒ Array<(String, Fixnum, Hash)>
Get Company Data Point (Text) Returns a text value for the given `tag` for the Company with the given `identifier`
409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 |
# File 'lib/intrinio-sdk/api/company_api.rb', line 409 def get_company_data_point_text_with_http_info(identifier, tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CompanyApi.get_company_data_point_text ..." end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling CompanyApi.get_company_data_point_text" end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling CompanyApi.get_company_data_point_text" end # resource path local_var_path = "/companies/{identifier}/data_point/{tag}/text".sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'tag' + '}', tag.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['text/plain; charset=utf-8']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ApiKeyAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'String') if @api_client.config.debugging @api_client.config.logger.debug "API called: CompanyApi#get_company_data_point_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_company_filings(identifier, opts = {}) ⇒ ApiResponseCompanyFilings
Get Filings for a Company Returns a complete list of SEC filings for the Company with the given ‘identifier`
457 458 459 460 |
# File 'lib/intrinio-sdk/api/company_api.rb', line 457 def get_company_filings(identifier, opts = {}) data, _status_code, _headers = get_company_filings_with_http_info(identifier, opts) return data end |
#get_company_filings_with_http_info(identifier, opts = {}) ⇒ Array<(ApiResponseCompanyFilings, Fixnum, Hash)>
Get Filings for a Company Returns a complete list of SEC filings for the Company with the given `identifier`
468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 |
# File 'lib/intrinio-sdk/api/company_api.rb', line 468 def get_company_filings_with_http_info(identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CompanyApi.get_company_filings ..." end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling CompanyApi.get_company_filings" end # resource path local_var_path = "/companies/{identifier}/filings".sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ApiKeyAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ApiResponseCompanyFilings') if @api_client.config.debugging @api_client.config.logger.debug "API called: CompanyApi#get_company_filings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_company_fundamentals(identifier, opts = {}) ⇒ ApiResponseCompanyFundamentals
Get All Fundamentals for a Company Returns all Fundamentals for the Company with the given ‘identifier`
513 514 515 516 |
# File 'lib/intrinio-sdk/api/company_api.rb', line 513 def get_company_fundamentals(identifier, opts = {}) data, _status_code, _headers = get_company_fundamentals_with_http_info(identifier, opts) return data end |
#get_company_fundamentals_with_http_info(identifier, opts = {}) ⇒ Array<(ApiResponseCompanyFundamentals, Fixnum, Hash)>
Get All Fundamentals for a Company Returns all Fundamentals for the Company with the given `identifier`
524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 |
# File 'lib/intrinio-sdk/api/company_api.rb', line 524 def get_company_fundamentals_with_http_info(identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CompanyApi.get_company_fundamentals ..." end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling CompanyApi.get_company_fundamentals" end # resource path local_var_path = "/companies/{identifier}/fundamentals".sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ApiKeyAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ApiResponseCompanyFundamentals') if @api_client.config.debugging @api_client.config.logger.debug "API called: CompanyApi#get_company_fundamentals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_company_historical_data(identifier, tag, opts = {}) ⇒ ApiResponseCompanyHistoricalData
Get Company Historical Data Returns historical values for the given ‘tag` and the Company with the given `identifier`
574 575 576 577 |
# File 'lib/intrinio-sdk/api/company_api.rb', line 574 def get_company_historical_data(identifier, tag, opts = {}) data, _status_code, _headers = get_company_historical_data_with_http_info(identifier, tag, opts) return data end |
#get_company_historical_data_with_http_info(identifier, tag, opts = {}) ⇒ Array<(ApiResponseCompanyHistoricalData, Fixnum, Hash)>
Get Company Historical Data Returns historical values for the given `tag` and the Company with the given `identifier`
590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 |
# File 'lib/intrinio-sdk/api/company_api.rb', line 590 def get_company_historical_data_with_http_info(identifier, tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CompanyApi.get_company_historical_data ..." end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling CompanyApi.get_company_historical_data" end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling CompanyApi.get_company_historical_data" end if @api_client.config.client_side_validation && opts[:'sort_order'] && !['asc', 'desc'].include?(opts[:'sort_order']) fail ArgumentError, 'invalid value for "sort_order", must be one of asc, desc' end # resource path local_var_path = "/companies/{identifier}/historical_data/{tag}".sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'tag' + '}', tag.to_s) # query parameters query_params = {} query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil? query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil? query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil? query_params[:'sort_order'] = opts[:'sort_order'] if !opts[:'sort_order'].nil? query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ApiKeyAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ApiResponseCompanyHistoricalData') if @api_client.config.debugging @api_client.config.logger.debug "API called: CompanyApi#get_company_historical_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_company_news(identifier, opts = {}) ⇒ ApiResponseCompanyNews
Get News for a Company Returns news for the Company with the given ‘identifier`
646 647 648 649 |
# File 'lib/intrinio-sdk/api/company_api.rb', line 646 def get_company_news(identifier, opts = {}) data, _status_code, _headers = get_company_news_with_http_info(identifier, opts) return data end |
#get_company_news_with_http_info(identifier, opts = {}) ⇒ Array<(ApiResponseCompanyNews, Fixnum, Hash)>
Get News for a Company Returns news for the Company with the given `identifier`
657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 |
# File 'lib/intrinio-sdk/api/company_api.rb', line 657 def get_company_news_with_http_info(identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CompanyApi.get_company_news ..." end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling CompanyApi.get_company_news" end # resource path local_var_path = "/companies/{identifier}/news".sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ApiKeyAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ApiResponseCompanyNews') if @api_client.config.debugging @api_client.config.logger.debug "API called: CompanyApi#get_company_news\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_company_securities(identifier, opts = {}) ⇒ ApiResponseCompanySecurities
Get Securities by Company Return Securities for the Company with ‘identifier`
702 703 704 705 |
# File 'lib/intrinio-sdk/api/company_api.rb', line 702 def get_company_securities(identifier, opts = {}) data, _status_code, _headers = get_company_securities_with_http_info(identifier, opts) return data end |
#get_company_securities_with_http_info(identifier, opts = {}) ⇒ Array<(ApiResponseCompanySecurities, Fixnum, Hash)>
Get Securities by Company Return Securities for the Company with `identifier`
713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 |
# File 'lib/intrinio-sdk/api/company_api.rb', line 713 def get_company_securities_with_http_info(identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CompanyApi.get_company_securities ..." end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling CompanyApi.get_company_securities" end # resource path local_var_path = "/companies/{identifier}/securities".sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ApiKeyAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ApiResponseCompanySecurities') if @api_client.config.debugging @api_client.config.logger.debug "API called: CompanyApi#get_company_securities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_company_with_http_info(identifier, opts = {}) ⇒ Array<(Company, Fixnum, Hash)>
Get a Company by ID
295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 |
# File 'lib/intrinio-sdk/api/company_api.rb', line 295 def get_company_with_http_info(identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CompanyApi.get_company ..." end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling CompanyApi.get_company" end # resource path local_var_path = "/companies/{identifier}".sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ApiKeyAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Company') if @api_client.config.debugging @api_client.config.logger.debug "API called: CompanyApi#get_company\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#lookup_company_fundamental(identifier, statement_code, fiscal_period, fiscal_year, opts = {}) ⇒ Fundamental
Lookup a Fundamental for a Company Returns the Fundamental for the Company with the given ‘identifier` and with the given parameters
760 761 762 763 |
# File 'lib/intrinio-sdk/api/company_api.rb', line 760 def lookup_company_fundamental(identifier, statement_code, fiscal_period, fiscal_year, opts = {}) data, _status_code, _headers = lookup_company_fundamental_with_http_info(identifier, statement_code, fiscal_period, fiscal_year, opts) return data end |
#lookup_company_fundamental_with_http_info(identifier, statement_code, fiscal_period, fiscal_year, opts = {}) ⇒ Array<(Fundamental, Fixnum, Hash)>
Lookup a Fundamental for a Company Returns the Fundamental for the Company with the given `identifier` and with the given parameters
773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 |
# File 'lib/intrinio-sdk/api/company_api.rb', line 773 def lookup_company_fundamental_with_http_info(identifier, statement_code, fiscal_period, fiscal_year, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CompanyApi.lookup_company_fundamental ..." end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling CompanyApi.lookup_company_fundamental" end # verify the required parameter 'statement_code' is set if @api_client.config.client_side_validation && statement_code.nil? fail ArgumentError, "Missing the required parameter 'statement_code' when calling CompanyApi.lookup_company_fundamental" end # verify enum value if @api_client.config.client_side_validation && !['income_statement', 'balance_sheet_statement', 'cash_flow_statement', 'calculations'].include?(statement_code) fail ArgumentError, "invalid value for 'statement_code', must be one of income_statement, balance_sheet_statement, cash_flow_statement, calculations" end # verify the required parameter 'fiscal_period' is set if @api_client.config.client_side_validation && fiscal_period.nil? fail ArgumentError, "Missing the required parameter 'fiscal_period' when calling CompanyApi.lookup_company_fundamental" end # verify enum value if @api_client.config.client_side_validation && !['Q1TTM', 'Q2TTM', 'Q3TTM', 'FY', 'Q1', 'Q2', 'Q3', 'Q4', 'Q2YTD', 'Q3YTD'].include?(fiscal_period) fail ArgumentError, "invalid value for 'fiscal_period', must be one of Q1TTM, Q2TTM, Q3TTM, FY, Q1, Q2, Q3, Q4, Q2YTD, Q3YTD" end # verify the required parameter 'fiscal_year' is set if @api_client.config.client_side_validation && fiscal_year.nil? fail ArgumentError, "Missing the required parameter 'fiscal_year' when calling CompanyApi.lookup_company_fundamental" end # resource path local_var_path = "/companies/{identifier}/fundamentals/lookup/{statement_code}/{fiscal_year}/{fiscal_period}".sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'statement_code' + '}', statement_code.to_s).sub('{' + 'fiscal_period' + '}', fiscal_period.to_s).sub('{' + 'fiscal_year' + '}', fiscal_year.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ApiKeyAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Fundamental') if @api_client.config.debugging @api_client.config.logger.debug "API called: CompanyApi#lookup_company_fundamental\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#search_companies(query, opts = {}) ⇒ ApiResponseCompanies
Search Companies Searches for Companies matching the text ‘query`
836 837 838 839 |
# File 'lib/intrinio-sdk/api/company_api.rb', line 836 def search_companies(query, opts = {}) data, _status_code, _headers = search_companies_with_http_info(query, opts) return data end |
#search_companies_with_http_info(query, opts = {}) ⇒ Array<(ApiResponseCompanies, Fixnum, Hash)>
Search Companies Searches for Companies matching the text `query`
846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 |
# File 'lib/intrinio-sdk/api/company_api.rb', line 846 def search_companies_with_http_info(query, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CompanyApi.search_companies ..." end # verify the required parameter 'query' is set if @api_client.config.client_side_validation && query.nil? fail ArgumentError, "Missing the required parameter 'query' when calling CompanyApi.search_companies" end # resource path local_var_path = "/companies/search" # query parameters query_params = {} query_params[:'query'] = query # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ApiKeyAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ApiResponseCompanies') if @api_client.config.debugging @api_client.config.logger.debug "API called: CompanyApi#search_companies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |