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.
Files changed (213) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +176 -0
  4. data/Rakefile +8 -0
  5. data/docs/ApiResponseCompanies.md +9 -0
  6. data/docs/ApiResponseCompanyFilings.md +10 -0
  7. data/docs/ApiResponseCompanyFundamentals.md +10 -0
  8. data/docs/ApiResponseCompanyHistoricalData.md +10 -0
  9. data/docs/ApiResponseCompanyNews.md +10 -0
  10. data/docs/ApiResponseCompanySecurities.md +10 -0
  11. data/docs/ApiResponseDataTags.md +9 -0
  12. data/docs/ApiResponseEconomicIndexHistoricalData.md +10 -0
  13. data/docs/ApiResponseEconomicIndices.md +9 -0
  14. data/docs/ApiResponseFilings.md +9 -0
  15. data/docs/ApiResponseHistoricalData.md +9 -0
  16. data/docs/ApiResponseNews.md +9 -0
  17. data/docs/ApiResponseReportedFinancials.md +10 -0
  18. data/docs/ApiResponseSICIndexHistoricalData.md +10 -0
  19. data/docs/ApiResponseSICIndices.md +9 -0
  20. data/docs/ApiResponseSecurities.md +9 -0
  21. data/docs/ApiResponseSecurityHistoricalData.md +10 -0
  22. data/docs/ApiResponseSecurityStockPriceAdjustments.md +10 -0
  23. data/docs/ApiResponseSecurityStockPrices.md +10 -0
  24. data/docs/ApiResponseStandardizedFinancials.md +10 -0
  25. data/docs/ApiResponseStockExchangeSecurities.md +10 -0
  26. data/docs/ApiResponseStockExchangeStockPriceAdjustments.md +10 -0
  27. data/docs/ApiResponseStockExchangeStockPrices.md +10 -0
  28. data/docs/ApiResponseStockExchanges.md +9 -0
  29. data/docs/ApiResponseStockMarketIndexHistoricalData.md +10 -0
  30. data/docs/ApiResponseStockMarketIndices.md +9 -0
  31. data/docs/Company.md +39 -0
  32. data/docs/CompanyApi.md +659 -0
  33. data/docs/CompanyFiling.md +17 -0
  34. data/docs/CompanyNews.md +13 -0
  35. data/docs/CompanyNewsSummary.md +12 -0
  36. data/docs/CompanySummary.md +12 -0
  37. data/docs/DataPointApi.md +96 -0
  38. data/docs/DataTag.md +17 -0
  39. data/docs/DataTagApi.md +184 -0
  40. data/docs/DataTagSummary.md +11 -0
  41. data/docs/EconomicIndex.md +19 -0
  42. data/docs/EconomicIndexSummary.md +18 -0
  43. data/docs/Filing.md +17 -0
  44. data/docs/FilingApi.md +142 -0
  45. data/docs/FilingSummary.md +16 -0
  46. data/docs/Fundamental.md +16 -0
  47. data/docs/FundamentalSummary.md +15 -0
  48. data/docs/FundamentalsApi.md +181 -0
  49. data/docs/HistoricalData.md +9 -0
  50. data/docs/HistoricalDataApi.md +64 -0
  51. data/docs/IndexApi.md +800 -0
  52. data/docs/ReportedFinancial.md +9 -0
  53. data/docs/ReportedTag.md +14 -0
  54. data/docs/SICIndex.md +12 -0
  55. data/docs/Security.md +34 -0
  56. data/docs/SecurityApi.md +420 -0
  57. data/docs/SecurityScreenClause.md +10 -0
  58. data/docs/SecurityScreenGroup.md +10 -0
  59. data/docs/SecurityScreenResult.md +9 -0
  60. data/docs/SecurityScreenResultData.md +10 -0
  61. data/docs/SecuritySummary.md +17 -0
  62. data/docs/StandardizedFinancial.md +9 -0
  63. data/docs/StockExchange.md +17 -0
  64. data/docs/StockExchangeApi.md +267 -0
  65. data/docs/StockMarketIndex.md +17 -0
  66. data/docs/StockMarketIndexSummary.md +16 -0
  67. data/docs/StockPrice.md +21 -0
  68. data/docs/StockPriceAdjustment.md +12 -0
  69. data/docs/StockPriceAdjustmentSummary.md +13 -0
  70. data/docs/StockPriceSummary.md +20 -0
  71. data/git_push.sh +55 -0
  72. data/intrinio-sdk.gemspec +45 -0
  73. data/lib/intrinio-sdk.rb +105 -0
  74. data/lib/intrinio-sdk/api/company_api.rb +885 -0
  75. data/lib/intrinio-sdk/api/data_point_api.rb +141 -0
  76. data/lib/intrinio-sdk/api/data_tag_api.rb +251 -0
  77. data/lib/intrinio-sdk/api/filing_api.rb +192 -0
  78. data/lib/intrinio-sdk/api/fundamentals_api.rb +261 -0
  79. data/lib/intrinio-sdk/api/historical_data_api.rb +100 -0
  80. data/lib/intrinio-sdk/api/index_api.rb +1079 -0
  81. data/lib/intrinio-sdk/api/security_api.rb +568 -0
  82. data/lib/intrinio-sdk/api/stock_exchange_api.rb +353 -0
  83. data/lib/intrinio-sdk/api_client.rb +389 -0
  84. data/lib/intrinio-sdk/api_error.rb +38 -0
  85. data/lib/intrinio-sdk/configuration.rb +209 -0
  86. data/lib/intrinio-sdk/models/api_response_companies.rb +200 -0
  87. data/lib/intrinio-sdk/models/api_response_company_filings.rb +209 -0
  88. data/lib/intrinio-sdk/models/api_response_company_fundamentals.rb +209 -0
  89. data/lib/intrinio-sdk/models/api_response_company_historical_data.rb +209 -0
  90. data/lib/intrinio-sdk/models/api_response_company_news.rb +209 -0
  91. data/lib/intrinio-sdk/models/api_response_company_securities.rb +209 -0
  92. data/lib/intrinio-sdk/models/api_response_data_tags.rb +200 -0
  93. data/lib/intrinio-sdk/models/api_response_economic_index_historical_data.rb +209 -0
  94. data/lib/intrinio-sdk/models/api_response_economic_indices.rb +200 -0
  95. data/lib/intrinio-sdk/models/api_response_filings.rb +200 -0
  96. data/lib/intrinio-sdk/models/api_response_historical_data.rb +200 -0
  97. data/lib/intrinio-sdk/models/api_response_news.rb +200 -0
  98. data/lib/intrinio-sdk/models/api_response_reported_financials.rb +209 -0
  99. data/lib/intrinio-sdk/models/api_response_securities.rb +200 -0
  100. data/lib/intrinio-sdk/models/api_response_security_historical_data.rb +209 -0
  101. data/lib/intrinio-sdk/models/api_response_security_stock_price_adjustments.rb +211 -0
  102. data/lib/intrinio-sdk/models/api_response_security_stock_prices.rb +211 -0
  103. data/lib/intrinio-sdk/models/api_response_sic_index_historical_data.rb +209 -0
  104. data/lib/intrinio-sdk/models/api_response_sic_indices.rb +200 -0
  105. data/lib/intrinio-sdk/models/api_response_standardized_financials.rb +209 -0
  106. data/lib/intrinio-sdk/models/api_response_stock_exchange_securities.rb +211 -0
  107. data/lib/intrinio-sdk/models/api_response_stock_exchange_stock_price_adjustments.rb +211 -0
  108. data/lib/intrinio-sdk/models/api_response_stock_exchange_stock_prices.rb +211 -0
  109. data/lib/intrinio-sdk/models/api_response_stock_exchanges.rb +200 -0
  110. data/lib/intrinio-sdk/models/api_response_stock_market_index_historical_data.rb +209 -0
  111. data/lib/intrinio-sdk/models/api_response_stock_market_indices.rb +200 -0
  112. data/lib/intrinio-sdk/models/company.rb +498 -0
  113. data/lib/intrinio-sdk/models/company_filing.rb +278 -0
  114. data/lib/intrinio-sdk/models/company_news.rb +239 -0
  115. data/lib/intrinio-sdk/models/company_news_summary.rb +229 -0
  116. data/lib/intrinio-sdk/models/company_summary.rb +229 -0
  117. data/lib/intrinio-sdk/models/data_tag.rb +312 -0
  118. data/lib/intrinio-sdk/models/data_tag_summary.rb +219 -0
  119. data/lib/intrinio-sdk/models/economic_index.rb +299 -0
  120. data/lib/intrinio-sdk/models/economic_index_summary.rb +289 -0
  121. data/lib/intrinio-sdk/models/filing.rb +278 -0
  122. data/lib/intrinio-sdk/models/filing_summary.rb +269 -0
  123. data/lib/intrinio-sdk/models/fundamental.rb +302 -0
  124. data/lib/intrinio-sdk/models/fundamental_summary.rb +292 -0
  125. data/lib/intrinio-sdk/models/historical_data.rb +199 -0
  126. data/lib/intrinio-sdk/models/reported_financial.rb +198 -0
  127. data/lib/intrinio-sdk/models/reported_tag.rb +249 -0
  128. data/lib/intrinio-sdk/models/security.rb +453 -0
  129. data/lib/intrinio-sdk/models/security_screen_clause.rb +242 -0
  130. data/lib/intrinio-sdk/models/security_screen_group.rb +213 -0
  131. data/lib/intrinio-sdk/models/security_screen_result.rb +199 -0
  132. data/lib/intrinio-sdk/models/security_screen_result_data.rb +209 -0
  133. data/lib/intrinio-sdk/models/security_summary.rb +279 -0
  134. data/lib/intrinio-sdk/models/sic_index.rb +229 -0
  135. data/lib/intrinio-sdk/models/standardized_financial.rb +198 -0
  136. data/lib/intrinio-sdk/models/stock_exchange.rb +279 -0
  137. data/lib/intrinio-sdk/models/stock_market_index.rb +279 -0
  138. data/lib/intrinio-sdk/models/stock_market_index_summary.rb +269 -0
  139. data/lib/intrinio-sdk/models/stock_price.rb +352 -0
  140. data/lib/intrinio-sdk/models/stock_price_adjustment.rb +229 -0
  141. data/lib/intrinio-sdk/models/stock_price_adjustment_summary.rb +239 -0
  142. data/lib/intrinio-sdk/models/stock_price_summary.rb +342 -0
  143. data/lib/intrinio-sdk/version.rb +15 -0
  144. data/spec/api/company_api_spec.rb +233 -0
  145. data/spec/api/data_point_api_spec.rb +61 -0
  146. data/spec/api/data_tag_api_spec.rb +88 -0
  147. data/spec/api/filing_api_spec.rb +75 -0
  148. data/spec/api/fundamentals_api_spec.rb +86 -0
  149. data/spec/api/historical_data_api_spec.rb +53 -0
  150. data/spec/api/index_api_spec.rb +275 -0
  151. data/spec/api/security_api_spec.rb +161 -0
  152. data/spec/api/stock_exchange_api_spec.rb +113 -0
  153. data/spec/api_client_spec.rb +226 -0
  154. data/spec/configuration_spec.rb +42 -0
  155. data/spec/models/api_response_companies_spec.rb +48 -0
  156. data/spec/models/api_response_company_filings_spec.rb +54 -0
  157. data/spec/models/api_response_company_fundamentals_spec.rb +54 -0
  158. data/spec/models/api_response_company_historical_data_spec.rb +54 -0
  159. data/spec/models/api_response_company_news_spec.rb +54 -0
  160. data/spec/models/api_response_company_securities_spec.rb +54 -0
  161. data/spec/models/api_response_data_tags_spec.rb +48 -0
  162. data/spec/models/api_response_economic_index_historical_data_spec.rb +54 -0
  163. data/spec/models/api_response_economic_indices_spec.rb +48 -0
  164. data/spec/models/api_response_filings_spec.rb +48 -0
  165. data/spec/models/api_response_historical_data_spec.rb +48 -0
  166. data/spec/models/api_response_news_spec.rb +48 -0
  167. data/spec/models/api_response_reported_financials_spec.rb +54 -0
  168. data/spec/models/api_response_securities_spec.rb +48 -0
  169. data/spec/models/api_response_security_historical_data_spec.rb +54 -0
  170. data/spec/models/api_response_security_stock_price_adjustments_spec.rb +54 -0
  171. data/spec/models/api_response_security_stock_prices_spec.rb +54 -0
  172. data/spec/models/api_response_sic_index_historical_data_spec.rb +54 -0
  173. data/spec/models/api_response_sic_indices_spec.rb +48 -0
  174. data/spec/models/api_response_standardized_financials_spec.rb +54 -0
  175. data/spec/models/api_response_stock_exchange_securities_spec.rb +54 -0
  176. data/spec/models/api_response_stock_exchange_stock_price_adjustments_spec.rb +54 -0
  177. data/spec/models/api_response_stock_exchange_stock_prices_spec.rb +54 -0
  178. data/spec/models/api_response_stock_exchanges_spec.rb +48 -0
  179. data/spec/models/api_response_stock_market_index_historical_data_spec.rb +54 -0
  180. data/spec/models/api_response_stock_market_indices_spec.rb +48 -0
  181. data/spec/models/company_filing_spec.rb +96 -0
  182. data/spec/models/company_news_spec.rb +72 -0
  183. data/spec/models/company_news_summary_spec.rb +66 -0
  184. data/spec/models/company_spec.rb +228 -0
  185. data/spec/models/company_summary_spec.rb +66 -0
  186. data/spec/models/data_tag_spec.rb +100 -0
  187. data/spec/models/data_tag_summary_spec.rb +60 -0
  188. data/spec/models/economic_index_spec.rb +108 -0
  189. data/spec/models/economic_index_summary_spec.rb +102 -0
  190. data/spec/models/filing_spec.rb +96 -0
  191. data/spec/models/filing_summary_spec.rb +90 -0
  192. data/spec/models/fundamental_spec.rb +94 -0
  193. data/spec/models/fundamental_summary_spec.rb +88 -0
  194. data/spec/models/historical_data_spec.rb +48 -0
  195. data/spec/models/reported_financial_spec.rb +48 -0
  196. data/spec/models/reported_tag_spec.rb +78 -0
  197. data/spec/models/security_screen_clause_spec.rb +58 -0
  198. data/spec/models/security_screen_group_spec.rb +54 -0
  199. data/spec/models/security_screen_result_data_spec.rb +54 -0
  200. data/spec/models/security_screen_result_spec.rb +48 -0
  201. data/spec/models/security_spec.rb +198 -0
  202. data/spec/models/security_summary_spec.rb +96 -0
  203. data/spec/models/sic_index_spec.rb +66 -0
  204. data/spec/models/standardized_financial_spec.rb +48 -0
  205. data/spec/models/stock_exchange_spec.rb +96 -0
  206. data/spec/models/stock_market_index_spec.rb +96 -0
  207. data/spec/models/stock_market_index_summary_spec.rb +90 -0
  208. data/spec/models/stock_price_adjustment_spec.rb +66 -0
  209. data/spec/models/stock_price_adjustment_summary_spec.rb +72 -0
  210. data/spec/models/stock_price_spec.rb +124 -0
  211. data/spec/models/stock_price_summary_spec.rb +118 -0
  212. data/spec/spec_helper.rb +111 -0
  213. metadata +509 -0
