intrinio-sdk 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
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,9 @@
1
+ # Intrinio::ReportedFinancial
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **xbrl_tag** | [**ReportedTag**](ReportedTag.md) | | [optional]
7
+ **value** | **Float** | The value reported for the XBRL Tag within the scope of the Fundamental | [optional]
8
+
9
+
@@ -0,0 +1,14 @@
1
+ # Intrinio::ReportedTag
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **tag** | **String** | The tag code | [optional]
7
+ **name** | **String** | The tag name | [optional]
8
+ **balance** | **String** | Whether the tag represents a credit or debit | [optional]
9
+ **unit** | **String** | The unit of the tag | [optional]
10
+ **abstract** | **BOOLEAN** | If true, the tag is an abstract and does not represent a nominal value | [optional]
11
+ **sequence** | **Integer** | The vertical sequence of the tag when displayed in the financial statement | [optional]
12
+ **depth** | **Integer** | The horizontal depth of the tag when displayed in the financial statement | [optional]
13
+
14
+
@@ -0,0 +1,12 @@
1
+ # Intrinio::SICIndex
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | Intrinio ID for the Index | [optional]
7
+ **symbol** | **String** | The symbol used to identify the Index | [optional]
8
+ **name** | **String** | The name of the Index | [optional]
9
+ **continent** | **String** | The continent of the country of focus for the Index | [optional]
10
+ **country** | **String** | The country of focus for the Index | [optional]
11
+
12
+
@@ -0,0 +1,34 @@
1
+ # Intrinio::Security
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | The Intrinio ID for the Security | [optional]
7
+ **company_id** | **String** | The Intrinio ID for the company for which the Security is issued | [optional]
8
+ **name** | **String** | The name of the Security | [optional]
9
+ **type** | **String** | The Security's type | [optional]
10
+ **code** | **String** | A 2-3 digit code classifying the Security | [optional]
11
+ **share_class** | **String** | The Security's share class (if applicable) | [optional]
12
+ **currency** | **String** | The currency in which the Security is traded on the exchange | [optional]
13
+ **round_lot_size** | **Float** | The normal unit of trading | [optional]
14
+ **ticker** | **String** | The common ticker | [optional]
15
+ **exchange_ticker** | **String** | The exchange-level ticker | [optional]
16
+ **composite_ticker** | **String** | The country-composite ticker | [optional]
17
+ **alternate_tickers** | **Array<String>** | Alternate formats of the common ticker | [optional]
18
+ **figi** | **String** | The exchange-level OpenFIGI identifier | [optional]
19
+ **cik** | **String** | Central Index Key issued by the SEC, which is the unique identifier for all owner filings | [optional]
20
+ **composite_figi** | **String** | The country-composite OpenFIGI identifier | [optional]
21
+ **share_class_figi** | **String** | The global-composite OpenFIGI identifier | [optional]
22
+ **figi_uniqueid** | **String** | The OpenFIGI unique ID | [optional]
23
+ **active** | **BOOLEAN** | If true, the Security is active and has been recently traded | [optional]
24
+ **etf** | **BOOLEAN** | If true, this Security is an ETF | [optional]
25
+ **delisted** | **BOOLEAN** | If true, the Security is no longer traded on the exchange | [optional]
26
+ **primary_listing** | **BOOLEAN** | If true, the Security is the primary issue for the company, otherwise it is a secondary issue on a secondary stock exchange | [optional]
27
+ **primary_security** | **BOOLEAN** | If true, the Security is considered by Intrinio to be the primary Security for its company | [optional]
28
+ **first_stock_price** | **Date** | The date of the first recorded stock price | [optional]
29
+ **last_stock_price** | **Date** | The date of the last recorded stock price (or the most recent trading day) | [optional]
30
+ **last_stock_price_adjustment** | **Date** | The date of the last stock price adjustment (dividend, split, etc) | [optional]
31
+ **last_corporate_action** | **Date** | The date of the last corporate action | [optional]
32
+ **previous_tickers** | **Array<String>** | Previous tickers used by this security | [optional]
33
+
34
+
@@ -0,0 +1,420 @@
1
+ # Intrinio::SecurityApi
2
+
3
+ All URIs are relative to *https://api-v2.intrinio.com*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**get_all_securities**](SecurityApi.md#get_all_securities) | **GET** /securities | Get All Securiites
8
+ [**get_security_by_id**](SecurityApi.md#get_security_by_id) | **GET** /securities/{identifier} | Get a Security by ID
9
+ [**get_security_data_point_number**](SecurityApi.md#get_security_data_point_number) | **GET** /securities/{identifier}/data_point/{tag}/number | Get Security Data Point (Number)
10
+ [**get_security_data_point_text**](SecurityApi.md#get_security_data_point_text) | **GET** /securities/{identifier}/data_point/{tag}/text | Get Security Data Point (Text)
11
+ [**get_security_historical_data**](SecurityApi.md#get_security_historical_data) | **GET** /securities/{identifier}/historical_data/{tag} | Get Security Historical Data
12
+ [**get_security_stock_price_adjustments**](SecurityApi.md#get_security_stock_price_adjustments) | **GET** /securities/{identifier}/prices/adjustments | Get Stock Price Adjustments for Security
13
+ [**get_security_stock_prices**](SecurityApi.md#get_security_stock_prices) | **GET** /securities/{identifier}/prices | Get Stock Prices for Security
14
+ [**screen_securities**](SecurityApi.md#screen_securities) | **POST** /securities/screen | Screen Securities
15
+ [**search_securities**](SecurityApi.md#search_securities) | **GET** /securities/search | Search Securities
16
+
17
+
18
+ # **get_all_securities**
19
+ > ApiResponseSecurities get_all_securities(opts)
20
+
21
+ Get All Securiites
22
+
23
+ ### Example
24
+ ```ruby
25
+ # Load the gem
26
+ require 'intrinio-sdk'
27
+
28
+ # Setup authorization
29
+ Intrinio.configure do |config|
30
+ config.api_key['api_key'] = 'YOUR API KEY'
31
+ end
32
+
33
+ security_api = Intrinio::SecurityApi.new
34
+
35
+ opts = {
36
+ next_page: nil # String | Gets the next page of data from a previous API call
37
+ }
38
+
39
+ begin
40
+ result = security_api.get_all_securities(opts)
41
+ p result
42
+ rescue Intrinio::ApiError => e
43
+ puts "Exception when calling SecurityApi->get_all_securities: #{e}"
44
+ end
45
+ ```
46
+
47
+ ### Parameters
48
+
49
+ Name | Type | Description | Notes
50
+ ------------- | ------------- | ------------- | -------------
51
+ **next_page** | **String**| Gets the next page of data from a previous API call | [optional]
52
+
53
+ ### Return type
54
+
55
+ [**ApiResponseSecurities**](ApiResponseSecurities.md)
56
+
57
+ # **get_security_by_id**
58
+ > Security get_security_by_id(identifier)
59
+
60
+ Get a Security by ID
61
+
62
+ ### Example
63
+ ```ruby
64
+ # Load the gem
65
+ require 'intrinio-sdk'
66
+
67
+ # Setup authorization
68
+ Intrinio.configure do |config|
69
+ config.api_key['api_key'] = 'YOUR API KEY'
70
+ end
71
+
72
+ security_api = Intrinio::SecurityApi.new
73
+
74
+ identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
75
+
76
+
77
+ begin
78
+ result = security_api.get_security_by_id(identifier)
79
+ p result
80
+ rescue Intrinio::ApiError => e
81
+ puts "Exception when calling SecurityApi->get_security_by_id: #{e}"
82
+ end
83
+ ```
84
+
85
+ ### Parameters
86
+
87
+ Name | Type | Description | Notes
88
+ ------------- | ------------- | ------------- | -------------
89
+ **identifier** | **String**| A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) |
90
+
91
+ ### Return type
92
+
93
+ [**Security**](Security.md)
94
+
95
+ # **get_security_data_point_number**
96
+ > Float get_security_data_point_number(identifier, tag)
97
+
98
+ Get Security Data Point (Number)
99
+
100
+ Returns a numeric value for the given `tag` for the Security with the given `identifier`
101
+
102
+ ### Example
103
+ ```ruby
104
+ # Load the gem
105
+ require 'intrinio-sdk'
106
+
107
+ # Setup authorization
108
+ Intrinio.configure do |config|
109
+ config.api_key['api_key'] = 'YOUR API KEY'
110
+ end
111
+
112
+ security_api = Intrinio::SecurityApi.new
113
+
114
+ identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
115
+
116
+ tag = "52_week_high" # String | An Intrinio data tag ID or code-name
117
+
118
+
119
+ begin
120
+ result = security_api.get_security_data_point_number(identifier, tag)
121
+ p result
122
+ rescue Intrinio::ApiError => e
123
+ puts "Exception when calling SecurityApi->get_security_data_point_number: #{e}"
124
+ end
125
+ ```
126
+
127
+ ### Parameters
128
+
129
+ Name | Type | Description | Notes
130
+ ------------- | ------------- | ------------- | -------------
131
+ **identifier** | **String**| A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) |
132
+ **tag** | **String**| An Intrinio data tag ID or code-name |
133
+
134
+ ### Return type
135
+
136
+ **Float**
137
+
138
+ # **get_security_data_point_text**
139
+ > String get_security_data_point_text(identifier, tag)
140
+
141
+ Get Security Data Point (Text)
142
+
143
+ Returns a text value for the given `tag` for the Security with the given `identifier`
144
+
145
+ ### Example
146
+ ```ruby
147
+ # Load the gem
148
+ require 'intrinio-sdk'
149
+
150
+ # Setup authorization
151
+ Intrinio.configure do |config|
152
+ config.api_key['api_key'] = 'YOUR API KEY'
153
+ end
154
+
155
+ security_api = Intrinio::SecurityApi.new
156
+
157
+ identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
158
+
159
+ tag = "figi" # String | An Intrinio data tag ID or code-name
160
+
161
+
162
+ begin
163
+ result = security_api.get_security_data_point_text(identifier, tag)
164
+ p result
165
+ rescue Intrinio::ApiError => e
166
+ puts "Exception when calling SecurityApi->get_security_data_point_text: #{e}"
167
+ end
168
+ ```
169
+
170
+ ### Parameters
171
+
172
+ Name | Type | Description | Notes
173
+ ------------- | ------------- | ------------- | -------------
174
+ **identifier** | **String**| A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) |
175
+ **tag** | **String**| An Intrinio data tag ID or code-name |
176
+
177
+ ### Return type
178
+
179
+ **String**
180
+
181
+ # **get_security_historical_data**
182
+ > ApiResponseSecurityHistoricalData get_security_historical_data(identifier, tag, opts)
183
+
184
+ Get Security Historical Data
185
+
186
+ Returns historical values for the given `tag` and the Security with the given `identifier`
187
+
188
+ ### Example
189
+ ```ruby
190
+ # Load the gem
191
+ require 'intrinio-sdk'
192
+
193
+ # Setup authorization
194
+ Intrinio.configure do |config|
195
+ config.api_key['api_key'] = 'YOUR API KEY'
196
+ end
197
+
198
+ security_api = Intrinio::SecurityApi.new
199
+
200
+ identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
201
+
202
+ tag = "volume" # String | An Intrinio data tag ID or code-name
203
+
204
+ opts = {
205
+ type: nil, # String | Filter by type, when applicable
206
+ start_date: Date.parse("2018-01-01"), # Date | Get historical data on or after this date
207
+ end_date: Date.parse("2019-01-01"), # Date | Get historical date on or before this date
208
+ sort_order: "desc", # String | Sort by date `asc` or `desc`
209
+ next_page: nil # String | Gets the next page of data from a previous API call
210
+ }
211
+
212
+ begin
213
+ result = security_api.get_security_historical_data(identifier, tag, opts)
214
+ p result
215
+ rescue Intrinio::ApiError => e
216
+ puts "Exception when calling SecurityApi->get_security_historical_data: #{e}"
217
+ end
218
+ ```
219
+
220
+ ### Parameters
221
+
222
+ Name | Type | Description | Notes
223
+ ------------- | ------------- | ------------- | -------------
224
+ **identifier** | **String**| A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) |
225
+ **tag** | **String**| An Intrinio data tag ID or code-name |
226
+ **type** | **String**| Filter by type, when applicable | [optional]
227
+ **start_date** | **Date**| Get historical data on or after this date | [optional]
228
+ **end_date** | **Date**| Get historical date on or before this date | [optional]
229
+ **sort_order** | **String**| Sort by date `asc` or `desc` | [optional] [default to desc]
230
+ **next_page** | **String**| Gets the next page of data from a previous API call | [optional]
231
+
232
+ ### Return type
233
+
234
+ [**ApiResponseSecurityHistoricalData**](ApiResponseSecurityHistoricalData.md)
235
+
236
+ # **get_security_stock_price_adjustments**
237
+ > ApiResponseSecurityStockPriceAdjustments get_security_stock_price_adjustments(identifier, opts)
238
+
239
+ Get Stock Price Adjustments for Security
240
+
241
+ Return stock price adjustments for the Security with the given `identifier`
242
+
243
+ ### Example
244
+ ```ruby
245
+ # Load the gem
246
+ require 'intrinio-sdk'
247
+
248
+ # Setup authorization
249
+ Intrinio.configure do |config|
250
+ config.api_key['api_key'] = 'YOUR API KEY'
251
+ end
252
+
253
+ security_api = Intrinio::SecurityApi.new
254
+
255
+ identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
256
+
257
+ opts = {
258
+ start_date: Date.parse("2018-01-01"), # Date | Return price adjustments on or after the date
259
+ end_date: Date.parse("2019-01-01"), # Date | Return price adjustments on or before the date
260
+ next_page: nil # String | Gets the next page of data from a previous API call
261
+ }
262
+
263
+ begin
264
+ result = security_api.get_security_stock_price_adjustments(identifier, opts)
265
+ p result
266
+ rescue Intrinio::ApiError => e
267
+ puts "Exception when calling SecurityApi->get_security_stock_price_adjustments: #{e}"
268
+ end
269
+ ```
270
+
271
+ ### Parameters
272
+
273
+ Name | Type | Description | Notes
274
+ ------------- | ------------- | ------------- | -------------
275
+ **identifier** | **String**| A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) |
276
+ **start_date** | **Date**| Return price adjustments on or after the date | [optional]
277
+ **end_date** | **Date**| Return price adjustments on or before the date | [optional]
278
+ **next_page** | **String**| Gets the next page of data from a previous API call | [optional]
279
+
280
+ ### Return type
281
+
282
+ [**ApiResponseSecurityStockPriceAdjustments**](ApiResponseSecurityStockPriceAdjustments.md)
283
+
284
+ # **get_security_stock_prices**
285
+ > ApiResponseSecurityStockPrices get_security_stock_prices(identifier, opts)
286
+
287
+ Get Stock Prices for Security
288
+
289
+ Return stock prices for the Security with the given `identifier`
290
+
291
+ ### Example
292
+ ```ruby
293
+ # Load the gem
294
+ require 'intrinio-sdk'
295
+
296
+ # Setup authorization
297
+ Intrinio.configure do |config|
298
+ config.api_key['api_key'] = 'YOUR API KEY'
299
+ end
300
+
301
+ security_api = Intrinio::SecurityApi.new
302
+
303
+ identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
304
+
305
+ opts = {
306
+ start_date: Date.parse("2018-01-01"), # Date | Return prices on or after the date
307
+ end_date: Date.parse("2019-01-01"), # Date | Return prices on or before the date
308
+ frequency: "daily", # String | Return stock prices in the given frequency
309
+ next_page: nil # String | Gets the next page of data from a previous API call
310
+ }
311
+
312
+ begin
313
+ result = security_api.get_security_stock_prices(identifier, opts)
314
+ p result
315
+ rescue Intrinio::ApiError => e
316
+ puts "Exception when calling SecurityApi->get_security_stock_prices: #{e}"
317
+ end
318
+ ```
319
+
320
+ ### Parameters
321
+
322
+ Name | Type | Description | Notes
323
+ ------------- | ------------- | ------------- | -------------
324
+ **identifier** | **String**| A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) |
325
+ **start_date** | **Date**| Return prices on or after the date | [optional]
326
+ **end_date** | **Date**| Return prices on or before the date | [optional]
327
+ **frequency** | **String**| Return stock prices in the given frequency | [optional] [default to daily]
328
+ **next_page** | **String**| Gets the next page of data from a previous API call | [optional]
329
+
330
+ ### Return type
331
+
332
+ [**ApiResponseSecurityStockPrices**](ApiResponseSecurityStockPrices.md)
333
+
334
+ # **screen_securities**
335
+ > Array<SecurityScreenResult> screen_securities(opts)
336
+
337
+ Screen Securities
338
+
339
+ Screen securities using complex logic
340
+
341
+ ### Example
342
+ ```ruby
343
+ # Load the gem
344
+ require 'intrinio-sdk'
345
+
346
+ # Setup authorization
347
+ Intrinio.configure do |config|
348
+ config.api_key['api_key'] = 'YOUR API KEY'
349
+ end
350
+
351
+ security_api = Intrinio::SecurityApi.new
352
+
353
+ opts = {
354
+ logic: Intrinio::SecurityScreenGroup.new, # SecurityScreenGroup | 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.
355
+ order_column: "order_column_example", # String | Results returned sorted by this column
356
+ order_direction: "asc", # String | Sort order to use with the order_column
357
+ primary_only: false # BOOLEAN | Return only primary securities
358
+ }
359
+
360
+ begin
361
+ result = security_api.screen_securities(opts)
362
+ p result
363
+ rescue Intrinio::ApiError => e
364
+ puts "Exception when calling SecurityApi->screen_securities: #{e}"
365
+ end
366
+ ```
367
+
368
+ ### Parameters
369
+
370
+ Name | Type | Description | Notes
371
+ ------------- | ------------- | ------------- | -------------
372
+ **logic** | [**SecurityScreenGroup**](SecurityScreenGroup.md)| The logic to screen with, consisting of operators, clauses, and nested groups.&lt;br/&gt; See &lt;a href&#x3D;\&quot;/documentation/screener_v2\&quot; target&#x3D;\&quot;_blank\&quot;&gt;screener documentation&lt;/a&gt; for details on how to construct conditions. | [optional]
373
+ **order_column** | **String**| Results returned sorted by this column | [optional]
374
+ **order_direction** | **String**| Sort order to use with the order_column | [optional] [default to asc]
375
+ **primary_only** | **BOOLEAN**| Return only primary securities | [optional] [default to false]
376
+
377
+ ### Return type
378
+
379
+ [**Array&lt;SecurityScreenResult&gt;**](SecurityScreenResult.md)
380
+
381
+ # **search_securities**
382
+ > ApiResponseSecurities search_securities(query)
383
+
384
+ Search Securities
385
+
386
+ Searches for Securities matching the text `query`
387
+
388
+ ### Example
389
+ ```ruby
390
+ # Load the gem
391
+ require 'intrinio-sdk'
392
+
393
+ # Setup authorization
394
+ Intrinio.configure do |config|
395
+ config.api_key['api_key'] = 'YOUR API KEY'
396
+ end
397
+
398
+ security_api = Intrinio::SecurityApi.new
399
+
400
+ query = "Apple" # String |
401
+
402
+
403
+ begin
404
+ result = security_api.search_securities(query)
405
+ p result
406
+ rescue Intrinio::ApiError => e
407
+ puts "Exception when calling SecurityApi->search_securities: #{e}"
408
+ end
409
+ ```
410
+
411
+ ### Parameters
412
+
413
+ Name | Type | Description | Notes
414
+ ------------- | ------------- | ------------- | -------------
415
+ **query** | **String**| |
416
+
417
+ ### Return type
418
+
419
+ [**ApiResponseSecurities**](ApiResponseSecurities.md)
420
+