|
32 | 32 | RobinhoodQuoteReader
|
33 | 33 | from pandas_datareader.stooq import StooqDailyReader
|
34 | 34 | from pandas_datareader.tiingo import TiingoDailyReader, TiingoQuoteReader
|
35 |
| -from pandas_datareader.yahoo.actions import (YahooActionReader, YahooDivReader) |
36 | 35 | from pandas_datareader.yahoo.components import _get_data as \
|
37 | 36 | get_components_yahoo
|
38 | 37 | from pandas_datareader.yahoo.daily import YahooDailyReader
|
@@ -81,7 +80,6 @@ def get_quote_av(*args, **kwargs):
|
81 | 80 |
|
82 | 81 | def get_data_yahoo_actions(*args, **kwargs):
|
83 | 82 | raise ImmediateDeprecationError(DEP_ERROR_MSG.format('Yahoo Actions'))
|
84 |
| - return YahooActionReader(*args, **kwargs).read() |
85 | 83 |
|
86 | 84 |
|
87 | 85 | def get_quote_yahoo(*args, **kwargs):
|
@@ -313,67 +311,6 @@ def DataReader(name, data_source=None, start=None, end=None,
|
313 | 311 | retry_count=retry_count, pause=pause,
|
314 | 312 | session=session).read()
|
315 | 313 |
|
316 |
| - elif data_source == "yahoo-actions": |
317 |
| - raise ImmediateDeprecationError(DEP_ERROR_MSG.format('Yahoo Actions')) |
318 |
| - return YahooActionReader(symbols=name, start=start, end=end, |
319 |
| - retry_count=retry_count, pause=pause, |
320 |
| - session=session).read() |
321 |
| - |
322 |
| - elif data_source == "yahoo-dividends": |
323 |
| - comp = 'Yahoo Dividends' |
324 |
| - raise ImmediateDeprecationError(DEP_ERROR_MSG.format(comp)) |
325 |
| - return YahooDivReader(symbols=name, start=start, end=end, |
326 |
| - adjust_price=False, chunksize=25, |
327 |
| - retry_count=retry_count, pause=pause, |
328 |
| - session=session, interval='d').read() |
329 |
| - |
330 |
| - elif data_source == "av-forex": |
331 |
| - return AVForexReader(symbols=name, retry_count=retry_count, |
332 |
| - pause=pause, session=session, |
333 |
| - api_key=access_key).read() |
334 |
| - |
335 |
| - elif data_source == "av-daily": |
336 |
| - return AVTimeSeriesReader(symbols=name, |
337 |
| - function="TIME_SERIES_DAILY", start=start, |
338 |
| - end=end, retry_count=retry_count, |
339 |
| - pause=pause, session=session, |
340 |
| - api_key=access_key).read() |
341 |
| - |
342 |
| - elif data_source == "av-daily-adjusted": |
343 |
| - return AVTimeSeriesReader(symbols=name, |
344 |
| - function="TIME_SERIES_DAILY_ADJUSTED", |
345 |
| - start=start, end=end, |
346 |
| - retry_count=retry_count, pause=pause, |
347 |
| - session=session, api_key=access_key).read() |
348 |
| - |
349 |
| - elif data_source == "av-weekly": |
350 |
| - return AVTimeSeriesReader(symbols=name, |
351 |
| - function="TIME_SERIES_WEEKLY", start=start, |
352 |
| - end=end, retry_count=retry_count, |
353 |
| - pause=pause, session=session, |
354 |
| - api_key=access_key).read() |
355 |
| - |
356 |
| - elif data_source == "av-weekly-adjusted": |
357 |
| - return AVTimeSeriesReader(symbols=name, |
358 |
| - function="TIME_SERIES_WEEKLY_ADJUSTED", |
359 |
| - start=start, end=end, |
360 |
| - retry_count=retry_count, pause=pause, |
361 |
| - session=session, api_key=access_key).read() |
362 |
| - |
363 |
| - elif data_source == "av-monthly": |
364 |
| - return AVTimeSeriesReader(symbols=name, |
365 |
| - function="TIME_SERIES_MONTHLY", start=start, |
366 |
| - end=end, retry_count=retry_count, |
367 |
| - pause=pause, session=session, |
368 |
| - api_key=access_key).read() |
369 |
| - |
370 |
| - elif data_source == "av-monthly-adjusted": |
371 |
| - return AVTimeSeriesReader(symbols=name, |
372 |
| - function="TIME_SERIES_MONTHLY_ADJUSTED", |
373 |
| - start=start, end=end, |
374 |
| - retry_count=retry_count, pause=pause, |
375 |
| - session=session, api_key=access_key).read() |
376 |
| - |
377 | 314 | elif data_source == "google":
|
378 | 315 | return GoogleDailyReader(symbols=name, start=start, end=end,
|
379 | 316 | chunksize=25,
|
|
0 commit comments