Skip to content

Commit 29291e2

Browse files
rgkimballbashtage
authored andcommitted
Whitespace cleanup
1 parent e3ecf2b commit 29291e2

File tree

2 files changed

+24
-23
lines changed

2 files changed

+24
-23
lines changed

pandas_datareader/data.py

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ def get_markets_iex(*args, **kwargs):
9494
"""
9595
Returns near-real time volume data across markets segregated by tape
9696
and including a percentage of overall volume during the session
97-
97+
9898
This endpoint does not accept any parameters.
99-
99+
100100
Reference: https://www.iextrading.com/developer/docs/#markets
101-
101+
102102
:return: DataFrame
103103
"""
104104
from pandas_datareader.iex.market import MarketReader
@@ -109,14 +109,14 @@ def get_dailysummary_iex(*args, **kwargs):
109109
"""
110110
Returns a summary of daily market volume statistics. Without parameters,
111111
this will return the most recent trading session by default.
112-
113-
:param start:
112+
113+
:param start:
114114
A datetime object - the beginning of the date range.
115115
:param end:
116116
A datetime object - the end of the date range.
117-
117+
118118
Reference: https://www.iextrading.com/developer/docs/#historical-daily
119-
119+
120120
:return: DataFrame
121121
"""
122122
from pandas_datareader.iex.stats import DailySummaryReader
@@ -125,16 +125,16 @@ def get_dailysummary_iex(*args, **kwargs):
125125

126126
def get_summary_iex(*args, **kwargs):
127127
"""
128-
Returns an aggregated monthly summary of market volume and a variety of
128+
Returns an aggregated monthly summary of market volume and a variety of
129129
related metrics for trades by lot size, security market cap, and venue.
130130
In the absence of parameters, this will return month-to-date statistics.
131131
For ranges spanning multiple months, this will return one row per month.
132-
133-
:param start:
132+
133+
:param start:
134134
A datetime object - the beginning of the date range.
135135
:param end:
136136
A datetime object - the end of the date range.
137-
137+
138138
:return: DataFrame
139139
"""
140140
from pandas_datareader.iex.stats import MonthlySummaryReader
@@ -146,9 +146,9 @@ def get_records_iex(*args, **kwargs):
146146
Returns the record value, record date, recent value, and 30-day average for
147147
market volume, # of symbols traded, # of routed trades and notional value.
148148
This function accepts no additional parameters.
149-
149+
150150
Reference: https://www.iextrading.com/developer/docs/#records
151-
151+
152152
:return: DataFrame
153153
"""
154154
from pandas_datareader.iex.stats import RecordsReader
@@ -160,9 +160,9 @@ def get_recent_iex(*args, **kwargs):
160160
Returns market volume and trade routing statistics for recent sessions.
161161
Also reports IEX's relative market share, lit share volume and a boolean
162162
halfday indicator.
163-
163+
164164
Reference: https://www.iextrading.com/developer/docs/#recent
165-
165+
166166
:return: DataFrame
167167
"""
168168
from pandas_datareader.iex.stats import RecentReader
@@ -173,9 +173,9 @@ def get_iex_symbols(*args, **kwargs):
173173
"""
174174
Returns a list of all equity symbols available for trading on IEX. Accepts
175175
no additional parameters.
176-
176+
177177
Reference: https://www.iextrading.com/developer/docs/#symbols
178-
178+
179179
:return: DataFrame
180180
"""
181181
from pandas_datareader.iex.ref import SymbolsReader
@@ -186,7 +186,7 @@ def get_iex_book(*args, **kwargs):
186186
"""
187187
Returns an array of dictionaries with depth of book data from IEX for up to
188188
10 securities at a time. Returns a dictionary of the bid and ask books.
189-
189+
190190
:param symbols:
191191
A string or list of strings of valid tickers
192192
:param service:
@@ -198,7 +198,7 @@ def get_iex_book(*args, **kwargs):
198198
'trades': Retrieves recent executions, trade size/price and flags
199199
'trade-breaks': Lists execution breaks for the current trading session
200200
'trading-status': Returns status and cause codes for securities
201-
201+
202202
:return: Object
203203
"""
204204
from pandas_datareader.iex.deep import Deep
@@ -234,7 +234,7 @@ def DataReader(name, data_source=None, start=None, end=None,
234234
requests.sessions.Session instance to be used
235235
access_key : (str, None)
236236
Optional parameter to specify an API key for certain data sources.
237-
237+
238238
Examples
239239
----------
240240
@@ -247,14 +247,14 @@ def DataReader(name, data_source=None, start=None, end=None,
247247
248248
# Data from Google Finance
249249
aapl = DataReader("AAPL", "google")
250-
250+
251251
# Price and volume data from IEX
252252
tops = DataReader(["GS", "AAPL"], "iex-tops")
253253
# Top of book executions from IEX
254254
gs = DataReader("GS", "iex-last")
255255
# Real-time depth of book data from IEX
256256
gs = DataReader("GS", "iex-book")
257-
257+
258258
# Data from FRED
259259
vix = DataReader("VIXCLS", "fred")
260260

pandas_datareader/tests/test_iex.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ def test_false_ticker(self):
2828
tm.assert_frame_equal(df, DataFrame())
2929

3030
def test_daily(self):
31-
df = get_dailysummary_iex(start=datetime(2017, 5, 5), end=datetime(2017, 5, 6)) #noqa
31+
df = get_dailysummary_iex(start=datetime(2017, 5, 5),
32+
end=datetime(2017, 5, 6))
3233
assert df['routedVolume'].iloc[0] == 39974788
3334

3435
def test_symbols(self):

0 commit comments

Comments
 (0)