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,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
|
+
|
data/docs/ReportedTag.md
ADDED
@@ -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
|
+
|
data/docs/SICIndex.md
ADDED
@@ -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
|
+
|
data/docs/Security.md
ADDED
@@ -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
|
+
|
data/docs/SecurityApi.md
ADDED
@@ -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.<br/> See <a href=\"/documentation/screener_v2\" target=\"_blank\">screener documentation</a> 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<SecurityScreenResult>**](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
|
+
|