From 85e63dd756154b7b878a868b11bb9167b91b2623 Mon Sep 17 00:00:00 2001 From: Theo Linnemann Date: Thu, 12 Sep 2019 14:40:00 -0400 Subject: [PATCH 1/2] Add support for After Hours data Add support for afterHours parameter via IEX intraday query. See 2.5.3 Historical Intraday Prices Endpoint: https://api.tiingo.com/documentation/iex --- tiingo/api.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tiingo/api.py b/tiingo/api.py index f02023ae..129a418f 100644 --- a/tiingo/api.py +++ b/tiingo/api.py @@ -201,7 +201,7 @@ def get_ticker_price(self, ticker, return response.content.decode("utf-8") def get_dataframe(self, tickers, - startDate=None, endDate=None, metric_name=None, frequency='daily'): + startDate=None, endDate=None, metric_name=None, frequency='daily', afterHours='false'): """ Return a pandas.DataFrame of historical prices for one or more ticker symbols. @@ -221,6 +221,7 @@ def get_dataframe(self, tickers, all of the available data will be returned. In the event of a list of tickers, this parameter is required. frequency (string): Resample frequency (defaults to daily). + afterHours (string): If set to true, includes pre and post market data if available. """ valid_columns = {'open', 'high', 'low', 'close', 'volume', 'adjOpen', 'adjHigh', 'adjLow', @@ -235,7 +236,8 @@ def get_dataframe(self, tickers, params = { 'format': 'json', - 'resampleFreq': frequency + 'resampleFreq': frequency, + 'afterHours': afterHours } if startDate: params['startDate'] = startDate From af765b26ca444abb0a844125a62b30abc82d1c2d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 25 Mar 2021 23:58:19 +0000 Subject: [PATCH 2/2] Bump pyyaml from 5.1.2 to 5.4 Bumps [pyyaml](https://github.com/yaml/pyyaml) from 5.1.2 to 5.4. - [Release notes](https://github.com/yaml/pyyaml/releases) - [Changelog](https://github.com/yaml/pyyaml/blob/master/CHANGES) - [Commits](https://github.com/yaml/pyyaml/compare/5.1.2...5.4) Signed-off-by: dependabot[bot] --- requirements_dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_dev.txt b/requirements_dev.txt index cc2d4813..6ecae65b 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -7,7 +7,7 @@ tox==3.14.0 coverage==4.5.4 Sphinx==2.2.0 cryptography==2.7 -PyYAML==5.1.2 +PyYAML==5.4 pytest==5.1.2 pytest-runner==5.1 vcrpy==2.1.0