intrinio-sdk 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/README.md +176 -0
- data/Rakefile +8 -0
- data/docs/ApiResponseCompanies.md +9 -0
- data/docs/ApiResponseCompanyFilings.md +10 -0
- data/docs/ApiResponseCompanyFundamentals.md +10 -0
- data/docs/ApiResponseCompanyHistoricalData.md +10 -0
- data/docs/ApiResponseCompanyNews.md +10 -0
- data/docs/ApiResponseCompanySecurities.md +10 -0
- data/docs/ApiResponseDataTags.md +9 -0
- data/docs/ApiResponseEconomicIndexHistoricalData.md +10 -0
- data/docs/ApiResponseEconomicIndices.md +9 -0
- data/docs/ApiResponseFilings.md +9 -0
- data/docs/ApiResponseHistoricalData.md +9 -0
- data/docs/ApiResponseNews.md +9 -0
- data/docs/ApiResponseReportedFinancials.md +10 -0
- data/docs/ApiResponseSICIndexHistoricalData.md +10 -0
- data/docs/ApiResponseSICIndices.md +9 -0
- data/docs/ApiResponseSecurities.md +9 -0
- data/docs/ApiResponseSecurityHistoricalData.md +10 -0
- data/docs/ApiResponseSecurityStockPriceAdjustments.md +10 -0
- data/docs/ApiResponseSecurityStockPrices.md +10 -0
- data/docs/ApiResponseStandardizedFinancials.md +10 -0
- data/docs/ApiResponseStockExchangeSecurities.md +10 -0
- data/docs/ApiResponseStockExchangeStockPriceAdjustments.md +10 -0
- data/docs/ApiResponseStockExchangeStockPrices.md +10 -0
- data/docs/ApiResponseStockExchanges.md +9 -0
- data/docs/ApiResponseStockMarketIndexHistoricalData.md +10 -0
- data/docs/ApiResponseStockMarketIndices.md +9 -0
- data/docs/Company.md +39 -0
- data/docs/CompanyApi.md +659 -0
- data/docs/CompanyFiling.md +17 -0
- data/docs/CompanyNews.md +13 -0
- data/docs/CompanyNewsSummary.md +12 -0
- data/docs/CompanySummary.md +12 -0
- data/docs/DataPointApi.md +96 -0
- data/docs/DataTag.md +17 -0
- data/docs/DataTagApi.md +184 -0
- data/docs/DataTagSummary.md +11 -0
- data/docs/EconomicIndex.md +19 -0
- data/docs/EconomicIndexSummary.md +18 -0
- data/docs/Filing.md +17 -0
- data/docs/FilingApi.md +142 -0
- data/docs/FilingSummary.md +16 -0
- data/docs/Fundamental.md +16 -0
- data/docs/FundamentalSummary.md +15 -0
- data/docs/FundamentalsApi.md +181 -0
- data/docs/HistoricalData.md +9 -0
- data/docs/HistoricalDataApi.md +64 -0
- data/docs/IndexApi.md +800 -0
- data/docs/ReportedFinancial.md +9 -0
- data/docs/ReportedTag.md +14 -0
- data/docs/SICIndex.md +12 -0
- data/docs/Security.md +34 -0
- data/docs/SecurityApi.md +420 -0
- data/docs/SecurityScreenClause.md +10 -0
- data/docs/SecurityScreenGroup.md +10 -0
- data/docs/SecurityScreenResult.md +9 -0
- data/docs/SecurityScreenResultData.md +10 -0
- data/docs/SecuritySummary.md +17 -0
- data/docs/StandardizedFinancial.md +9 -0
- data/docs/StockExchange.md +17 -0
- data/docs/StockExchangeApi.md +267 -0
- data/docs/StockMarketIndex.md +17 -0
- data/docs/StockMarketIndexSummary.md +16 -0
- data/docs/StockPrice.md +21 -0
- data/docs/StockPriceAdjustment.md +12 -0
- data/docs/StockPriceAdjustmentSummary.md +13 -0
- data/docs/StockPriceSummary.md +20 -0
- data/git_push.sh +55 -0
- data/intrinio-sdk.gemspec +45 -0
- data/lib/intrinio-sdk.rb +105 -0
- data/lib/intrinio-sdk/api/company_api.rb +885 -0
- data/lib/intrinio-sdk/api/data_point_api.rb +141 -0
- data/lib/intrinio-sdk/api/data_tag_api.rb +251 -0
- data/lib/intrinio-sdk/api/filing_api.rb +192 -0
- data/lib/intrinio-sdk/api/fundamentals_api.rb +261 -0
- data/lib/intrinio-sdk/api/historical_data_api.rb +100 -0
- data/lib/intrinio-sdk/api/index_api.rb +1079 -0
- data/lib/intrinio-sdk/api/security_api.rb +568 -0
- data/lib/intrinio-sdk/api/stock_exchange_api.rb +353 -0
- data/lib/intrinio-sdk/api_client.rb +389 -0
- data/lib/intrinio-sdk/api_error.rb +38 -0
- data/lib/intrinio-sdk/configuration.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_companies.rb +200 -0
- data/lib/intrinio-sdk/models/api_response_company_filings.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_company_fundamentals.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_company_historical_data.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_company_news.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_company_securities.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_data_tags.rb +200 -0
- data/lib/intrinio-sdk/models/api_response_economic_index_historical_data.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_economic_indices.rb +200 -0
- data/lib/intrinio-sdk/models/api_response_filings.rb +200 -0
- data/lib/intrinio-sdk/models/api_response_historical_data.rb +200 -0
- data/lib/intrinio-sdk/models/api_response_news.rb +200 -0
- data/lib/intrinio-sdk/models/api_response_reported_financials.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_securities.rb +200 -0
- data/lib/intrinio-sdk/models/api_response_security_historical_data.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_security_stock_price_adjustments.rb +211 -0
- data/lib/intrinio-sdk/models/api_response_security_stock_prices.rb +211 -0
- data/lib/intrinio-sdk/models/api_response_sic_index_historical_data.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_sic_indices.rb +200 -0
- data/lib/intrinio-sdk/models/api_response_standardized_financials.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_stock_exchange_securities.rb +211 -0
- data/lib/intrinio-sdk/models/api_response_stock_exchange_stock_price_adjustments.rb +211 -0
- data/lib/intrinio-sdk/models/api_response_stock_exchange_stock_prices.rb +211 -0
- data/lib/intrinio-sdk/models/api_response_stock_exchanges.rb +200 -0
- data/lib/intrinio-sdk/models/api_response_stock_market_index_historical_data.rb +209 -0
- data/lib/intrinio-sdk/models/api_response_stock_market_indices.rb +200 -0
- data/lib/intrinio-sdk/models/company.rb +498 -0
- data/lib/intrinio-sdk/models/company_filing.rb +278 -0
- data/lib/intrinio-sdk/models/company_news.rb +239 -0
- data/lib/intrinio-sdk/models/company_news_summary.rb +229 -0
- data/lib/intrinio-sdk/models/company_summary.rb +229 -0
- data/lib/intrinio-sdk/models/data_tag.rb +312 -0
- data/lib/intrinio-sdk/models/data_tag_summary.rb +219 -0
- data/lib/intrinio-sdk/models/economic_index.rb +299 -0
- data/lib/intrinio-sdk/models/economic_index_summary.rb +289 -0
- data/lib/intrinio-sdk/models/filing.rb +278 -0
- data/lib/intrinio-sdk/models/filing_summary.rb +269 -0
- data/lib/intrinio-sdk/models/fundamental.rb +302 -0
- data/lib/intrinio-sdk/models/fundamental_summary.rb +292 -0
- data/lib/intrinio-sdk/models/historical_data.rb +199 -0
- data/lib/intrinio-sdk/models/reported_financial.rb +198 -0
- data/lib/intrinio-sdk/models/reported_tag.rb +249 -0
- data/lib/intrinio-sdk/models/security.rb +453 -0
- data/lib/intrinio-sdk/models/security_screen_clause.rb +242 -0
- data/lib/intrinio-sdk/models/security_screen_group.rb +213 -0
- data/lib/intrinio-sdk/models/security_screen_result.rb +199 -0
- data/lib/intrinio-sdk/models/security_screen_result_data.rb +209 -0
- data/lib/intrinio-sdk/models/security_summary.rb +279 -0
- data/lib/intrinio-sdk/models/sic_index.rb +229 -0
- data/lib/intrinio-sdk/models/standardized_financial.rb +198 -0
- data/lib/intrinio-sdk/models/stock_exchange.rb +279 -0
- data/lib/intrinio-sdk/models/stock_market_index.rb +279 -0
- data/lib/intrinio-sdk/models/stock_market_index_summary.rb +269 -0
- data/lib/intrinio-sdk/models/stock_price.rb +352 -0
- data/lib/intrinio-sdk/models/stock_price_adjustment.rb +229 -0
- data/lib/intrinio-sdk/models/stock_price_adjustment_summary.rb +239 -0
- data/lib/intrinio-sdk/models/stock_price_summary.rb +342 -0
- data/lib/intrinio-sdk/version.rb +15 -0
- data/spec/api/company_api_spec.rb +233 -0
- data/spec/api/data_point_api_spec.rb +61 -0
- data/spec/api/data_tag_api_spec.rb +88 -0
- data/spec/api/filing_api_spec.rb +75 -0
- data/spec/api/fundamentals_api_spec.rb +86 -0
- data/spec/api/historical_data_api_spec.rb +53 -0
- data/spec/api/index_api_spec.rb +275 -0
- data/spec/api/security_api_spec.rb +161 -0
- data/spec/api/stock_exchange_api_spec.rb +113 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/api_response_companies_spec.rb +48 -0
- data/spec/models/api_response_company_filings_spec.rb +54 -0
- data/spec/models/api_response_company_fundamentals_spec.rb +54 -0
- data/spec/models/api_response_company_historical_data_spec.rb +54 -0
- data/spec/models/api_response_company_news_spec.rb +54 -0
- data/spec/models/api_response_company_securities_spec.rb +54 -0
- data/spec/models/api_response_data_tags_spec.rb +48 -0
- data/spec/models/api_response_economic_index_historical_data_spec.rb +54 -0
- data/spec/models/api_response_economic_indices_spec.rb +48 -0
- data/spec/models/api_response_filings_spec.rb +48 -0
- data/spec/models/api_response_historical_data_spec.rb +48 -0
- data/spec/models/api_response_news_spec.rb +48 -0
- data/spec/models/api_response_reported_financials_spec.rb +54 -0
- data/spec/models/api_response_securities_spec.rb +48 -0
- data/spec/models/api_response_security_historical_data_spec.rb +54 -0
- data/spec/models/api_response_security_stock_price_adjustments_spec.rb +54 -0
- data/spec/models/api_response_security_stock_prices_spec.rb +54 -0
- data/spec/models/api_response_sic_index_historical_data_spec.rb +54 -0
- data/spec/models/api_response_sic_indices_spec.rb +48 -0
- data/spec/models/api_response_standardized_financials_spec.rb +54 -0
- data/spec/models/api_response_stock_exchange_securities_spec.rb +54 -0
- data/spec/models/api_response_stock_exchange_stock_price_adjustments_spec.rb +54 -0
- data/spec/models/api_response_stock_exchange_stock_prices_spec.rb +54 -0
- data/spec/models/api_response_stock_exchanges_spec.rb +48 -0
- data/spec/models/api_response_stock_market_index_historical_data_spec.rb +54 -0
- data/spec/models/api_response_stock_market_indices_spec.rb +48 -0
- data/spec/models/company_filing_spec.rb +96 -0
- data/spec/models/company_news_spec.rb +72 -0
- data/spec/models/company_news_summary_spec.rb +66 -0
- data/spec/models/company_spec.rb +228 -0
- data/spec/models/company_summary_spec.rb +66 -0
- data/spec/models/data_tag_spec.rb +100 -0
- data/spec/models/data_tag_summary_spec.rb +60 -0
- data/spec/models/economic_index_spec.rb +108 -0
- data/spec/models/economic_index_summary_spec.rb +102 -0
- data/spec/models/filing_spec.rb +96 -0
- data/spec/models/filing_summary_spec.rb +90 -0
- data/spec/models/fundamental_spec.rb +94 -0
- data/spec/models/fundamental_summary_spec.rb +88 -0
- data/spec/models/historical_data_spec.rb +48 -0
- data/spec/models/reported_financial_spec.rb +48 -0
- data/spec/models/reported_tag_spec.rb +78 -0
- data/spec/models/security_screen_clause_spec.rb +58 -0
- data/spec/models/security_screen_group_spec.rb +54 -0
- data/spec/models/security_screen_result_data_spec.rb +54 -0
- data/spec/models/security_screen_result_spec.rb +48 -0
- data/spec/models/security_spec.rb +198 -0
- data/spec/models/security_summary_spec.rb +96 -0
- data/spec/models/sic_index_spec.rb +66 -0
- data/spec/models/standardized_financial_spec.rb +48 -0
- data/spec/models/stock_exchange_spec.rb +96 -0
- data/spec/models/stock_market_index_spec.rb +96 -0
- data/spec/models/stock_market_index_summary_spec.rb +90 -0
- data/spec/models/stock_price_adjustment_spec.rb +66 -0
- data/spec/models/stock_price_adjustment_summary_spec.rb +72 -0
- data/spec/models/stock_price_spec.rb +124 -0
- data/spec/models/stock_price_summary_spec.rb +118 -0
- data/spec/spec_helper.rb +111 -0
- metadata +509 -0
@@ -0,0 +1,16 @@
|
|
1
|
+
# Intrinio::FilingSummary
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | The Intrinio ID of the Filing | [optional]
|
7
|
+
**filing_date** | **Date** | The date when the filing was submitted to the SEC by the company | [optional]
|
8
|
+
**accepted_date** | **DateTime** | The date and time when the filing was accepted by SEC | [optional]
|
9
|
+
**period_end_date** | **Date** | The ending date of the fiscal period for the filing | [optional]
|
10
|
+
**report_type** | **String** | The filing report type | [optional]
|
11
|
+
**sec_unique_id** | **String** | A unique identifier for the filing provided by the SEC | [optional]
|
12
|
+
**filing_url** | **String** | The URL to the filing page on the SEC site | [optional]
|
13
|
+
**report_url** | **String** | The URL to the actual report on the SEC site | [optional]
|
14
|
+
**instance_url** | **String** | The URL for the XBRL filing for the report | [optional]
|
15
|
+
|
16
|
+
|
data/docs/Fundamental.md
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# Intrinio::Fundamental
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | The Intrinio ID of the Fundamental | [optional]
|
7
|
+
**statement_code** | **String** | The code of the financial statement that the Fundamental represents | [optional]
|
8
|
+
**fiscal_year** | **Float** | The fiscal year | [optional]
|
9
|
+
**fiscal_period** | **String** | The fiscal period | [optional]
|
10
|
+
**type** | **String** | The type of Fundamental | [optional]
|
11
|
+
**start_date** | **Date** | The period start date | [optional]
|
12
|
+
**end_date** | **Date** | The period start date | [optional]
|
13
|
+
**filing_date** | **Date** | The date and time when the Fundamental was filed with the SEC | [optional]
|
14
|
+
**company** | [**CompanySummary**](CompanySummary.md) | The Company that the Fundamental was belongs to | [optional]
|
15
|
+
|
16
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Intrinio::FundamentalSummary
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | The Intrinio ID of the Fundamental | [optional]
|
7
|
+
**statement_code** | **String** | The code of the financial statement that the Fundamental represents | [optional]
|
8
|
+
**fiscal_year** | **Float** | The fiscal year | [optional]
|
9
|
+
**fiscal_period** | **String** | The fiscal period | [optional]
|
10
|
+
**type** | **String** | The type of Fundamental | [optional]
|
11
|
+
**start_date** | **Date** | The period start date | [optional]
|
12
|
+
**end_date** | **Date** | The period start date | [optional]
|
13
|
+
**filing_date** | **Date** | The date and time when the Fundamental was filed with the SEC | [optional]
|
14
|
+
|
15
|
+
|
@@ -0,0 +1,181 @@
|
|
1
|
+
# Intrinio::FundamentalsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api-v2.intrinio.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_fundamental_by_id**](FundamentalsApi.md#get_fundamental_by_id) | **GET** /fundamentals/{id} | Get a Fundamental by ID
|
8
|
+
[**get_fundamental_reported_financials**](FundamentalsApi.md#get_fundamental_reported_financials) | **GET** /fundamentals/{id}/reported_financials | Get Reported Financials for a Fundamental
|
9
|
+
[**get_fundamental_standardized_financials**](FundamentalsApi.md#get_fundamental_standardized_financials) | **GET** /fundamentals/{id}/standardized_financials | Get Standardized Financials for a Fundamental
|
10
|
+
[**lookup_fundamental**](FundamentalsApi.md#lookup_fundamental) | **GET** /fundamentals/lookup/{identifier}/{statement_code}/{fiscal_year}/{fiscal_period} | Lookup a Fundamental
|
11
|
+
|
12
|
+
|
13
|
+
# **get_fundamental_by_id**
|
14
|
+
> Fundamental get_fundamental_by_id(id)
|
15
|
+
|
16
|
+
Get a Fundamental by ID
|
17
|
+
|
18
|
+
Retrieves detailed fundamental data for the given `fundamental_id`.
|
19
|
+
|
20
|
+
### Example
|
21
|
+
```ruby
|
22
|
+
# Load the gem
|
23
|
+
require 'intrinio-sdk'
|
24
|
+
|
25
|
+
# Setup authorization
|
26
|
+
Intrinio.configure do |config|
|
27
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
28
|
+
end
|
29
|
+
|
30
|
+
fundamentals_api = Intrinio::FundamentalsApi.new
|
31
|
+
|
32
|
+
id = "fun_ge9LlE" # String | The Intrinio ID for the Fundamental
|
33
|
+
|
34
|
+
|
35
|
+
begin
|
36
|
+
result = fundamentals_api.get_fundamental_by_id(id)
|
37
|
+
p result
|
38
|
+
rescue Intrinio::ApiError => e
|
39
|
+
puts "Exception when calling FundamentalsApi->get_fundamental_by_id: #{e}"
|
40
|
+
end
|
41
|
+
```
|
42
|
+
|
43
|
+
### Parameters
|
44
|
+
|
45
|
+
Name | Type | Description | Notes
|
46
|
+
------------- | ------------- | ------------- | -------------
|
47
|
+
**id** | **String**| The Intrinio ID for the Fundamental |
|
48
|
+
|
49
|
+
### Return type
|
50
|
+
|
51
|
+
[**Fundamental**](Fundamental.md)
|
52
|
+
|
53
|
+
# **get_fundamental_reported_financials**
|
54
|
+
> ApiResponseReportedFinancials get_fundamental_reported_financials(id)
|
55
|
+
|
56
|
+
Get Reported Financials for a Fundamental
|
57
|
+
|
58
|
+
Returns the As-Reported Financials directly from the financial statements of the XBRL filings from the company
|
59
|
+
|
60
|
+
### Example
|
61
|
+
```ruby
|
62
|
+
# Load the gem
|
63
|
+
require 'intrinio-sdk'
|
64
|
+
|
65
|
+
# Setup authorization
|
66
|
+
Intrinio.configure do |config|
|
67
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
68
|
+
end
|
69
|
+
|
70
|
+
fundamentals_api = Intrinio::FundamentalsApi.new
|
71
|
+
|
72
|
+
id = "fun_ge9LlE" # String | The Intrinio ID for the Fundamental
|
73
|
+
|
74
|
+
|
75
|
+
begin
|
76
|
+
result = fundamentals_api.get_fundamental_reported_financials(id)
|
77
|
+
p result
|
78
|
+
rescue Intrinio::ApiError => e
|
79
|
+
puts "Exception when calling FundamentalsApi->get_fundamental_reported_financials: #{e}"
|
80
|
+
end
|
81
|
+
```
|
82
|
+
|
83
|
+
### Parameters
|
84
|
+
|
85
|
+
Name | Type | Description | Notes
|
86
|
+
------------- | ------------- | ------------- | -------------
|
87
|
+
**id** | **String**| The Intrinio ID for the Fundamental |
|
88
|
+
|
89
|
+
### Return type
|
90
|
+
|
91
|
+
[**ApiResponseReportedFinancials**](ApiResponseReportedFinancials.md)
|
92
|
+
|
93
|
+
# **get_fundamental_standardized_financials**
|
94
|
+
> ApiResponseStandardizedFinancials get_fundamental_standardized_financials(id)
|
95
|
+
|
96
|
+
Get Standardized Financials for a Fundamental
|
97
|
+
|
98
|
+
Returns professional-grade historical financial data. This data is standardized, cleansed and verified to ensure the highest quality data sourced directly from the XBRL financial statements. The primary purpose of standardized financials are to facilitate comparability across a single company’s fundamentals and across all companies fundamentals. For example, it is possible to compare total revenues between two companies as of a certain point in time, or within a single company across multiple time periods. This is not possible using the as reported financial statements because of the inherent complexity of reporting standards.
|
99
|
+
|
100
|
+
### Example
|
101
|
+
```ruby
|
102
|
+
# Load the gem
|
103
|
+
require 'intrinio-sdk'
|
104
|
+
|
105
|
+
# Setup authorization
|
106
|
+
Intrinio.configure do |config|
|
107
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
108
|
+
end
|
109
|
+
|
110
|
+
fundamentals_api = Intrinio::FundamentalsApi.new
|
111
|
+
|
112
|
+
id = "fun_ge9LlE" # String | The Intrinio ID for the Fundamental
|
113
|
+
|
114
|
+
|
115
|
+
begin
|
116
|
+
result = fundamentals_api.get_fundamental_standardized_financials(id)
|
117
|
+
p result
|
118
|
+
rescue Intrinio::ApiError => e
|
119
|
+
puts "Exception when calling FundamentalsApi->get_fundamental_standardized_financials: #{e}"
|
120
|
+
end
|
121
|
+
```
|
122
|
+
|
123
|
+
### Parameters
|
124
|
+
|
125
|
+
Name | Type | Description | Notes
|
126
|
+
------------- | ------------- | ------------- | -------------
|
127
|
+
**id** | **String**| The Intrinio ID for the Fundamental |
|
128
|
+
|
129
|
+
### Return type
|
130
|
+
|
131
|
+
[**ApiResponseStandardizedFinancials**](ApiResponseStandardizedFinancials.md)
|
132
|
+
|
133
|
+
# **lookup_fundamental**
|
134
|
+
> Fundamental lookup_fundamental(identifier, statement_code, fiscal_year, fiscal_period)
|
135
|
+
|
136
|
+
Lookup a Fundamental
|
137
|
+
|
138
|
+
Returns the Fundamental for the Company with the given `identifier` and with the given parameters
|
139
|
+
|
140
|
+
### Example
|
141
|
+
```ruby
|
142
|
+
# Load the gem
|
143
|
+
require 'intrinio-sdk'
|
144
|
+
|
145
|
+
# Setup authorization
|
146
|
+
Intrinio.configure do |config|
|
147
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
148
|
+
end
|
149
|
+
|
150
|
+
fundamentals_api = Intrinio::FundamentalsApi.new
|
151
|
+
|
152
|
+
identifier = "AAPL" # String | A Company identifier (Ticker, CIK, LEI, Intrinio ID)
|
153
|
+
|
154
|
+
statement_code = "income_statement" # String | The statement code
|
155
|
+
|
156
|
+
fiscal_year = 2017 # Integer | The fiscal year
|
157
|
+
|
158
|
+
fiscal_period = "FY" # String | The fiscal period
|
159
|
+
|
160
|
+
|
161
|
+
begin
|
162
|
+
result = fundamentals_api.lookup_fundamental(identifier, statement_code, fiscal_year, fiscal_period)
|
163
|
+
p result
|
164
|
+
rescue Intrinio::ApiError => e
|
165
|
+
puts "Exception when calling FundamentalsApi->lookup_fundamental: #{e}"
|
166
|
+
end
|
167
|
+
```
|
168
|
+
|
169
|
+
### Parameters
|
170
|
+
|
171
|
+
Name | Type | Description | Notes
|
172
|
+
------------- | ------------- | ------------- | -------------
|
173
|
+
**identifier** | **String**| A Company identifier (Ticker, CIK, LEI, Intrinio ID) |
|
174
|
+
**statement_code** | **String**| The statement code |
|
175
|
+
**fiscal_year** | **Integer**| The fiscal year |
|
176
|
+
**fiscal_period** | **String**| The fiscal period |
|
177
|
+
|
178
|
+
### Return type
|
179
|
+
|
180
|
+
[**Fundamental**](Fundamental.md)
|
181
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# Intrinio::HistoricalData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**date** | **Date** | The date that the value is present | [optional]
|
7
|
+
**value** | **Float** | The historical value | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,64 @@
|
|
1
|
+
# Intrinio::HistoricalDataApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api-v2.intrinio.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_historical_data**](HistoricalDataApi.md#get_historical_data) | **GET** /historical_data/{identifier}/{tag} | Get Historical Data
|
8
|
+
|
9
|
+
|
10
|
+
# **get_historical_data**
|
11
|
+
> ApiResponseHistoricalData get_historical_data(identifier, tag, opts)
|
12
|
+
|
13
|
+
Get Historical Data
|
14
|
+
|
15
|
+
Returns historical values for the given `tag` and the entity represented by the given `identifier`
|
16
|
+
|
17
|
+
### Example
|
18
|
+
```ruby
|
19
|
+
# Load the gem
|
20
|
+
require 'intrinio-sdk'
|
21
|
+
|
22
|
+
# Setup authorization
|
23
|
+
Intrinio.configure do |config|
|
24
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
25
|
+
end
|
26
|
+
|
27
|
+
historicalData_api = Intrinio::HistoricalDataApi.new
|
28
|
+
|
29
|
+
identifier = "AAPL" # String | An identifier for an entity such as a Company, Security, Index, etc (Ticker, FIGI, ISIN, CUSIP, CIK, LEI, Intrinio ID)
|
30
|
+
|
31
|
+
tag = "marketcap" # String | An Intrinio data tag ID or code-name
|
32
|
+
|
33
|
+
opts = {
|
34
|
+
type: nil, # String | Filter by type, when applicable
|
35
|
+
start_date: Date.parse("2015-01-01"), # Date | Get historical data on or after this date
|
36
|
+
end_date: Date.parse("2019-01-01"), # Date | Get historical date on or before this date
|
37
|
+
sort_order: "desc", # String | Sort by date `asc` or `desc`
|
38
|
+
next_page: nil # String | Gets the next page of data from a previous API call
|
39
|
+
}
|
40
|
+
|
41
|
+
begin
|
42
|
+
result = historicalData_api.get_historical_data(identifier, tag, opts)
|
43
|
+
p result
|
44
|
+
rescue Intrinio::ApiError => e
|
45
|
+
puts "Exception when calling HistoricalDataApi->get_historical_data: #{e}"
|
46
|
+
end
|
47
|
+
```
|
48
|
+
|
49
|
+
### Parameters
|
50
|
+
|
51
|
+
Name | Type | Description | Notes
|
52
|
+
------------- | ------------- | ------------- | -------------
|
53
|
+
**identifier** | **String**| An identifier for an entity such as a Company, Security, Index, etc (Ticker, FIGI, ISIN, CUSIP, CIK, LEI, Intrinio ID) |
|
54
|
+
**tag** | **String**| An Intrinio data tag ID or code-name |
|
55
|
+
**type** | **String**| Filter by type, when applicable | [optional]
|
56
|
+
**start_date** | **Date**| Get historical data on or after this date | [optional]
|
57
|
+
**end_date** | **Date**| Get historical date on or before this date | [optional]
|
58
|
+
**sort_order** | **String**| Sort by date `asc` or `desc` | [optional] [default to desc]
|
59
|
+
**next_page** | **String**| Gets the next page of data from a previous API call | [optional]
|
60
|
+
|
61
|
+
### Return type
|
62
|
+
|
63
|
+
[**ApiResponseHistoricalData**](ApiResponseHistoricalData.md)
|
64
|
+
|
data/docs/IndexApi.md
ADDED
@@ -0,0 +1,800 @@
|
|
1
|
+
# Intrinio::IndexApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api-v2.intrinio.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_all_economic_indices**](IndexApi.md#get_all_economic_indices) | **GET** /indices/economic | Get All Economic Indices
|
8
|
+
[**get_all_sic_indices**](IndexApi.md#get_all_sic_indices) | **GET** /indices/sic | Get All SIC Indices
|
9
|
+
[**get_all_stock_market_indices**](IndexApi.md#get_all_stock_market_indices) | **GET** /indices/stock_market | Get All Stock Market Indices
|
10
|
+
[**get_economic_index_by_id**](IndexApi.md#get_economic_index_by_id) | **GET** /indices/economic/{identifier} | Get an Economic Index by ID
|
11
|
+
[**get_economic_index_data_point_number**](IndexApi.md#get_economic_index_data_point_number) | **GET** /indices/economic/{identifier}/data_point/{tag}/number | Get Economic Index Data Point (Number)
|
12
|
+
[**get_economic_index_data_point_text**](IndexApi.md#get_economic_index_data_point_text) | **GET** /indices/economic/{identifier}/data_point/{tag}/text | Get Economic Index Data Point (Text)
|
13
|
+
[**get_economic_index_historical_data**](IndexApi.md#get_economic_index_historical_data) | **GET** /indices/economic/{identifier}/historical_data/{tag} | Get Economic Index Historical Data
|
14
|
+
[**get_sic_index_by_id**](IndexApi.md#get_sic_index_by_id) | **GET** /indices/sic/{identifier} | Get an SIC Index by ID
|
15
|
+
[**get_sic_index_data_point_number**](IndexApi.md#get_sic_index_data_point_number) | **GET** /indices/sic/{identifier}/data_point/{tag}/number | Get SIC Index Data Point (Number)
|
16
|
+
[**get_sic_index_data_point_text**](IndexApi.md#get_sic_index_data_point_text) | **GET** /indices/sic/{identifier}/data_point/{tag}/text | Get SIC Index Data Point (Text)
|
17
|
+
[**get_sic_index_historical_data**](IndexApi.md#get_sic_index_historical_data) | **GET** /indices/sic/{identifier}/historical_data/{tag} | Get SIC Index Historical Data
|
18
|
+
[**get_stock_market_index_by_id**](IndexApi.md#get_stock_market_index_by_id) | **GET** /indices/stock_market/{identifier} | Get a Stock Market Index by ID
|
19
|
+
[**get_stock_market_index_data_point_number**](IndexApi.md#get_stock_market_index_data_point_number) | **GET** /indices/stock_market/{identifier}/data_point/{tag}/number | Get Stock Market Index Data Point (Number)
|
20
|
+
[**get_stock_market_index_data_point_text**](IndexApi.md#get_stock_market_index_data_point_text) | **GET** /indices/stock_market/{identifier}/data_point/{tag}/text | Get Stock Market Index Data Point (Text)
|
21
|
+
[**get_stock_market_index_historical_data**](IndexApi.md#get_stock_market_index_historical_data) | **GET** /indices/stock_market/{identifier}/historical_data/{tag} | Get Stock Market Index Historical Data
|
22
|
+
[**search_economic_indices**](IndexApi.md#search_economic_indices) | **GET** /indices/economic/search | Search Economic Indices
|
23
|
+
[**search_sic_indices**](IndexApi.md#search_sic_indices) | **GET** /indices/sic/search | Search SIC Indices
|
24
|
+
[**search_stock_markets_indices**](IndexApi.md#search_stock_markets_indices) | **GET** /indices/stock_market/search | Search Stock Market Indices
|
25
|
+
|
26
|
+
|
27
|
+
# **get_all_economic_indices**
|
28
|
+
> ApiResponseEconomicIndices get_all_economic_indices(opts)
|
29
|
+
|
30
|
+
Get All Economic Indices
|
31
|
+
|
32
|
+
### Example
|
33
|
+
```ruby
|
34
|
+
# Load the gem
|
35
|
+
require 'intrinio-sdk'
|
36
|
+
|
37
|
+
# Setup authorization
|
38
|
+
Intrinio.configure do |config|
|
39
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
40
|
+
end
|
41
|
+
|
42
|
+
index_api = Intrinio::IndexApi.new
|
43
|
+
|
44
|
+
opts = {
|
45
|
+
next_page: nil # String | Gets the next page of data from a previous API call
|
46
|
+
}
|
47
|
+
|
48
|
+
begin
|
49
|
+
result = index_api.get_all_economic_indices(opts)
|
50
|
+
p result
|
51
|
+
rescue Intrinio::ApiError => e
|
52
|
+
puts "Exception when calling IndexApi->get_all_economic_indices: #{e}"
|
53
|
+
end
|
54
|
+
```
|
55
|
+
|
56
|
+
### Parameters
|
57
|
+
|
58
|
+
Name | Type | Description | Notes
|
59
|
+
------------- | ------------- | ------------- | -------------
|
60
|
+
**next_page** | **String**| Gets the next page of data from a previous API call | [optional]
|
61
|
+
|
62
|
+
### Return type
|
63
|
+
|
64
|
+
[**ApiResponseEconomicIndices**](ApiResponseEconomicIndices.md)
|
65
|
+
|
66
|
+
# **get_all_sic_indices**
|
67
|
+
> ApiResponseSICIndices get_all_sic_indices(opts)
|
68
|
+
|
69
|
+
Get All SIC Indices
|
70
|
+
|
71
|
+
### Example
|
72
|
+
```ruby
|
73
|
+
# Load the gem
|
74
|
+
require 'intrinio-sdk'
|
75
|
+
|
76
|
+
# Setup authorization
|
77
|
+
Intrinio.configure do |config|
|
78
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
79
|
+
end
|
80
|
+
|
81
|
+
index_api = Intrinio::IndexApi.new
|
82
|
+
|
83
|
+
opts = {
|
84
|
+
next_page: nil # String | Gets the next page of data from a previous API call
|
85
|
+
}
|
86
|
+
|
87
|
+
begin
|
88
|
+
result = index_api.get_all_sic_indices(opts)
|
89
|
+
p result
|
90
|
+
rescue Intrinio::ApiError => e
|
91
|
+
puts "Exception when calling IndexApi->get_all_sic_indices: #{e}"
|
92
|
+
end
|
93
|
+
```
|
94
|
+
|
95
|
+
### Parameters
|
96
|
+
|
97
|
+
Name | Type | Description | Notes
|
98
|
+
------------- | ------------- | ------------- | -------------
|
99
|
+
**next_page** | **String**| Gets the next page of data from a previous API call | [optional]
|
100
|
+
|
101
|
+
### Return type
|
102
|
+
|
103
|
+
[**ApiResponseSICIndices**](ApiResponseSICIndices.md)
|
104
|
+
|
105
|
+
# **get_all_stock_market_indices**
|
106
|
+
> ApiResponseStockMarketIndices get_all_stock_market_indices(opts)
|
107
|
+
|
108
|
+
Get All Stock Market Indices
|
109
|
+
|
110
|
+
### Example
|
111
|
+
```ruby
|
112
|
+
# Load the gem
|
113
|
+
require 'intrinio-sdk'
|
114
|
+
|
115
|
+
# Setup authorization
|
116
|
+
Intrinio.configure do |config|
|
117
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
118
|
+
end
|
119
|
+
|
120
|
+
index_api = Intrinio::IndexApi.new
|
121
|
+
|
122
|
+
opts = {
|
123
|
+
next_page: nil # String | Gets the next page of data from a previous API call
|
124
|
+
}
|
125
|
+
|
126
|
+
begin
|
127
|
+
result = index_api.get_all_stock_market_indices(opts)
|
128
|
+
p result
|
129
|
+
rescue Intrinio::ApiError => e
|
130
|
+
puts "Exception when calling IndexApi->get_all_stock_market_indices: #{e}"
|
131
|
+
end
|
132
|
+
```
|
133
|
+
|
134
|
+
### Parameters
|
135
|
+
|
136
|
+
Name | Type | Description | Notes
|
137
|
+
------------- | ------------- | ------------- | -------------
|
138
|
+
**next_page** | **String**| Gets the next page of data from a previous API call | [optional]
|
139
|
+
|
140
|
+
### Return type
|
141
|
+
|
142
|
+
[**ApiResponseStockMarketIndices**](ApiResponseStockMarketIndices.md)
|
143
|
+
|
144
|
+
# **get_economic_index_by_id**
|
145
|
+
> EconomicIndex get_economic_index_by_id(identifier)
|
146
|
+
|
147
|
+
Get an Economic Index by ID
|
148
|
+
|
149
|
+
### Example
|
150
|
+
```ruby
|
151
|
+
# Load the gem
|
152
|
+
require 'intrinio-sdk'
|
153
|
+
|
154
|
+
# Setup authorization
|
155
|
+
Intrinio.configure do |config|
|
156
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
157
|
+
end
|
158
|
+
|
159
|
+
index_api = Intrinio::IndexApi.new
|
160
|
+
|
161
|
+
identifier = "$GDP" # String | An Index Identifier (symbol, Intrinio ID)
|
162
|
+
|
163
|
+
|
164
|
+
begin
|
165
|
+
result = index_api.get_economic_index_by_id(identifier)
|
166
|
+
p result
|
167
|
+
rescue Intrinio::ApiError => e
|
168
|
+
puts "Exception when calling IndexApi->get_economic_index_by_id: #{e}"
|
169
|
+
end
|
170
|
+
```
|
171
|
+
|
172
|
+
### Parameters
|
173
|
+
|
174
|
+
Name | Type | Description | Notes
|
175
|
+
------------- | ------------- | ------------- | -------------
|
176
|
+
**identifier** | **String**| An Index Identifier (symbol, Intrinio ID) |
|
177
|
+
|
178
|
+
### Return type
|
179
|
+
|
180
|
+
[**EconomicIndex**](EconomicIndex.md)
|
181
|
+
|
182
|
+
# **get_economic_index_data_point_number**
|
183
|
+
> Float get_economic_index_data_point_number(identifier, tag)
|
184
|
+
|
185
|
+
Get Economic Index Data Point (Number)
|
186
|
+
|
187
|
+
Returns a numeric value for the given `tag` for the Economic Index with the given `identifier`
|
188
|
+
|
189
|
+
### Example
|
190
|
+
```ruby
|
191
|
+
# Load the gem
|
192
|
+
require 'intrinio-sdk'
|
193
|
+
|
194
|
+
# Setup authorization
|
195
|
+
Intrinio.configure do |config|
|
196
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
197
|
+
end
|
198
|
+
|
199
|
+
index_api = Intrinio::IndexApi.new
|
200
|
+
|
201
|
+
identifier = "$GDP" # String | An Index Identifier (symbol, Intrinio ID)
|
202
|
+
|
203
|
+
tag = "level" # String | An Intrinio data tag ID or code-name
|
204
|
+
|
205
|
+
|
206
|
+
begin
|
207
|
+
result = index_api.get_economic_index_data_point_number(identifier, tag)
|
208
|
+
p result
|
209
|
+
rescue Intrinio::ApiError => e
|
210
|
+
puts "Exception when calling IndexApi->get_economic_index_data_point_number: #{e}"
|
211
|
+
end
|
212
|
+
```
|
213
|
+
|
214
|
+
### Parameters
|
215
|
+
|
216
|
+
Name | Type | Description | Notes
|
217
|
+
------------- | ------------- | ------------- | -------------
|
218
|
+
**identifier** | **String**| An Index Identifier (symbol, Intrinio ID) |
|
219
|
+
**tag** | **String**| An Intrinio data tag ID or code-name |
|
220
|
+
|
221
|
+
### Return type
|
222
|
+
|
223
|
+
**Float**
|
224
|
+
|
225
|
+
# **get_economic_index_data_point_text**
|
226
|
+
> String get_economic_index_data_point_text(identifier, tag)
|
227
|
+
|
228
|
+
Get Economic Index Data Point (Text)
|
229
|
+
|
230
|
+
Returns a text value for the given `tag` for the Economic Index with the given `identifier`
|
231
|
+
|
232
|
+
### Example
|
233
|
+
```ruby
|
234
|
+
# Load the gem
|
235
|
+
require 'intrinio-sdk'
|
236
|
+
|
237
|
+
# Setup authorization
|
238
|
+
Intrinio.configure do |config|
|
239
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
240
|
+
end
|
241
|
+
|
242
|
+
index_api = Intrinio::IndexApi.new
|
243
|
+
|
244
|
+
identifier = "$GDP" # String | An Index Identifier (symbol, Intrinio ID)
|
245
|
+
|
246
|
+
tag = "level" # String | An Intrinio data tag ID or code-name
|
247
|
+
|
248
|
+
|
249
|
+
begin
|
250
|
+
result = index_api.get_economic_index_data_point_text(identifier, tag)
|
251
|
+
p result
|
252
|
+
rescue Intrinio::ApiError => e
|
253
|
+
puts "Exception when calling IndexApi->get_economic_index_data_point_text: #{e}"
|
254
|
+
end
|
255
|
+
```
|
256
|
+
|
257
|
+
### Parameters
|
258
|
+
|
259
|
+
Name | Type | Description | Notes
|
260
|
+
------------- | ------------- | ------------- | -------------
|
261
|
+
**identifier** | **String**| An Index Identifier (symbol, Intrinio ID) |
|
262
|
+
**tag** | **String**| An Intrinio data tag ID or code-name |
|
263
|
+
|
264
|
+
### Return type
|
265
|
+
|
266
|
+
**String**
|
267
|
+
|
268
|
+
# **get_economic_index_historical_data**
|
269
|
+
> ApiResponseEconomicIndexHistoricalData get_economic_index_historical_data(identifier, tag, opts)
|
270
|
+
|
271
|
+
Get Economic Index Historical Data
|
272
|
+
|
273
|
+
Returns historical values for the given `tag` and the Economic Index with the given `identifier`
|
274
|
+
|
275
|
+
### Example
|
276
|
+
```ruby
|
277
|
+
# Load the gem
|
278
|
+
require 'intrinio-sdk'
|
279
|
+
|
280
|
+
# Setup authorization
|
281
|
+
Intrinio.configure do |config|
|
282
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
283
|
+
end
|
284
|
+
|
285
|
+
index_api = Intrinio::IndexApi.new
|
286
|
+
|
287
|
+
identifier = "$GDP" # String | An Index Identifier (symbol, Intrinio ID)
|
288
|
+
|
289
|
+
tag = "level" # String | An Intrinio data tag ID or code-name
|
290
|
+
|
291
|
+
opts = {
|
292
|
+
type: nil, # String | Filter by type, when applicable
|
293
|
+
start_date: Date.parse("2018-01-01"), # Date | Get historical data on or after this date
|
294
|
+
end_date: Date.parse("2019-01-01"), # Date | Get historical data on or before this date
|
295
|
+
sort_order: "desc", # String | Sort by date `asc` or `desc`
|
296
|
+
next_page: nil # String | Gets the next page of data from a previous API call
|
297
|
+
}
|
298
|
+
|
299
|
+
begin
|
300
|
+
result = index_api.get_economic_index_historical_data(identifier, tag, opts)
|
301
|
+
p result
|
302
|
+
rescue Intrinio::ApiError => e
|
303
|
+
puts "Exception when calling IndexApi->get_economic_index_historical_data: #{e}"
|
304
|
+
end
|
305
|
+
```
|
306
|
+
|
307
|
+
### Parameters
|
308
|
+
|
309
|
+
Name | Type | Description | Notes
|
310
|
+
------------- | ------------- | ------------- | -------------
|
311
|
+
**identifier** | **String**| An Index Identifier (symbol, Intrinio ID) |
|
312
|
+
**tag** | **String**| An Intrinio data tag ID or code-name |
|
313
|
+
**type** | **String**| Filter by type, when applicable | [optional]
|
314
|
+
**start_date** | **Date**| Get historical data on or after this date | [optional]
|
315
|
+
**end_date** | **Date**| Get historical data on or before this date | [optional]
|
316
|
+
**sort_order** | **String**| Sort by date `asc` or `desc` | [optional] [default to desc]
|
317
|
+
**next_page** | **String**| Gets the next page of data from a previous API call | [optional]
|
318
|
+
|
319
|
+
### Return type
|
320
|
+
|
321
|
+
[**ApiResponseEconomicIndexHistoricalData**](ApiResponseEconomicIndexHistoricalData.md)
|
322
|
+
|
323
|
+
# **get_sic_index_by_id**
|
324
|
+
> SICIndex get_sic_index_by_id(identifier)
|
325
|
+
|
326
|
+
Get an SIC Index by ID
|
327
|
+
|
328
|
+
### Example
|
329
|
+
```ruby
|
330
|
+
# Load the gem
|
331
|
+
require 'intrinio-sdk'
|
332
|
+
|
333
|
+
# Setup authorization
|
334
|
+
Intrinio.configure do |config|
|
335
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
336
|
+
end
|
337
|
+
|
338
|
+
index_api = Intrinio::IndexApi.new
|
339
|
+
|
340
|
+
identifier = "$SIC.1" # String | An Index Identifier (symbol, Intrinio ID)
|
341
|
+
|
342
|
+
|
343
|
+
begin
|
344
|
+
result = index_api.get_sic_index_by_id(identifier)
|
345
|
+
p result
|
346
|
+
rescue Intrinio::ApiError => e
|
347
|
+
puts "Exception when calling IndexApi->get_sic_index_by_id: #{e}"
|
348
|
+
end
|
349
|
+
```
|
350
|
+
|
351
|
+
### Parameters
|
352
|
+
|
353
|
+
Name | Type | Description | Notes
|
354
|
+
------------- | ------------- | ------------- | -------------
|
355
|
+
**identifier** | **String**| An Index Identifier (symbol, Intrinio ID) |
|
356
|
+
|
357
|
+
### Return type
|
358
|
+
|
359
|
+
[**SICIndex**](SICIndex.md)
|
360
|
+
|
361
|
+
# **get_sic_index_data_point_number**
|
362
|
+
> Float get_sic_index_data_point_number(identifier, tag)
|
363
|
+
|
364
|
+
Get SIC Index Data Point (Number)
|
365
|
+
|
366
|
+
Returns a numeric value for the given `tag` for the SIC Index with the given `identifier`
|
367
|
+
|
368
|
+
### Example
|
369
|
+
```ruby
|
370
|
+
# Load the gem
|
371
|
+
require 'intrinio-sdk'
|
372
|
+
|
373
|
+
# Setup authorization
|
374
|
+
Intrinio.configure do |config|
|
375
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
376
|
+
end
|
377
|
+
|
378
|
+
index_api = Intrinio::IndexApi.new
|
379
|
+
|
380
|
+
identifier = "$SIC.1" # String | An Index Identifier (symbol, Intrinio ID)
|
381
|
+
|
382
|
+
tag = "level" # String | An Intrinio data tag ID or code-name
|
383
|
+
|
384
|
+
|
385
|
+
begin
|
386
|
+
result = index_api.get_sic_index_data_point_number(identifier, tag)
|
387
|
+
p result
|
388
|
+
rescue Intrinio::ApiError => e
|
389
|
+
puts "Exception when calling IndexApi->get_sic_index_data_point_number: #{e}"
|
390
|
+
end
|
391
|
+
```
|
392
|
+
|
393
|
+
### Parameters
|
394
|
+
|
395
|
+
Name | Type | Description | Notes
|
396
|
+
------------- | ------------- | ------------- | -------------
|
397
|
+
**identifier** | **String**| An Index Identifier (symbol, Intrinio ID) |
|
398
|
+
**tag** | **String**| An Intrinio data tag ID or code-name |
|
399
|
+
|
400
|
+
### Return type
|
401
|
+
|
402
|
+
**Float**
|
403
|
+
|
404
|
+
# **get_sic_index_data_point_text**
|
405
|
+
> String get_sic_index_data_point_text(identifier, tag)
|
406
|
+
|
407
|
+
Get SIC Index Data Point (Text)
|
408
|
+
|
409
|
+
Returns a text value for the given `tag` for the SIC Index with the given `identifier`
|
410
|
+
|
411
|
+
### Example
|
412
|
+
```ruby
|
413
|
+
# Load the gem
|
414
|
+
require 'intrinio-sdk'
|
415
|
+
|
416
|
+
# Setup authorization
|
417
|
+
Intrinio.configure do |config|
|
418
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
419
|
+
end
|
420
|
+
|
421
|
+
index_api = Intrinio::IndexApi.new
|
422
|
+
|
423
|
+
identifier = "$SIC.1" # String | An Index Identifier (symbol, Intrinio ID)
|
424
|
+
|
425
|
+
tag = "level" # String | An Intrinio data tag ID or code-name
|
426
|
+
|
427
|
+
|
428
|
+
begin
|
429
|
+
result = index_api.get_sic_index_data_point_text(identifier, tag)
|
430
|
+
p result
|
431
|
+
rescue Intrinio::ApiError => e
|
432
|
+
puts "Exception when calling IndexApi->get_sic_index_data_point_text: #{e}"
|
433
|
+
end
|
434
|
+
```
|
435
|
+
|
436
|
+
### Parameters
|
437
|
+
|
438
|
+
Name | Type | Description | Notes
|
439
|
+
------------- | ------------- | ------------- | -------------
|
440
|
+
**identifier** | **String**| An Index Identifier (symbol, Intrinio ID) |
|
441
|
+
**tag** | **String**| An Intrinio data tag ID or code-name |
|
442
|
+
|
443
|
+
### Return type
|
444
|
+
|
445
|
+
**String**
|
446
|
+
|
447
|
+
# **get_sic_index_historical_data**
|
448
|
+
> ApiResponseSICIndexHistoricalData get_sic_index_historical_data(identifier, tag, opts)
|
449
|
+
|
450
|
+
Get SIC Index Historical Data
|
451
|
+
|
452
|
+
Returns historical values for the given `tag` and the SIC Index with the given `identifier`
|
453
|
+
|
454
|
+
### Example
|
455
|
+
```ruby
|
456
|
+
# Load the gem
|
457
|
+
require 'intrinio-sdk'
|
458
|
+
|
459
|
+
# Setup authorization
|
460
|
+
Intrinio.configure do |config|
|
461
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
462
|
+
end
|
463
|
+
|
464
|
+
index_api = Intrinio::IndexApi.new
|
465
|
+
|
466
|
+
identifier = "$SIC.1" # String | An Index Identifier (symbol, Intrinio ID)
|
467
|
+
|
468
|
+
tag = "marketcap" # String | An Intrinio data tag ID or code-name
|
469
|
+
|
470
|
+
opts = {
|
471
|
+
type: nil, # String | Filter by type, when applicable
|
472
|
+
start_date: Date.parse("2018-01-01"), # Date | Get historical data on or after this date
|
473
|
+
end_date: Date.parse("2019-01-01"), # Date | Get historical data on or before this date
|
474
|
+
sort_order: "desc", # String | Sort by date `asc` or `desc`
|
475
|
+
next_page: nil # String | Gets the next page of data from a previous API call
|
476
|
+
}
|
477
|
+
|
478
|
+
begin
|
479
|
+
result = index_api.get_sic_index_historical_data(identifier, tag, opts)
|
480
|
+
p result
|
481
|
+
rescue Intrinio::ApiError => e
|
482
|
+
puts "Exception when calling IndexApi->get_sic_index_historical_data: #{e}"
|
483
|
+
end
|
484
|
+
```
|
485
|
+
|
486
|
+
### Parameters
|
487
|
+
|
488
|
+
Name | Type | Description | Notes
|
489
|
+
------------- | ------------- | ------------- | -------------
|
490
|
+
**identifier** | **String**| An Index Identifier (symbol, Intrinio ID) |
|
491
|
+
**tag** | **String**| An Intrinio data tag ID or code-name |
|
492
|
+
**type** | **String**| Filter by type, when applicable | [optional]
|
493
|
+
**start_date** | **Date**| Get historical data on or after this date | [optional]
|
494
|
+
**end_date** | **Date**| Get historical data on or before this date | [optional]
|
495
|
+
**sort_order** | **String**| Sort by date `asc` or `desc` | [optional] [default to desc]
|
496
|
+
**next_page** | **String**| Gets the next page of data from a previous API call | [optional]
|
497
|
+
|
498
|
+
### Return type
|
499
|
+
|
500
|
+
[**ApiResponseSICIndexHistoricalData**](ApiResponseSICIndexHistoricalData.md)
|
501
|
+
|
502
|
+
# **get_stock_market_index_by_id**
|
503
|
+
> StockMarketIndex get_stock_market_index_by_id(identifier)
|
504
|
+
|
505
|
+
Get a Stock Market Index by ID
|
506
|
+
|
507
|
+
### Example
|
508
|
+
```ruby
|
509
|
+
# Load the gem
|
510
|
+
require 'intrinio-sdk'
|
511
|
+
|
512
|
+
# Setup authorization
|
513
|
+
Intrinio.configure do |config|
|
514
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
515
|
+
end
|
516
|
+
|
517
|
+
index_api = Intrinio::IndexApi.new
|
518
|
+
|
519
|
+
identifier = "$DJI" # String | An Index Identifier (symbol, Intrinio ID)
|
520
|
+
|
521
|
+
|
522
|
+
begin
|
523
|
+
result = index_api.get_stock_market_index_by_id(identifier)
|
524
|
+
p result
|
525
|
+
rescue Intrinio::ApiError => e
|
526
|
+
puts "Exception when calling IndexApi->get_stock_market_index_by_id: #{e}"
|
527
|
+
end
|
528
|
+
```
|
529
|
+
|
530
|
+
### Parameters
|
531
|
+
|
532
|
+
Name | Type | Description | Notes
|
533
|
+
------------- | ------------- | ------------- | -------------
|
534
|
+
**identifier** | **String**| An Index Identifier (symbol, Intrinio ID) |
|
535
|
+
|
536
|
+
### Return type
|
537
|
+
|
538
|
+
[**StockMarketIndex**](StockMarketIndex.md)
|
539
|
+
|
540
|
+
# **get_stock_market_index_data_point_number**
|
541
|
+
> Float get_stock_market_index_data_point_number(identifier, tag)
|
542
|
+
|
543
|
+
Get Stock Market Index Data Point (Number)
|
544
|
+
|
545
|
+
Returns a numeric value for the given `tag` for the Stock Market Index with the given `identifier`
|
546
|
+
|
547
|
+
### Example
|
548
|
+
```ruby
|
549
|
+
# Load the gem
|
550
|
+
require 'intrinio-sdk'
|
551
|
+
|
552
|
+
# Setup authorization
|
553
|
+
Intrinio.configure do |config|
|
554
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
555
|
+
end
|
556
|
+
|
557
|
+
index_api = Intrinio::IndexApi.new
|
558
|
+
|
559
|
+
identifier = "$DJI" # String | An Index Identifier (symbol, Intrinio ID)
|
560
|
+
|
561
|
+
tag = "level" # String | An Intrinio data tag ID or code-name
|
562
|
+
|
563
|
+
|
564
|
+
begin
|
565
|
+
result = index_api.get_stock_market_index_data_point_number(identifier, tag)
|
566
|
+
p result
|
567
|
+
rescue Intrinio::ApiError => e
|
568
|
+
puts "Exception when calling IndexApi->get_stock_market_index_data_point_number: #{e}"
|
569
|
+
end
|
570
|
+
```
|
571
|
+
|
572
|
+
### Parameters
|
573
|
+
|
574
|
+
Name | Type | Description | Notes
|
575
|
+
------------- | ------------- | ------------- | -------------
|
576
|
+
**identifier** | **String**| An Index Identifier (symbol, Intrinio ID) |
|
577
|
+
**tag** | **String**| An Intrinio data tag ID or code-name |
|
578
|
+
|
579
|
+
### Return type
|
580
|
+
|
581
|
+
**Float**
|
582
|
+
|
583
|
+
# **get_stock_market_index_data_point_text**
|
584
|
+
> String get_stock_market_index_data_point_text(identifier, tag)
|
585
|
+
|
586
|
+
Get Stock Market Index Data Point (Text)
|
587
|
+
|
588
|
+
Returns a text value for the given `tag` for the Stock Market Index with the given `identifier`
|
589
|
+
|
590
|
+
### Example
|
591
|
+
```ruby
|
592
|
+
# Load the gem
|
593
|
+
require 'intrinio-sdk'
|
594
|
+
|
595
|
+
# Setup authorization
|
596
|
+
Intrinio.configure do |config|
|
597
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
598
|
+
end
|
599
|
+
|
600
|
+
index_api = Intrinio::IndexApi.new
|
601
|
+
|
602
|
+
identifier = "$DJI" # String | An Index Identifier (symbol, Intrinio ID)
|
603
|
+
|
604
|
+
tag = "level" # String | An Intrinio data tag ID or code-name
|
605
|
+
|
606
|
+
|
607
|
+
begin
|
608
|
+
result = index_api.get_stock_market_index_data_point_text(identifier, tag)
|
609
|
+
p result
|
610
|
+
rescue Intrinio::ApiError => e
|
611
|
+
puts "Exception when calling IndexApi->get_stock_market_index_data_point_text: #{e}"
|
612
|
+
end
|
613
|
+
```
|
614
|
+
|
615
|
+
### Parameters
|
616
|
+
|
617
|
+
Name | Type | Description | Notes
|
618
|
+
------------- | ------------- | ------------- | -------------
|
619
|
+
**identifier** | **String**| An Index Identifier (symbol, Intrinio ID) |
|
620
|
+
**tag** | **String**| An Intrinio data tag ID or code-name |
|
621
|
+
|
622
|
+
### Return type
|
623
|
+
|
624
|
+
**String**
|
625
|
+
|
626
|
+
# **get_stock_market_index_historical_data**
|
627
|
+
> ApiResponseStockMarketIndexHistoricalData get_stock_market_index_historical_data(identifier, tag, opts)
|
628
|
+
|
629
|
+
Get Stock Market Index Historical Data
|
630
|
+
|
631
|
+
Returns historical values for the given `tag` and the Stock Market Index with the given `identifier`
|
632
|
+
|
633
|
+
### Example
|
634
|
+
```ruby
|
635
|
+
# Load the gem
|
636
|
+
require 'intrinio-sdk'
|
637
|
+
|
638
|
+
# Setup authorization
|
639
|
+
Intrinio.configure do |config|
|
640
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
641
|
+
end
|
642
|
+
|
643
|
+
index_api = Intrinio::IndexApi.new
|
644
|
+
|
645
|
+
identifier = "$DJI" # String | An Index Identifier (symbol, Intrinio ID)
|
646
|
+
|
647
|
+
tag = "level" # String | An Intrinio data tag ID or code-name
|
648
|
+
|
649
|
+
opts = {
|
650
|
+
type: nil, # String | Filter by type, when applicable
|
651
|
+
start_date: Date.parse("2018-01-01"), # Date | Get historical data on or after this date
|
652
|
+
end_date: Date.parse("2019-01-01"), # Date | Get historical data on or before this date
|
653
|
+
sort_order: "desc", # String | Sort by date `asc` or `desc`
|
654
|
+
next_page: nil # String | Gets the next page of data from a previous API call
|
655
|
+
}
|
656
|
+
|
657
|
+
begin
|
658
|
+
result = index_api.get_stock_market_index_historical_data(identifier, tag, opts)
|
659
|
+
p result
|
660
|
+
rescue Intrinio::ApiError => e
|
661
|
+
puts "Exception when calling IndexApi->get_stock_market_index_historical_data: #{e}"
|
662
|
+
end
|
663
|
+
```
|
664
|
+
|
665
|
+
### Parameters
|
666
|
+
|
667
|
+
Name | Type | Description | Notes
|
668
|
+
------------- | ------------- | ------------- | -------------
|
669
|
+
**identifier** | **String**| An Index Identifier (symbol, Intrinio ID) |
|
670
|
+
**tag** | **String**| An Intrinio data tag ID or code-name |
|
671
|
+
**type** | **String**| Filter by type, when applicable | [optional]
|
672
|
+
**start_date** | **Date**| Get historical data on or after this date | [optional]
|
673
|
+
**end_date** | **Date**| Get historical data on or before this date | [optional]
|
674
|
+
**sort_order** | **String**| Sort by date `asc` or `desc` | [optional] [default to desc]
|
675
|
+
**next_page** | **String**| Gets the next page of data from a previous API call | [optional]
|
676
|
+
|
677
|
+
### Return type
|
678
|
+
|
679
|
+
[**ApiResponseStockMarketIndexHistoricalData**](ApiResponseStockMarketIndexHistoricalData.md)
|
680
|
+
|
681
|
+
# **search_economic_indices**
|
682
|
+
> ApiResponseEconomicIndices search_economic_indices(query)
|
683
|
+
|
684
|
+
Search Economic Indices
|
685
|
+
|
686
|
+
Searches for indices using the text in `query`
|
687
|
+
|
688
|
+
### Example
|
689
|
+
```ruby
|
690
|
+
# Load the gem
|
691
|
+
require 'intrinio-sdk'
|
692
|
+
|
693
|
+
# Setup authorization
|
694
|
+
Intrinio.configure do |config|
|
695
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
696
|
+
end
|
697
|
+
|
698
|
+
index_api = Intrinio::IndexApi.new
|
699
|
+
|
700
|
+
query = "GDP" # String | Search query
|
701
|
+
|
702
|
+
|
703
|
+
begin
|
704
|
+
result = index_api.search_economic_indices(query)
|
705
|
+
p result
|
706
|
+
rescue Intrinio::ApiError => e
|
707
|
+
puts "Exception when calling IndexApi->search_economic_indices: #{e}"
|
708
|
+
end
|
709
|
+
```
|
710
|
+
|
711
|
+
### Parameters
|
712
|
+
|
713
|
+
Name | Type | Description | Notes
|
714
|
+
------------- | ------------- | ------------- | -------------
|
715
|
+
**query** | **String**| Search query |
|
716
|
+
|
717
|
+
### Return type
|
718
|
+
|
719
|
+
[**ApiResponseEconomicIndices**](ApiResponseEconomicIndices.md)
|
720
|
+
|
721
|
+
# **search_sic_indices**
|
722
|
+
> ApiResponseSICIndices search_sic_indices(query)
|
723
|
+
|
724
|
+
Search SIC Indices
|
725
|
+
|
726
|
+
Searches for indices using the text in `query`
|
727
|
+
|
728
|
+
### Example
|
729
|
+
```ruby
|
730
|
+
# Load the gem
|
731
|
+
require 'intrinio-sdk'
|
732
|
+
|
733
|
+
# Setup authorization
|
734
|
+
Intrinio.configure do |config|
|
735
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
736
|
+
end
|
737
|
+
|
738
|
+
index_api = Intrinio::IndexApi.new
|
739
|
+
|
740
|
+
query = "agriculture" # String | Search query
|
741
|
+
|
742
|
+
|
743
|
+
begin
|
744
|
+
result = index_api.search_sic_indices(query)
|
745
|
+
p result
|
746
|
+
rescue Intrinio::ApiError => e
|
747
|
+
puts "Exception when calling IndexApi->search_sic_indices: #{e}"
|
748
|
+
end
|
749
|
+
```
|
750
|
+
|
751
|
+
### Parameters
|
752
|
+
|
753
|
+
Name | Type | Description | Notes
|
754
|
+
------------- | ------------- | ------------- | -------------
|
755
|
+
**query** | **String**| Search query |
|
756
|
+
|
757
|
+
### Return type
|
758
|
+
|
759
|
+
[**ApiResponseSICIndices**](ApiResponseSICIndices.md)
|
760
|
+
|
761
|
+
# **search_stock_markets_indices**
|
762
|
+
> ApiResponseStockMarketIndices search_stock_markets_indices(query)
|
763
|
+
|
764
|
+
Search Stock Market Indices
|
765
|
+
|
766
|
+
Searches for indices using the text in `query`
|
767
|
+
|
768
|
+
### Example
|
769
|
+
```ruby
|
770
|
+
# Load the gem
|
771
|
+
require 'intrinio-sdk'
|
772
|
+
|
773
|
+
# Setup authorization
|
774
|
+
Intrinio.configure do |config|
|
775
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
776
|
+
end
|
777
|
+
|
778
|
+
index_api = Intrinio::IndexApi.new
|
779
|
+
|
780
|
+
query = "dow" # String | Search query
|
781
|
+
|
782
|
+
|
783
|
+
begin
|
784
|
+
result = index_api.search_stock_markets_indices(query)
|
785
|
+
p result
|
786
|
+
rescue Intrinio::ApiError => e
|
787
|
+
puts "Exception when calling IndexApi->search_stock_markets_indices: #{e}"
|
788
|
+
end
|
789
|
+
```
|
790
|
+
|
791
|
+
### Parameters
|
792
|
+
|
793
|
+
Name | Type | Description | Notes
|
794
|
+
------------- | ------------- | ------------- | -------------
|
795
|
+
**query** | **String**| Search query |
|
796
|
+
|
797
|
+
### Return type
|
798
|
+
|
799
|
+
[**ApiResponseStockMarketIndices**](ApiResponseStockMarketIndices.md)
|
800
|
+
|