finnhub_ruby 1.1.18 → 1.1.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/docs/BondTickData.md +6 -0
- data/docs/BondYieldCurve.md +20 -0
- data/docs/BondYieldCurveInfo.md +20 -0
- data/docs/CompanyProfile.md +5 -1
- data/docs/CongressionalTrading.md +20 -0
- data/docs/CongressionalTransaction.md +36 -0
- data/docs/DefaultApi.md +312 -92
- data/docs/Dividends.md +3 -1
- data/docs/DocumentResponse.md +28 -0
- data/docs/ETFHoldingsData.md +3 -1
- data/docs/EarningResult.md +5 -1
- data/docs/ExcerptResponse.md +24 -0
- data/docs/FilingResponse.md +42 -0
- data/docs/InFilingResponse.md +44 -0
- data/docs/InFilingSearchBody.md +20 -0
- data/docs/MutualFundEet.md +20 -0
- data/docs/MutualFundEetPai.md +20 -0
- data/docs/MutualFundHoldingsData.md +3 -1
- data/docs/PriceMetrics.md +2 -0
- data/docs/SearchBody.md +60 -0
- data/docs/SearchFilter.md +20 -0
- data/docs/SearchResponse.md +24 -0
- data/finnhub_ruby-1.1.18.gem +0 -0
- data/lib/finnhub_ruby/api/default_api.rb +296 -86
- data/lib/finnhub_ruby/models/bond_tick_data.rb +37 -1
- data/lib/finnhub_ruby/models/bond_yield_curve.rb +231 -0
- data/lib/finnhub_ruby/models/bond_yield_curve_info.rb +229 -0
- data/lib/finnhub_ruby/models/company_profile.rb +22 -2
- data/lib/finnhub_ruby/models/congressional_trading.rb +231 -0
- data/lib/finnhub_ruby/models/congressional_transaction.rb +309 -0
- data/lib/finnhub_ruby/models/dividends.rb +14 -4
- data/lib/finnhub_ruby/models/document_response.rb +271 -0
- data/lib/finnhub_ruby/models/earning_result.rb +24 -4
- data/lib/finnhub_ruby/models/etf_holdings_data.rb +14 -4
- data/lib/finnhub_ruby/models/excerpt_response.rb +249 -0
- data/lib/finnhub_ruby/models/filing_response.rb +339 -0
- data/lib/finnhub_ruby/models/in_filing_response.rb +351 -0
- data/lib/finnhub_ruby/models/in_filing_search_body.rb +239 -0
- data/lib/finnhub_ruby/models/mutual_fund_eet.rb +228 -0
- data/lib/finnhub_ruby/models/mutual_fund_eet_pai.rb +228 -0
- data/lib/finnhub_ruby/models/mutual_fund_holdings_data.rb +14 -4
- data/lib/finnhub_ruby/models/price_metrics.rb +11 -1
- data/lib/finnhub_ruby/models/search_body.rb +434 -0
- data/lib/finnhub_ruby/models/search_filter.rb +229 -0
- data/lib/finnhub_ruby/models/search_response.rb +251 -0
- data/lib/finnhub_ruby/version.rb +1 -1
- data/lib/finnhub_ruby.rb +14 -0
- data/spec/models/bond_yield_curve_info_spec.rb +40 -0
- data/spec/models/bond_yield_curve_spec.rb +40 -0
- data/spec/models/congressional_trading_spec.rb +40 -0
- data/spec/models/congressional_transaction_spec.rb +88 -0
- data/spec/models/document_response_spec.rb +64 -0
- data/spec/models/excerpt_response_spec.rb +52 -0
- data/spec/models/filing_response_spec.rb +106 -0
- data/spec/models/in_filing_response_spec.rb +112 -0
- data/spec/models/in_filing_search_body_spec.rb +40 -0
- data/spec/models/mutual_fund_eet_pai_spec.rb +40 -0
- data/spec/models/mutual_fund_eet_spec.rb +40 -0
- data/spec/models/search_body_spec.rb +160 -0
- data/spec/models/search_filter_spec.rb +40 -0
- data/spec/models/search_response_spec.rb +52 -0
- metadata +60 -3
@@ -0,0 +1,42 @@
|
|
1
|
+
# FinnhubRuby::FilingResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **filing_id** | **String** | Filing Id in Alpharesearch platform | [optional] |
|
8
|
+
| **title** | **String** | Filing title | [optional] |
|
9
|
+
| **filer_id** | **String** | Id of the entity submitted the filing | [optional] |
|
10
|
+
| **symbol** | **Object** | List of symbol associate with this filing | [optional] |
|
11
|
+
| **name** | **String** | Filer name | [optional] |
|
12
|
+
| **acceptance_date** | **String** | Date the filing is submitted. | [optional] |
|
13
|
+
| **filed_date** | **String** | Date the filing is make available to the public | [optional] |
|
14
|
+
| **report_date** | **String** | Date as which the filing is reported | [optional] |
|
15
|
+
| **form** | **String** | Filing Form | [optional] |
|
16
|
+
| **amend** | **Boolean** | Amendment | [optional] |
|
17
|
+
| **source** | **String** | Filing Source | [optional] |
|
18
|
+
| **page_count** | **Integer** | Estimate number of page when printing | [optional] |
|
19
|
+
| **document_count** | **Integer** | Number of document in this filing | [optional] |
|
20
|
+
|
21
|
+
## Example
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
require 'finnhub_ruby'
|
25
|
+
|
26
|
+
instance = FinnhubRuby::FilingResponse.new(
|
27
|
+
filing_id: null,
|
28
|
+
title: null,
|
29
|
+
filer_id: null,
|
30
|
+
symbol: null,
|
31
|
+
name: null,
|
32
|
+
acceptance_date: null,
|
33
|
+
filed_date: null,
|
34
|
+
report_date: null,
|
35
|
+
form: null,
|
36
|
+
amend: null,
|
37
|
+
source: null,
|
38
|
+
page_count: null,
|
39
|
+
document_count: null
|
40
|
+
)
|
41
|
+
```
|
42
|
+
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# FinnhubRuby::InFilingResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **filing_id** | **String** | Filing Id in Alpharesearch platform | [optional] |
|
8
|
+
| **title** | **String** | Filing title | [optional] |
|
9
|
+
| **filer_id** | **String** | Id of the entity submitted the filing | [optional] |
|
10
|
+
| **symbol** | **Object** | List of symbol associate with this filing | [optional] |
|
11
|
+
| **name** | **String** | Filer name | [optional] |
|
12
|
+
| **acceptance_date** | **String** | Date the filing is submitted. | [optional] |
|
13
|
+
| **filed_date** | **String** | Date the filing is make available to the public | [optional] |
|
14
|
+
| **report_date** | **String** | Date as which the filing is reported | [optional] |
|
15
|
+
| **form** | **String** | Filing Form | [optional] |
|
16
|
+
| **amend** | **Boolean** | Amendment | [optional] |
|
17
|
+
| **source** | **String** | Filing Source | [optional] |
|
18
|
+
| **page_count** | **Integer** | Estimate number of page when printing | [optional] |
|
19
|
+
| **document_count** | **Integer** | Number of document in this filing | [optional] |
|
20
|
+
| **documents** | [**Array<DocumentResponse>**](DocumentResponse.md) | Document for this filing. | [optional] |
|
21
|
+
|
22
|
+
## Example
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
require 'finnhub_ruby'
|
26
|
+
|
27
|
+
instance = FinnhubRuby::InFilingResponse.new(
|
28
|
+
filing_id: null,
|
29
|
+
title: null,
|
30
|
+
filer_id: null,
|
31
|
+
symbol: null,
|
32
|
+
name: null,
|
33
|
+
acceptance_date: null,
|
34
|
+
filed_date: null,
|
35
|
+
report_date: null,
|
36
|
+
form: null,
|
37
|
+
amend: null,
|
38
|
+
source: null,
|
39
|
+
page_count: null,
|
40
|
+
document_count: null,
|
41
|
+
documents: null
|
42
|
+
)
|
43
|
+
```
|
44
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# FinnhubRuby::InFilingSearchBody
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **query** | **String** | Search query | |
|
8
|
+
| **filing_id** | **String** | Filing Id to search | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'finnhub_ruby'
|
14
|
+
|
15
|
+
instance = FinnhubRuby::InFilingSearchBody.new(
|
16
|
+
query: null,
|
17
|
+
filing_id: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# FinnhubRuby::MutualFundEet
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **isin** | **String** | ISIN. | [optional] |
|
8
|
+
| **data** | **Object** | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'finnhub_ruby'
|
14
|
+
|
15
|
+
instance = FinnhubRuby::MutualFundEet.new(
|
16
|
+
isin: null,
|
17
|
+
data: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# FinnhubRuby::MutualFundEetPai
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **isin** | **String** | ISIN. | [optional] |
|
8
|
+
| **data** | **Object** | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'finnhub_ruby'
|
14
|
+
|
15
|
+
instance = FinnhubRuby::MutualFundEetPai.new(
|
16
|
+
isin: null,
|
17
|
+
data: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -11,6 +11,7 @@
|
|
11
11
|
| **share** | **Float** | Number of shares. | [optional] |
|
12
12
|
| **percent** | **Float** | Portfolio's percent | [optional] |
|
13
13
|
| **value** | **Float** | Market value | [optional] |
|
14
|
+
| **asset_type** | **String** | Asset type. Can be 1 of the following values: <code>Equity</code>, <code>ETP</code>, <code>Fund</code>, <code>Bond</code>, <code>Other</code> or empty. | [optional] |
|
14
15
|
|
15
16
|
## Example
|
16
17
|
|
@@ -24,7 +25,8 @@ instance = FinnhubRuby::MutualFundHoldingsData.new(
|
|
24
25
|
cusip: null,
|
25
26
|
share: null,
|
26
27
|
percent: null,
|
27
|
-
value: null
|
28
|
+
value: null,
|
29
|
+
asset_type: null
|
28
30
|
)
|
29
31
|
```
|
30
32
|
|
data/docs/PriceMetrics.md
CHANGED
@@ -5,6 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **symbol** | **String** | Symbol of the company. | [optional] |
|
8
|
+
| **at_date** | **String** | Data date. | [optional] |
|
8
9
|
| **data** | **Object** | | [optional] |
|
9
10
|
|
10
11
|
## Example
|
@@ -14,6 +15,7 @@ require 'finnhub_ruby'
|
|
14
15
|
|
15
16
|
instance = FinnhubRuby::PriceMetrics.new(
|
16
17
|
symbol: null,
|
18
|
+
at_date: null,
|
17
19
|
data: null
|
18
20
|
)
|
19
21
|
```
|
data/docs/SearchBody.md
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
# FinnhubRuby::SearchBody
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **query** | **String** | Search query | |
|
8
|
+
| **isins** | **String** | List of isin to search, comma separated (Max: 50). | [optional] |
|
9
|
+
| **cusips** | **String** | List of cusip to search, comma separated (Max: 50). | [optional] |
|
10
|
+
| **ciks** | **String** | List of SEC Center Index Key to search, comma separated (Max: 50). | [optional] |
|
11
|
+
| **sedar_ids** | **String** | List of SEDAR issuer number to search, comma separated (Max: 50). | [optional] |
|
12
|
+
| **ch_ids** | **String** | List of Companies House number to search, comma separated (Max: 50). | [optional] |
|
13
|
+
| **symbols** | **String** | List of symbols to search, comma separated (Max: 50). | [optional] |
|
14
|
+
| **sedols** | **String** | List of sedols to search, comma separated (Max: 50). | [optional] |
|
15
|
+
| **sources** | **String** | List of sources to search, comma separated (Max: 50). Look at <code>/filter</code> endpoint to see all available values. | [optional] |
|
16
|
+
| **forms** | **String** | List of forms to search, comma separated (Max: 50). Look at <code>/filter</code> endpoint to see all available values. | [optional] |
|
17
|
+
| **gics** | **String** | List of gics to search, comma separated (Max: 50). Look at <code>/filter</code> endpoint to see all available values. | [optional] |
|
18
|
+
| **naics** | **String** | List of sources to search, comma separated (Max: 50). Look at <code>/filter</code> endpoint to see all available values. | [optional] |
|
19
|
+
| **exhibits** | **String** | List of exhibits to search, comma separated (Max: 50). Look at <code>/filter</code> endpoint to see all available values. | [optional] |
|
20
|
+
| **exchanges** | **String** | List of exchanges to search, comma separated (Max: 50). Look at <code>/filter</code> endpoint to see all available values. | [optional] |
|
21
|
+
| **countries** | **String** | List of sources to search, comma separated (Max: 50). Look at <code>/filter</code> endpoint to see all available values. | [optional] |
|
22
|
+
| **acts** | **String** | List of SEC's exchanges act to search, comma separated. Look at <code>/filter</code> endpoint to see all available values. | [optional] |
|
23
|
+
| **caps** | **String** | List of market capitalization to search, comma separated. Look at <code>/filter</code> endpoint to see all available values. | [optional] |
|
24
|
+
| **from_date** | **String** | Search from date in format: YYYY-MM-DD, default from the last 2 years | [optional] |
|
25
|
+
| **to_date** | **String** | Search to date in format: YYYY-MM-DD, default to today | [optional] |
|
26
|
+
| **page** | **String** | Use for pagination, default to page 1 | [optional] |
|
27
|
+
| **sort** | **String** | Sort result by, default: sortMostRecent. Look at <code>/filter</code> endpoint to see all available values. | [optional] |
|
28
|
+
| **highlighted** | **Boolean** | Enable highlight in returned filings. If enabled, only return 10 results each time | [optional] |
|
29
|
+
|
30
|
+
## Example
|
31
|
+
|
32
|
+
```ruby
|
33
|
+
require 'finnhub_ruby'
|
34
|
+
|
35
|
+
instance = FinnhubRuby::SearchBody.new(
|
36
|
+
query: null,
|
37
|
+
isins: null,
|
38
|
+
cusips: null,
|
39
|
+
ciks: null,
|
40
|
+
sedar_ids: null,
|
41
|
+
ch_ids: null,
|
42
|
+
symbols: null,
|
43
|
+
sedols: null,
|
44
|
+
sources: null,
|
45
|
+
forms: null,
|
46
|
+
gics: null,
|
47
|
+
naics: null,
|
48
|
+
exhibits: null,
|
49
|
+
exchanges: null,
|
50
|
+
countries: null,
|
51
|
+
acts: null,
|
52
|
+
caps: null,
|
53
|
+
from_date: null,
|
54
|
+
to_date: null,
|
55
|
+
page: null,
|
56
|
+
sort: null,
|
57
|
+
highlighted: null
|
58
|
+
)
|
59
|
+
```
|
60
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# FinnhubRuby::SearchFilter
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | Filter id, use with respective field in search query body. | [optional] |
|
8
|
+
| **name** | **String** | Display name. | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'finnhub_ruby'
|
14
|
+
|
15
|
+
instance = FinnhubRuby::SearchFilter.new(
|
16
|
+
id: null,
|
17
|
+
name: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# FinnhubRuby::SearchResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **count** | **Integer** | Total filing matched your search criteria. | [optional] |
|
8
|
+
| **took** | **Integer** | Time took to execute your search query on our server, value in ms. | [optional] |
|
9
|
+
| **page** | **Integer** | Current search page | [optional] |
|
10
|
+
| **filings** | [**Array<FilingResponse>**](FilingResponse.md) | Filing match your search criteria. | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'finnhub_ruby'
|
16
|
+
|
17
|
+
instance = FinnhubRuby::SearchResponse.new(
|
18
|
+
count: null,
|
19
|
+
took: null,
|
20
|
+
page: null,
|
21
|
+
filings: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
Binary file
|