Skip to content

Commit 54942ad

Browse files
No release notes for this build
1 parent 1b68faf commit 54942ad

File tree

683 files changed

+2446
-694
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

683 files changed

+2446
-694
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ To get an API key, [sign up here](https://intrinio.com/).
44

55
Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://docs.intrinio.com/documentation/api_v2). If you need additional help in using the API, please visit the [Intrinio website](https://intrinio.com) and click on the chat icon in the lower right corner.
66

7-
- API version: 2.103.0
8-
- Package version: 6.39.0
7+
- API version: 2.107.0
8+
- Package version: 6.40.0
99

1010

1111
## Requirements.
@@ -134,6 +134,7 @@ Class | Method | HTTP request | Description
134134
*ETFsApi* | [**get_all_etfs**](docs/ETFsApi.md#get_all_etfs) | **GET** /etfs | All ETFs
135135
*ETFsApi* | [**get_etf**](docs/ETFsApi.md#get_etf) | **GET** /etfs/{identifier} | Lookup ETF
136136
*ETFsApi* | [**get_etf_analytics**](docs/ETFsApi.md#get_etf_analytics) | **GET** /etfs/{identifier}/analytics | ETF Analytics
137+
*ETFsApi* | [**get_etf_historical_stats**](docs/ETFsApi.md#get_etf_historical_stats) | **GET** /etfs/{identifier}/historical_stats | Exchange Traded Fund (ETF) stats
137138
*ETFsApi* | [**get_etf_holdings**](docs/ETFsApi.md#get_etf_holdings) | **GET** /etfs/{identifier}/holdings | ETF Holdings
138139
*ETFsApi* | [**get_etf_stats**](docs/ETFsApi.md#get_etf_stats) | **GET** /etfs/{identifier}/stats | Exchange Traded Fund (ETF) stats
139140
*ETFsApi* | [**search_etfs**](docs/ETFsApi.md#search_etfs) | **GET** /etfs/search | Search ETFs
@@ -276,6 +277,8 @@ Class | Method | HTTP request | Description
276277
*SecurityApi* | [**get_security_replay_file**](docs/SecurityApi.md#get_security_replay_file) | **GET** /securities/replay | Security Replay File
277278
*SecurityApi* | [**get_security_snapshots**](docs/SecurityApi.md#get_security_snapshots) | **GET** /securities/snapshots | Realtime Stock Prices Snapshot
278279
*SecurityApi* | [**get_security_stock_price_adjustments**](docs/SecurityApi.md#get_security_stock_price_adjustments) | **GET** /securities/{identifier}/prices/adjustments | Stock Price Adjustments by Security
280+
*SecurityApi* | [**get_security_stock_price_adjustments_dividends**](docs/SecurityApi.md#get_security_stock_price_adjustments_dividends) | **GET** /securities/{identifier}/prices/adjustments/dividends | Dividends by Security
281+
*SecurityApi* | [**get_security_stock_price_adjustments_splits**](docs/SecurityApi.md#get_security_stock_price_adjustments_splits) | **GET** /securities/{identifier}/prices/adjustments/splits | Splits by Security
279282
*SecurityApi* | [**get_security_stock_prices**](docs/SecurityApi.md#get_security_stock_prices) | **GET** /securities/{identifier}/prices | Stock Prices by Security
280283
*SecurityApi* | [**get_security_trades**](docs/SecurityApi.md#get_security_trades) | **GET** /securities/trades | Security Trades
281284
*SecurityApi* | [**get_security_trades_by_symbol**](docs/SecurityApi.md#get_security_trades_by_symbol) | **GET** /securities/{identifier}/trades | Security Trades By Symbol
@@ -291,6 +294,8 @@ Class | Method | HTTP request | Description
291294
*StockExchangeApi* | [**get_stock_exchange_gainers**](docs/StockExchangeApi.md#get_stock_exchange_gainers) | **GET** /stock_exchanges/{identifier}/gainers | Top Gainers by Exchange
292295
*StockExchangeApi* | [**get_stock_exchange_losers**](docs/StockExchangeApi.md#get_stock_exchange_losers) | **GET** /stock_exchanges/{identifier}/losers | Top Losers by Exchange
293296
*StockExchangeApi* | [**get_stock_exchange_price_adjustments**](docs/StockExchangeApi.md#get_stock_exchange_price_adjustments) | **GET** /stock_exchanges/{identifier}/prices/adjustments | Stock Price Adjustments by Exchange
297+
*StockExchangeApi* | [**get_stock_exchange_price_adjustments_dividends**](docs/StockExchangeApi.md#get_stock_exchange_price_adjustments_dividends) | **GET** /stock_exchanges/{identifier}/prices/adjustments/dividends | Dividends by date for exchange
298+
*StockExchangeApi* | [**get_stock_exchange_price_adjustments_splits**](docs/StockExchangeApi.md#get_stock_exchange_price_adjustments_splits) | **GET** /stock_exchanges/{identifier}/prices/adjustments/splits | Splits by date for exchange
294299
*StockExchangeApi* | [**get_stock_exchange_prices**](docs/StockExchangeApi.md#get_stock_exchange_prices) | **GET** /stock_exchanges/{identifier}/prices | Stock Prices by Exchange
295300
*StockExchangeApi* | [**get_stock_exchange_quote**](docs/StockExchangeApi.md#get_stock_exchange_quote) | **GET** /stock_exchanges/{identifier}/quote | Realtime Quote Prices by Exchange
296301
*StockExchangeApi* | [**get_stock_exchange_realtime_prices**](docs/StockExchangeApi.md#get_stock_exchange_realtime_prices) | **GET** /stock_exchanges/{identifier}/prices/realtime | Realtime Stock Prices by Exchange
@@ -521,6 +526,7 @@ Class | Method | HTTP request | Description
521526
- [ESGRatingWithCompany](docs/ESGRatingWithCompany.md)
522527
- [ETF](docs/ETF.md)
523528
- [ETFAnalytics](docs/ETFAnalytics.md)
529+
- [ETFHistoricalStats](docs/ETFHistoricalStats.md)
524530
- [ETFHolding](docs/ETFHolding.md)
525531
- [ETFStats](docs/ETFStats.md)
526532
- [ETFSummary](docs/ETFSummary.md)

docs/CompanyApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,7 @@ Name | Type | Description | Notes
11991199
#### News Article Body
12001200

12011201

1202-
Returns the body of a news article. This endpoint requires additional authorization beyond basic news access. Please see a representative for details.
1202+
Returns the body of a news article for moody sources. This endpoint requires additional authorization beyond basic news access and is for your internal use only - no display. Please see a representative for details.
12031203

12041204
[//]: # (END_OVERVIEW)
12051205

docs/ETFHistoricalStats.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
3+
[//]: # (CLASS:ETFHistoricalStats)
4+
5+
[//]: # (KIND:object)
6+
7+
### ETFHistoricalStats
8+
9+
#### Properties
10+
11+
[//]: # (START_DEFINITION)
12+
13+
Name | Type | Description
14+
------------ | ------------- | -------------
15+
**messages** | [**list[ERRORUNKNOWN]**](.md) | A list of messages related to the request, such as warnings or errors.  
16+
**etf** | [**ETFSummary**](ETFSummary.md) | A brief summary of the ETF it which these stats refer. Not included when returning historical stats.  
17+
**stats** | [**list[ETFStats]**](ETFStats.md) | The historical stats for the ETF  
18+
**next_page** | str | The token required to request the next page of the data. If null, no further results are available.  
19+
20+
[//]: # (END_DEFINITION)
21+
22+
23+
[//]: # (CONTAINED_CLASS:)
24+
25+
26+
[//]: # (CONTAINED_CLASS:ETFSummary)
27+
28+
29+
[//]: # (CONTAINED_CLASS:ETFStats)
30+
31+
32+

docs/ETFStats.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Name | Type | Description
4242
**calendar_year_1_return_split_only** | float | One year ago calendar year return excluding dividends  
4343
**calendar_year_to_date_return_split_and_dividend** | float | Calendar year to date (YTD) return including dividends  
4444
**calendar_year_to_date_return_split_only** | float | Calendar year to date (YTD) return excluding dividends  
45-
**etf** | [**ETFSummary**](ETFSummary.md) |  
45+
**etf** | [**ETFSummary**](ETFSummary.md) | A brief summary of the ETF to which these stats refer. Not included when part of historical stats.  
4646

4747
[//]: # (END_DEFINITION)
4848

docs/ETFsApi.md

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Method | HTTP request | Description
77
[**get_all_etfs**](ETFsApi.md#get_all_etfs) | **GET** /etfs | All ETFs
88
[**get_etf**](ETFsApi.md#get_etf) | **GET** /etfs/{identifier} | Lookup ETF
99
[**get_etf_analytics**](ETFsApi.md#get_etf_analytics) | **GET** /etfs/{identifier}/analytics | ETF Analytics
10+
[**get_etf_historical_stats**](ETFsApi.md#get_etf_historical_stats) | **GET** /etfs/{identifier}/historical_stats | Exchange Traded Fund (ETF) stats
1011
[**get_etf_holdings**](ETFsApi.md#get_etf_holdings) | **GET** /etfs/{identifier}/holdings | ETF Holdings
1112
[**get_etf_stats**](ETFsApi.md#get_etf_stats) | **GET** /etfs/{identifier}/stats | Exchange Traded Fund (ETF) stats
1213
[**search_etfs**](ETFsApi.md#search_etfs) | **GET** /etfs/search | Search ETFs
@@ -242,6 +243,87 @@ Name | Type | Description | Notes
242243
[//]: # (END_OPERATION)
243244

244245

246+
[//]: # (START_OPERATION)
247+
248+
[//]: # (CLASS:ETFsApi)
249+
250+
[//]: # (METHOD:get_etf_historical_stats)
251+
252+
[//]: # (RETURN_TYPE:ETFHistoricalStats)
253+
254+
[//]: # (RETURN_TYPE_KIND:object)
255+
256+
[//]: # (RETURN_TYPE_DOC:ETFHistoricalStats.md)
257+
258+
[//]: # (OPERATION:get_etf_historical_stats_v2)
259+
260+
[//]: # (ENDPOINT:/etfs/{identifier}/historical_stats)
261+
262+
[//]: # (DOCUMENT_LINK:ETFsApi.md#get_etf_historical_stats)
263+
264+
## **get_etf_historical_stats**
265+
266+
[**View Intrinio API Documentation**](https://docs.intrinio.com/documentation/python/get_etf_historical_stats_v2)
267+
268+
[//]: # (START_OVERVIEW)
269+
270+
> ETFHistoricalStats get_etf_historical_stats(identifier, start_date=start_date, end_date=end_date, page_size=page_size)
271+
272+
#### Exchange Traded Fund (ETF) stats
273+
274+
275+
Returns comprehensive key US ETF historical performance statistics, including prices, NAVs, flows, returns, and much more for both trailing and calendar year periods.
276+
277+
[//]: # (END_OVERVIEW)
278+
279+
### Example
280+
[//]: # (START_CODE_EXAMPLE)
281+
282+
```python
283+
from __future__ import print_function
284+
import time
285+
import intrinio_sdk as intrinio
286+
from intrinio_sdk.rest import ApiException
287+
288+
intrinio.ApiClient().set_api_key('YOUR_API_KEY')
289+
intrinio.ApiClient().allow_retries(True)
290+
291+
identifier = 'SPY'
292+
start_date = '2020-01-01'
293+
end_date = '2020-12-31'
294+
page_size = 100
295+
296+
response = intrinio.ETFsApi().get_etf_historical_stats(identifier, start_date=start_date, end_date=end_date, page_size=page_size)
297+
print(response)
298+
299+
# Note: For a Pandas DataFrame, import Pandas and use pd.DataFrame(response.property_name_dict)
300+
```
301+
[//]: # (END_CODE_EXAMPLE)
302+
303+
[//]: # (START_DEFINITION)
304+
305+
### Parameters
306+
307+
[//]: # (START_PARAMETERS)
308+
309+
310+
Name | Type | Description | Notes
311+
------------- | ------------- | ------------- | -------------
312+
**identifier** | str| An ETF identifier (Ticker, Figi Ticker, ISIN, RIC, Intrinio ID) |  
313+
**start_date** | date| The start date for the historical stats data in YYYY-MM-DD format. | [optional]  
314+
**end_date** | date| The end date for the historical stats data in YYYY-MM-DD format. | [optional]  
315+
**page_size** | int| The maximum number of results to return per page. | [optional] [default to 100]  
316+
<br/>
317+
318+
[//]: # (END_PARAMETERS)
319+
320+
### Return type
321+
322+
[**ETFHistoricalStats**](ETFHistoricalStats.md)
323+
324+
[//]: # (END_OPERATION)
325+
326+
245327
[//]: # (START_OPERATION)
246328

247329
[//]: # (CLASS:ETFsApi)

docs/Filing.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ Name | Type | Description
2424
**industry_category** | str | The company&#39;s operating industry category &nbsp;
2525
**industry_group** | str | The company&#39;s operating industry group &nbsp;
2626
**word_count** | int | The number of words in the filing &nbsp;
27+
**earnings_disclosed_at** | datetime | The date and time when the earnings information was first disclosed via 8-K filing &nbsp;
28+
**earnings_disclosed_8k_id** | str | The Intrinio ID of the 8-K filing where earnings were first disclosed &nbsp;
29+
**earnings_8k_url** | str | The URL to the 8-K filing page on the SEC site where earnings were first disclosed &nbsp;
2730
**company** | [**CompanySummary**](CompanySummary.md) | &nbsp;
2831

2932
[//]: # (END_DEFINITION)

docs/Fundamental.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ Name | Type | Description
2222
**filing_date** | datetime | The date and time when the Fundamental was filed with the SEC &nbsp;
2323
**is_latest** | bool | Is this the latest fundamental available based on the company&#39;s most recent filings? Use the Lookup Fundamental endpoint to find the latest fundamental (&lt;a href&#x3D;\&quot;https://docs.intrinio.com/documentation/web_api/lookup_fundamental_v2\&quot; target&#x3D;\&quot;_blank\&quot;&gt;reference&lt;/a&gt;) &nbsp;
2424
**updated_date** | datetime | The date and time when the fundamental was last updated &nbsp;
25+
**first_calculable** | datetime | The date and time when the fundamental was first calculable &nbsp;
26+
**earnings_disclosed_at** | datetime | The date and time when the earnings information was first disclosed via 8-K filing &nbsp;
2527
**company** | [**CompanySummary**](CompanySummary.md) | The Company that the Fundamental was belongs to &nbsp;
2628

2729
[//]: # (END_DEFINITION)

docs/OptionsApi.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ Name | Type | Description | Notes
920920

921921
[//]: # (START_OVERVIEW)
922922

923-
> ApiResponseOptionsChainRealtime get_options_chain_realtime(symbol, expiration, source=source, type=type, strike=strike, strike_greater_than=strike_greater_than, strike_less_than=strike_less_than, volume_greater_than=volume_greater_than, volume_less_than=volume_less_than, open_interest_greater_than=open_interest_greater_than, open_interest_less_than=open_interest_less_than, moneyness=moneyness, stock_price_source=stock_price_source, model=model, show_extended_price=show_extended_price, include_related_symbols=include_related_symbols)
923+
> ApiResponseOptionsChainRealtime get_options_chain_realtime(symbol, expiration, source=source, type=type, strike=strike, strike_greater_than=strike_greater_than, strike_less_than=strike_less_than, volume_greater_than=volume_greater_than, volume_less_than=volume_less_than, open_interest_greater_than=open_interest_greater_than, open_interest_less_than=open_interest_less_than, moneyness=moneyness, stock_price_source=stock_price_source, model=model, show_extended_price=show_extended_price, include_related_symbols=include_related_symbols, show_stats=show_stats)
924924
925925
#### Options Chain Realtime
926926

@@ -950,8 +950,9 @@ stock_price_source = ''
950950
model = ''
951951
show_extended_price = ''
952952
include_related_symbols = False
953+
show_stats = ''
953954

954-
response = intrinio.OptionsApi().get_options_chain_realtime(symbol, expiration, source=source, type=type, moneyness=moneyness, stock_price_source=stock_price_source, model=model, show_extended_price=show_extended_price, include_related_symbols=include_related_symbols)
955+
response = intrinio.OptionsApi().get_options_chain_realtime(symbol, expiration, source=source, type=type, moneyness=moneyness, stock_price_source=stock_price_source, model=model, show_extended_price=show_extended_price, include_related_symbols=include_related_symbols, show_stats=show_stats)
955956
print(response)
956957

957958
# Note: For a Pandas DataFrame, import Pandas and use pd.DataFrame(response.property_name_dict)
@@ -983,6 +984,7 @@ Name | Type | Description | Notes
983984
**model** | str| Model for calculating Greek values. Default is black_scholes. | [optional] &nbsp;
984985
**show_extended_price** | bool| Whether to include open close high low type fields. | [optional] &nbsp;
985986
**include_related_symbols** | bool| Include related symbols that end in a 1 or 2 because of a corporate action. | [optional] &nbsp;
987+
**show_stats** | bool| Whether to include Greek calculations or not. | [optional] &nbsp;
986988
<br/>
987989

988990
[//]: # (END_PARAMETERS)
@@ -1261,7 +1263,7 @@ Name | Type | Description | Notes
12611263

12621264
[//]: # (START_OVERVIEW)
12631265

1264-
> ApiResponseOptionsGreeksByTickerRealtime get_options_greeks_by_ticker(identifier, source=source, model=model, iv_mode=iv_mode, stock_price_source=stock_price_source, expiration_start_date=expiration_start_date, expiration_end_date=expiration_end_date, strike=strike, strike_greater_than=strike_greater_than, strike_less_than=strike_less_than, page_size=page_size)
1266+
> ApiResponseOptionsGreeksByTickerRealtime get_options_greeks_by_ticker(identifier, source=source, model=model, iv_mode=iv_mode, stock_price_source=stock_price_source, expiration_start_date=expiration_start_date, expiration_end_date=expiration_end_date, strike=strike, strike_greater_than=strike_greater_than, strike_less_than=strike_less_than, page_size=page_size, next_page=next_page)
12651267
12661268
#### Options Realtime Greeks & Derived Price by Ticker
12671269

@@ -1293,8 +1295,9 @@ strike = 3.4
12931295
strike_greater_than = 3.4
12941296
strike_less_than = 3.4
12951297
page_size = 250
1298+
next_page = ''
12961299

1297-
response = intrinio.OptionsApi().get_options_greeks_by_ticker(identifier, source=source, model=model, iv_mode=iv_mode, stock_price_source=stock_price_source, expiration_start_date=expiration_start_date, expiration_end_date=expiration_end_date, strike=strike, strike_greater_than=strike_greater_than, strike_less_than=strike_less_than, page_size=page_size)
1300+
response = intrinio.OptionsApi().get_options_greeks_by_ticker(identifier, source=source, model=model, iv_mode=iv_mode, stock_price_source=stock_price_source, expiration_start_date=expiration_start_date, expiration_end_date=expiration_end_date, strike=strike, strike_greater_than=strike_greater_than, strike_less_than=strike_less_than, page_size=page_size, next_page=next_page)
12981301
print(response)
12991302

13001303
# Note: For a Pandas DataFrame, import Pandas and use pd.DataFrame(response.property_name_dict)
@@ -1321,6 +1324,7 @@ Name | Type | Description | Notes
13211324
**strike_greater_than** | float| Filter options by minimum strike price | [optional] &nbsp;
13221325
**strike_less_than** | float| Filter options by maximum strike price | [optional] &nbsp;
13231326
**page_size** | int| Number of results to return per page | [optional] [default to 250] &nbsp;
1327+
**next_page** | str| Gets the next page of data from a previous API call | [optional] &nbsp;
13241328
<br/>
13251329

13261330
[//]: # (END_PARAMETERS)
@@ -2175,7 +2179,7 @@ Name | Type | Description | Notes
21752179

21762180
[//]: # (START_OVERVIEW)
21772181

2178-
> ApiResponseOptionsPricesByTickerRealtime get_options_prices_realtime_by_ticker(symbol, source=source, iv_mode=iv_mode, next_page=next_page, page_size=page_size, stock_price_source=stock_price_source, model=model, show_extended_price=show_extended_price, expiration_start_date=expiration_start_date, expiration_end_date=expiration_end_date, strike=strike)
2182+
> ApiResponseOptionsPricesByTickerRealtime get_options_prices_realtime_by_ticker(symbol, source=source, iv_mode=iv_mode, next_page=next_page, page_size=page_size, stock_price_source=stock_price_source, model=model, show_extended_price=show_extended_price, expiration_start_date=expiration_start_date, expiration_end_date=expiration_end_date, strike=strike, show_stats=show_stats, next_page2=next_page2)
21792183
21802184
#### Option Prices Realtime By Ticker
21812185

@@ -2207,8 +2211,10 @@ show_extended_price = ''
22072211
expiration_start_date = "2024-01-01"
22082212
expiration_end_date = "2024-02-02"
22092213
strike = 100.0
2214+
show_stats = ''
2215+
next_page2 = ''
22102216

2211-
response = intrinio.OptionsApi().get_options_prices_realtime_by_ticker(symbol, source=source, iv_mode=iv_mode, next_page=next_page, page_size=page_size, stock_price_source=stock_price_source, model=model, show_extended_price=show_extended_price, expiration_start_date=expiration_start_date, expiration_end_date=expiration_end_date, strike=strike)
2217+
response = intrinio.OptionsApi().get_options_prices_realtime_by_ticker(symbol, source=source, iv_mode=iv_mode, next_page=next_page, page_size=page_size, stock_price_source=stock_price_source, model=model, show_extended_price=show_extended_price, expiration_start_date=expiration_start_date, expiration_end_date=expiration_end_date, strike=strike, show_stats=show_stats, next_page2=next_page2)
22122218
print(response)
22132219

22142220
# Note: For a Pandas DataFrame, import Pandas and use pd.DataFrame(response.property_name_dict)
@@ -2235,6 +2241,8 @@ Name | Type | Description | Notes
22352241
**expiration_start_date** | [**object**](.md)| Filter out contracts that expire before this date. | [optional] &nbsp;
22362242
**expiration_end_date** | [**object**](.md)| Filter out contracts that expire after this date. | [optional] &nbsp;
22372243
**strike** | float| Filter out contracts that have this strike price. | [optional] &nbsp;
2244+
**show_stats** | bool| Whether to include Greek calculations or not. | [optional] &nbsp;
2245+
**next_page2** | str| Gets the next page of data from a previous API call | [optional] &nbsp;
22382246
<br/>
22392247

22402248
[//]: # (END_PARAMETERS)

0 commit comments

Comments
 (0)