@@ -0,0 +1,141 @@
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 DataPointApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # Get a Data Point (Number)
24
+ # Returns a numeric value for the given `tag` and the entity with the given `identifier`
25
+ # @param identifier An identifier for an entity such as a Company, Security, Index, etc (Ticker, FIGI, ISIN, CUSIP, CIK, LEI, Intrinio ID)
26
+ # @param tag An Intrinio data tag ID or code-name
27
+ # @param [Hash] opts the optional parameters
28
+ # @return [Float]
29
+ def get_data_point_number(identifier, tag, opts = {})
30
+ data, _status_code, _headers = get_data_point_number_with_http_info(identifier, tag, opts)
31
+ return data
32
+ end
33
+
34
+ # Get a Data Point (Number)
35
+ # Returns a numeric value for the given `tag` and the entity with the given `identifier`
36
+ # @param identifier An identifier for an entity such as a Company, Security, Index, etc (Ticker, FIGI, ISIN, CUSIP, CIK, LEI, Intrinio ID)
37
+ # @param tag An Intrinio data tag ID or code-name
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [Array<(Float, Fixnum, Hash)>] Float data, response status code and response headers
40
+ def get_data_point_number_with_http_info(identifier, tag, opts = {})
41
+ if @api_client.config.debugging
42
+ @api_client.config.logger.debug "Calling API: DataPointApi.get_data_point_number ..."
43
+ end
44
+ # verify the required parameter 'identifier' is set
45
+ if @api_client.config.client_side_validation && identifier.nil?
46
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling DataPointApi.get_data_point_number"
47
+ end
48
+ # verify the required parameter 'tag' is set
49
+ if @api_client.config.client_side_validation && tag.nil?
50
+ fail ArgumentError, "Missing the required parameter 'tag' when calling DataPointApi.get_data_point_number"
51
+ end
52
+ # resource path
53
+ local_var_path = "/data_point/{identifier}/{tag}/number".sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'tag' + '}', tag.to_s)
54
+
55
+ # query parameters
56
+ query_params = {}
57
+
58
+ # header parameters
59
+ header_params = {}
60
+ # HTTP header 'Accept' (if needed)
61
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain; charset=utf-8'])
62
+
63
+ # form parameters
64
+ form_params = {}
65
+
66
+ # http body (model)
67
+ post_body = nil
68
+ auth_names = ['ApiKeyAuth']
69
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
70
+ :header_params => header_params,
71
+ :query_params => query_params,
72
+ :form_params => form_params,
73
+ :body => post_body,
74
+ :auth_names => auth_names,
75
+ :return_type => 'Float')
76
+ if @api_client.config.debugging
77
+ @api_client.config.logger.debug "API called: DataPointApi#get_data_point_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
78
+ end
79
+ return data, status_code, headers
80
+ end
81
+
82
+ # Get a Data Point (Text)
83
+ # Returns a text value for the given `tag` and the entity with the given `identifier`
84
+ # @param identifier An identifier for an entity such as a Company, Security, Index, etc (Ticker, FIGI, ISIN, CUSIP, CIK, LEI, Intrinio ID)
85
+ # @param tag An Intrinio data tag ID or code-name
86
+ # @param [Hash] opts the optional parameters
87
+ # @return [String]
88
+ def get_data_point_text(identifier, tag, opts = {})
89
+ data, _status_code, _headers = get_data_point_text_with_http_info(identifier, tag, opts)
90
+ return data
91
+ end
92
+
93
+ # Get a Data Point (Text)
94
+ # Returns a text value for the given &#x60;tag&#x60; and the entity with the given &#x60;identifier&#x60;
95
+ # @param identifier An identifier for an entity such as a Company, Security, Index, etc (Ticker, FIGI, ISIN, CUSIP, CIK, LEI, Intrinio ID)
96
+ # @param tag An Intrinio data tag ID or code-name
97
+ # @param [Hash] opts the optional parameters
98
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
99
+ def get_data_point_text_with_http_info(identifier, tag, opts = {})
100
+ if @api_client.config.debugging
101
+ @api_client.config.logger.debug "Calling API: DataPointApi.get_data_point_text ..."
102
+ end
103
+ # verify the required parameter 'identifier' is set
104
+ if @api_client.config.client_side_validation && identifier.nil?
105
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling DataPointApi.get_data_point_text"
106
+ end
107
+ # verify the required parameter 'tag' is set
108
+ if @api_client.config.client_side_validation && tag.nil?
109
+ fail ArgumentError, "Missing the required parameter 'tag' when calling DataPointApi.get_data_point_text"
110
+ end
111
+ # resource path
112
+ local_var_path = "/data_point/{identifier}/{tag}/text".sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'tag' + '}', tag.to_s)
113
+
114
+ # query parameters
115
+ query_params = {}
116
+
117
+ # header parameters
118
+ header_params = {}
119
+ # HTTP header 'Accept' (if needed)
120
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain; charset=utf-8'])
121
+
122
+ # form parameters
123
+ form_params = {}
124
+
125
+ # http body (model)
126
+ post_body = nil
127
+ auth_names = ['ApiKeyAuth']
128
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
129
+ :header_params => header_params,
130
+ :query_params => query_params,
131
+ :form_params => form_params,
132
+ :body => post_body,
133
+ :auth_names => auth_names,
134
+ :return_type => 'String')
135
+ if @api_client.config.debugging
136
+ @api_client.config.logger.debug "API called: DataPointApi#get_data_point_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
137
+ end
138
+ return data, status_code, headers
139
+ end
140
+ end
141
+ end
@@ -0,0 +1,251 @@
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 DataTagApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # Filter Data Tags
24
+ # Returns Data Tags that match the given filters
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [String] :tag Tag
27
+ # @option opts [String] :type Type
28
+ # @option opts [String] :parent ID of tag parent
29
+ # @option opts [String] :statement_code Statement Code
30
+ # @option opts [String] :fs_template Template (default to industrial)
31
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
32
+ # @return [ApiResponseDataTags]
33
+ def filter_data_tags(opts = {})
34
+ data, _status_code, _headers = filter_data_tags_with_http_info(opts)
35
+ return data
36
+ end
37
+
38
+ # Filter Data Tags
39
+ # Returns Data Tags that match the given filters
40
+ # @param [Hash] opts the optional parameters
41
+ # @option opts [String] :tag Tag
42
+ # @option opts [String] :type Type
43
+ # @option opts [String] :parent ID of tag parent
44
+ # @option opts [String] :statement_code Statement Code
45
+ # @option opts [String] :fs_template Template
46
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
47
+ # @return [Array<(ApiResponseDataTags, Fixnum, Hash)>] ApiResponseDataTags data, response status code and response headers
48
+ def filter_data_tags_with_http_info(opts = {})
49
+ if @api_client.config.debugging
50
+ @api_client.config.logger.debug "Calling API: DataTagApi.filter_data_tags ..."
51
+ end
52
+ if @api_client.config.client_side_validation && opts[:'statement_code'] && !['income_statement', 'balance_sheet_statement', 'cash_flow_statement', 'calculations'].include?(opts[:'statement_code'])
53
+ fail ArgumentError, 'invalid value for "statement_code", must be one of income_statement, balance_sheet_statement, cash_flow_statement, calculations'
54
+ end
55
+ if @api_client.config.client_side_validation && opts[:'fs_template'] && !['industrial', 'financial'].include?(opts[:'fs_template'])
56
+ fail ArgumentError, 'invalid value for "fs_template", must be one of industrial, financial'
57
+ end
58
+ # resource path
59
+ local_var_path = "/data_tags/filter"
60
+
61
+ # query parameters
62
+ query_params = {}
63
+ query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
64
+ query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
65
+ query_params[:'parent'] = opts[:'parent'] if !opts[:'parent'].nil?
66
+ query_params[:'statement_code'] = opts[:'statement_code'] if !opts[:'statement_code'].nil?
67
+ query_params[:'fs_template'] = opts[:'fs_template'] if !opts[:'fs_template'].nil?
68
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
69
+
70
+ # header parameters
71
+ header_params = {}
72
+ # HTTP header 'Accept' (if needed)
73
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
74
+
75
+ # form parameters
76
+ form_params = {}
77
+
78
+ # http body (model)
79
+ post_body = nil
80
+ auth_names = ['ApiKeyAuth']
81
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
82
+ :header_params => header_params,
83
+ :query_params => query_params,
84
+ :form_params => form_params,
85
+ :body => post_body,
86
+ :auth_names => auth_names,
87
+ :return_type => 'ApiResponseDataTags')
88
+ if @api_client.config.debugging
89
+ @api_client.config.logger.debug "API called: DataTagApi#filter_data_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
90
+ end
91
+ return data, status_code, headers
92
+ end
93
+
94
+ # Get All Data Tags
95
+ # Returns All Data Tags
96
+ # @param [Hash] opts the optional parameters
97
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
98
+ # @return [ApiResponseDataTags]
99
+ def get_all_data_tags(opts = {})
100
+ data, _status_code, _headers = get_all_data_tags_with_http_info(opts)
101
+ return data
102
+ end
103
+
104
+ # Get All Data Tags
105
+ # Returns All Data Tags
106
+ # @param [Hash] opts the optional parameters
107
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
108
+ # @return [Array<(ApiResponseDataTags, Fixnum, Hash)>] ApiResponseDataTags data, response status code and response headers
109
+ def get_all_data_tags_with_http_info(opts = {})
110
+ if @api_client.config.debugging
111
+ @api_client.config.logger.debug "Calling API: DataTagApi.get_all_data_tags ..."
112
+ end
113
+ # resource path
114
+ local_var_path = "/data_tags"
115
+
116
+ # query parameters
117
+ query_params = {}
118
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
119
+
120
+ # header parameters
121
+ header_params = {}
122
+ # HTTP header 'Accept' (if needed)
123
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
124
+
125
+ # form parameters
126
+ form_params = {}
127
+
128
+ # http body (model)
129
+ post_body = nil
130
+ auth_names = ['ApiKeyAuth']
131
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
132
+ :header_params => header_params,
133
+ :query_params => query_params,
134
+ :form_params => form_params,
135
+ :body => post_body,
136
+ :auth_names => auth_names,
137
+ :return_type => 'ApiResponseDataTags')
138
+ if @api_client.config.debugging
139
+ @api_client.config.logger.debug "API called: DataTagApi#get_all_data_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
140
+ end
141
+ return data, status_code, headers
142
+ end
143
+
144
+ # Get a Data Tag by ID
145
+ # Returns a Data Tag with the specified `identifier`
146
+ # @param identifier The Intrinio ID or the code-name of the Data Tag
147
+ # @param [Hash] opts the optional parameters
148
+ # @return [DataTag]
149
+ def get_data_tag_by_id(identifier, opts = {})
150
+ data, _status_code, _headers = get_data_tag_by_id_with_http_info(identifier, opts)
151
+ return data
152
+ end
153
+
154
+ # Get a Data Tag by ID
155
+ # Returns a Data Tag with the specified &#x60;identifier&#x60;
156
+ # @param identifier The Intrinio ID or the code-name of the Data Tag
157
+ # @param [Hash] opts the optional parameters
158
+ # @return [Array<(DataTag, Fixnum, Hash)>] DataTag data, response status code and response headers
159
+ def get_data_tag_by_id_with_http_info(identifier, opts = {})
160
+ if @api_client.config.debugging
161
+ @api_client.config.logger.debug "Calling API: DataTagApi.get_data_tag_by_id ..."
162
+ end
163
+ # verify the required parameter 'identifier' is set
164
+ if @api_client.config.client_side_validation && identifier.nil?
165
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling DataTagApi.get_data_tag_by_id"
166
+ end
167
+ # resource path
168
+ local_var_path = "/data_tags/{identifier}".sub('{' + 'identifier' + '}', identifier.to_s)
169
+
170
+ # query parameters
171
+ query_params = {}
172
+
173
+ # header parameters
174
+ header_params = {}
175
+ # HTTP header 'Accept' (if needed)
176
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
177
+
178
+ # form parameters
179
+ form_params = {}
180
+
181
+ # http body (model)
182
+ post_body = nil
183
+ auth_names = ['ApiKeyAuth']
184
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
185
+ :header_params => header_params,
186
+ :query_params => query_params,
187
+ :form_params => form_params,
188
+ :body => post_body,
189
+ :auth_names => auth_names,
190
+ :return_type => 'DataTag')
191
+ if @api_client.config.debugging
192
+ @api_client.config.logger.debug "API called: DataTagApi#get_data_tag_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
193
+ end
194
+ return data, status_code, headers
195
+ end
196
+
197
+ # Search Data Tags
198
+ # Searches for Data Tags matching the text `query`
199
+ # @param query
200
+ # @param [Hash] opts the optional parameters
201
+ # @return [ApiResponseDataTags]
202
+ def search_data_tags(query, opts = {})
203
+ data, _status_code, _headers = search_data_tags_with_http_info(query, opts)
204
+ return data
205
+ end
206
+
207
+ # Search Data Tags
208
+ # Searches for Data Tags matching the text &#x60;query&#x60;
209
+ # @param query
210
+ # @param [Hash] opts the optional parameters
211
+ # @return [Array<(ApiResponseDataTags, Fixnum, Hash)>] ApiResponseDataTags data, response status code and response headers
212
+ def search_data_tags_with_http_info(query, opts = {})
213
+ if @api_client.config.debugging
214
+ @api_client.config.logger.debug "Calling API: DataTagApi.search_data_tags ..."
215
+ end
216
+ # verify the required parameter 'query' is set
217
+ if @api_client.config.client_side_validation && query.nil?
218
+ fail ArgumentError, "Missing the required parameter 'query' when calling DataTagApi.search_data_tags"
219
+ end
220
+ # resource path
221
+ local_var_path = "/data_tags/search"
222
+
223
+ # query parameters
224
+ query_params = {}
225
+ query_params[:'query'] = query
226
+
227
+ # header parameters
228
+ header_params = {}
229
+ # HTTP header 'Accept' (if needed)
230
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
231
+
232
+ # form parameters
233
+ form_params = {}
234
+
235
+ # http body (model)
236
+ post_body = nil
237
+ auth_names = ['ApiKeyAuth']
238
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
239
+ :header_params => header_params,
240
+ :query_params => query_params,
241
+ :form_params => form_params,
242
+ :body => post_body,
243
+ :auth_names => auth_names,
244
+ :return_type => 'ApiResponseDataTags')
245
+ if @api_client.config.debugging
246
+ @api_client.config.logger.debug "API called: DataTagApi#search_data_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
247
+ end
248
+ return data, status_code, headers
249
+ end
250
+ end
251
+ end
@@ -0,0 +1,192 @@
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 FilingApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # Filter Filings
24
+ # Returns filings that match the specified filters
25
+ # @param company Filings for the given &#x60;company&#x60; identifier (ticker, CIK, LEI, Intrinio ID)
26
+ # @param [Hash] opts the optional parameters
27
+ # @option opts [String] :report_type Filter by report type
28
+ # @option opts [Date] :start_date Filed on or after the given date
29
+ # @option opts [Date] :end_date Filed before or after the given date
30
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
31
+ # @return [ApiResponseFilings]
32
+ def filter_filings(company, opts = {})
33
+ data, _status_code, _headers = filter_filings_with_http_info(company, opts)
34
+ return data
35
+ end
36
+
37
+ # Filter Filings
38
+ # Returns filings that match the specified filters
39
+ # @param company Filings for the given &#x60;company&#x60; identifier (ticker, CIK, LEI, Intrinio ID)
40
+ # @param [Hash] opts the optional parameters
41
+ # @option opts [String] :report_type Filter by report type
42
+ # @option opts [Date] :start_date Filed on or after the given date
43
+ # @option opts [Date] :end_date Filed before or after the given date
44
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
45
+ # @return [Array<(ApiResponseFilings, Fixnum, Hash)>] ApiResponseFilings data, response status code and response headers
46
+ def filter_filings_with_http_info(company, opts = {})
47
+ if @api_client.config.debugging
48
+ @api_client.config.logger.debug "Calling API: FilingApi.filter_filings ..."
49
+ end
50
+ # verify the required parameter 'company' is set
51
+ if @api_client.config.client_side_validation && company.nil?
52
+ fail ArgumentError, "Missing the required parameter 'company' when calling FilingApi.filter_filings"
53
+ end
54
+ # resource path
55
+ local_var_path = "/filings/filter"
56
+
57
+ # query parameters
58
+ query_params = {}
59
+ query_params[:'company'] = company
60
+ query_params[:'report_type'] = opts[:'report_type'] if !opts[:'report_type'].nil?
61
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
62
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
63
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
64
+
65
+ # header parameters
66
+ header_params = {}
67
+ # HTTP header 'Accept' (if needed)
68
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
69
+
70
+ # form parameters
71
+ form_params = {}
72
+
73
+ # http body (model)
74
+ post_body = nil
75
+ auth_names = ['ApiKeyAuth']
76
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
77
+ :header_params => header_params,
78
+ :query_params => query_params,
79
+ :form_params => form_params,
80
+ :body => post_body,
81
+ :auth_names => auth_names,
82
+ :return_type => 'ApiResponseFilings')
83
+ if @api_client.config.debugging
84
+ @api_client.config.logger.debug "API called: FilingApi#filter_filings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
85
+ end
86
+ return data, status_code, headers
87
+ end
88
+
89
+ # Get All Filings
90
+ # Returns all filings
91
+ # @param [Hash] opts the optional parameters
92
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
93
+ # @return [ApiResponseFilings]
94
+ def get_all_filings(opts = {})
95
+ data, _status_code, _headers = get_all_filings_with_http_info(opts)
96
+ return data
97
+ end
98
+
99
+ # Get All Filings
100
+ # Returns all filings
101
+ # @param [Hash] opts the optional parameters
102
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
103
+ # @return [Array<(ApiResponseFilings, Fixnum, Hash)>] ApiResponseFilings data, response status code and response headers
104
+ def get_all_filings_with_http_info(opts = {})
105
+ if @api_client.config.debugging
106
+ @api_client.config.logger.debug "Calling API: FilingApi.get_all_filings ..."
107
+ end
108
+ # resource path
109
+ local_var_path = "/filings"
110
+
111
+ # query parameters
112
+ query_params = {}
113
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
114
+
115
+ # header parameters
116
+ header_params = {}
117
+ # HTTP header 'Accept' (if needed)
118
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
119
+
120
+ # form parameters
121
+ form_params = {}
122
+
123
+ # http body (model)
124
+ post_body = nil
125
+ auth_names = ['ApiKeyAuth']
126
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
127
+ :header_params => header_params,
128
+ :query_params => query_params,
129
+ :form_params => form_params,
130
+ :body => post_body,
131
+ :auth_names => auth_names,
132
+ :return_type => 'ApiResponseFilings')
133
+ if @api_client.config.debugging
134
+ @api_client.config.logger.debug "API called: FilingApi#get_all_filings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
135
+ end
136
+ return data, status_code, headers
137
+ end
138
+
139
+ # Get a Filing by ID
140
+ # Return the filing with the given ID
141
+ # @param id The Intrinio ID of the Filing
142
+ # @param [Hash] opts the optional parameters
143
+ # @return [Filing]
144
+ def get_filing_by_id(id, opts = {})
145
+ data, _status_code, _headers = get_filing_by_id_with_http_info(id, opts)
146
+ return data
147
+ end
148
+
149
+ # Get a Filing by ID
150
+ # Return the filing with the given ID
151
+ # @param id The Intrinio ID of the Filing
152
+ # @param [Hash] opts the optional parameters
153
+ # @return [Array<(Filing, Fixnum, Hash)>] Filing data, response status code and response headers
154
+ def get_filing_by_id_with_http_info(id, opts = {})
155
+ if @api_client.config.debugging
156
+ @api_client.config.logger.debug "Calling API: FilingApi.get_filing_by_id ..."
157
+ end
158
+ # verify the required parameter 'id' is set
159
+ if @api_client.config.client_side_validation && id.nil?
160
+ fail ArgumentError, "Missing the required parameter 'id' when calling FilingApi.get_filing_by_id"
161
+ end
162
+ # resource path
163
+ local_var_path = "/filings/{id}".sub('{' + 'id' + '}', id.to_s)
164
+
165
+ # query parameters
166
+ query_params = {}
167
+
168
+ # header parameters
169
+ header_params = {}
170
+ # HTTP header 'Accept' (if needed)
171
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
172
+
173
+ # form parameters
174
+ form_params = {}
175
+
176
+ # http body (model)
177
+ post_body = nil
178
+ auth_names = ['ApiKeyAuth']
179
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
180
+ :header_params => header_params,
181
+ :query_params => query_params,
182
+ :form_params => form_params,
183
+ :body => post_body,
184
+ :auth_names => auth_names,
185
+ :return_type => 'Filing')
186
+ if @api_client.config.debugging
187
+ @api_client.config.logger.debug "API called: FilingApi#get_filing_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
188
+ end
189
+ return data, status_code, headers
190
+ end
191
+ end
192
+ end