16
16
ImmediateDeprecationError
17
17
from pandas_datareader .famafrench import FamaFrenchReader
18
18
from pandas_datareader .fred import FredReader
19
- from pandas_datareader .google .daily import GoogleDailyReader
20
- from pandas_datareader .google .options import Options as GoogleOptions
21
- from pandas_datareader .google .quotes import GoogleQuotesReader
22
19
from pandas_datareader .iex .daily import IEXDailyReader
23
20
from pandas_datareader .iex .deep import Deep as IEXDeep
24
21
from pandas_datareader .iex .tops import LastReader as IEXLasts , \
25
22
TopsReader as IEXTops
26
23
from pandas_datareader .moex import MoexReader
27
- from pandas_datareader .mstar .daily import MorningstarDailyReader
28
24
from pandas_datareader .nasdaq_trader import get_nasdaq_symbols
29
25
from pandas_datareader .oecd import OECDReader
30
26
from pandas_datareader .quandl import QuandlReader
40
36
from pandas_datareader .yahoo .quotes import YahooQuotesReader
41
37
42
38
__all__ = ['get_components_yahoo' , 'get_data_enigma' , 'get_data_famafrench' ,
43
- 'get_data_fred' , 'get_data_google' , ' get_data_moex' ,
39
+ 'get_data_fred' , 'get_data_moex' ,
44
40
'get_data_quandl' , 'get_data_yahoo' , 'get_data_yahoo_actions' ,
45
- 'get_nasdaq_symbols' , 'get_quote_google' , ' get_quote_yahoo' ,
41
+ 'get_nasdaq_symbols' , 'get_quote_yahoo' ,
46
42
'get_tops_iex' , 'get_summary_iex' , 'get_records_iex' ,
47
43
'get_recent_iex' , 'get_markets_iex' , 'get_last_iex' ,
48
44
'get_iex_symbols' , 'get_iex_book' , 'get_dailysummary_iex' ,
49
- 'get_data_morningstar' , 'get_data_stooq' ,
50
- 'get_data_stooq' , 'get_data_robinhood' , 'get_quotes_robinhood' ,
51
- 'DataReader' ]
45
+ 'get_data_stooq' , 'get_data_robinhood' ,
46
+ 'get_quotes_robinhood' , 'DataReader' ]
52
47
53
48
54
49
def get_data_alphavantage (* args , ** kwargs ):
@@ -63,10 +58,6 @@ def get_data_famafrench(*args, **kwargs):
63
58
return FamaFrenchReader (* args , ** kwargs ).read ()
64
59
65
60
66
- def get_data_google (* args , ** kwargs ):
67
- return GoogleDailyReader (* args , ** kwargs ).read ()
68
-
69
-
70
61
def get_data_yahoo (* args , ** kwargs ):
71
62
return YahooDailyReader (* args , ** kwargs ).read ()
72
63
@@ -87,11 +78,6 @@ def get_quote_yahoo(*args, **kwargs):
87
78
return YahooQuotesReader (* args , ** kwargs ).read ()
88
79
89
80
90
- def get_quote_google (* args , ** kwargs ):
91
- raise ImmediateDeprecationError (DEP_ERROR_MSG .format ('Google Quotes' ))
92
- return GoogleQuotesReader (* args , ** kwargs ).read ()
93
-
94
-
95
81
def get_data_quandl (* args , ** kwargs ):
96
82
return QuandlReader (* args , ** kwargs ).read ()
97
83
@@ -112,10 +98,6 @@ def get_last_iex(*args, **kwargs):
112
98
return IEXLasts (* args , ** kwargs ).read ()
113
99
114
100
115
- def get_data_morningstar (* args , ** kwargs ):
116
- return MorningstarDailyReader (* args , ** kwargs ).read ()
117
-
118
-
119
101
def get_data_robinhood (* args , ** kwargs ):
120
102
return RobinhoodHistoricalReader (* args , ** kwargs ).read ()
121
103
@@ -265,10 +247,10 @@ def DataReader(name, data_source=None, start=None, end=None,
265
247
Parameters
266
248
----------
267
249
name : str or list of strs
268
- the name of the dataset. Some data sources (google , fred) will
250
+ the name of the dataset. Some data sources (IEX , fred) will
269
251
accept a list of names.
270
252
data_source: {str, None}
271
- the data source ("google ", "fred", "ff")
253
+ the data source ("iex ", "fred", "ff")
272
254
start : {datetime, None}
273
255
left boundary for range (defaults to 1/1/2010)
274
256
end : {datetime, None}
@@ -286,7 +268,7 @@ def DataReader(name, data_source=None, start=None, end=None,
286
268
Examples
287
269
----------
288
270
# Data from Google Finance
289
- aapl = DataReader("AAPL", "google ")
271
+ aapl = DataReader("AAPL", "iex ")
290
272
291
273
# Price and volume data from IEX
292
274
tops = DataReader(["GS", "AAPL"], "iex-tops")
@@ -304,10 +286,10 @@ def DataReader(name, data_source=None, start=None, end=None,
304
286
ff = DataReader("6_Portfolios_2x3", "famafrench")
305
287
ff = DataReader("F-F_ST_Reversal_Factor", "famafrench")
306
288
"""
307
- expected_source = ["yahoo" , "google" , " iex" , "iex-tops" , "iex-last" ,
289
+ expected_source = ["yahoo" , "iex" , "iex-tops" , "iex-last" ,
308
290
"iex-last" , "bankofcanada" , "stooq" , "iex-book" ,
309
291
"enigma" , "fred" , "famafrench" , "oecd" , "eurostat" ,
310
- "nasdaq" , "quandl" , "moex" , "morningstar" , 'robinhood' ,
292
+ "nasdaq" , "quandl" , "moex" , 'robinhood' ,
311
293
"tiingo" , "yahoo-actions" , "yahoo-dividends" ,
312
294
"av-forex" , "av-daily" , "av-daily-adjusted" ,
313
295
"av-weekly" , "av-weekly-adjusted" , "av-monthly" ,
@@ -323,12 +305,6 @@ def DataReader(name, data_source=None, start=None, end=None,
323
305
retry_count = retry_count , pause = pause ,
324
306
session = session ).read ()
325
307
326
- elif data_source == "google" :
327
- return GoogleDailyReader (symbols = name , start = start , end = end ,
328
- chunksize = 25 ,
329
- retry_count = retry_count , pause = pause ,
330
- session = session ).read ()
331
-
332
308
elif data_source == "iex" :
333
309
return IEXDailyReader (symbols = name , start = start , end = end ,
334
310
chunksize = 25 ,
@@ -395,10 +371,6 @@ def DataReader(name, data_source=None, start=None, end=None,
395
371
return MoexReader (symbols = name , start = start , end = end ,
396
372
retry_count = retry_count , pause = pause ,
397
373
session = session ).read ()
398
- elif data_source == "morningstar" :
399
- return MorningstarDailyReader (symbols = name , start = start , end = end ,
400
- retry_count = retry_count , pause = pause ,
401
- session = session , interval = "d" ).read ()
402
374
elif data_source == 'robinhood' :
403
375
return RobinhoodHistoricalReader (symbols = name , start = start , end = end ,
404
376
retry_count = retry_count , pause = pause ,
@@ -485,8 +457,5 @@ def Options(symbol, data_source=None, session=None):
485
457
if data_source == "yahoo" :
486
458
raise ImmediateDeprecationError (DEP_ERROR_MSG .format ('Yahoo Options' ))
487
459
return YahooOptions (symbol , session = session )
488
- elif data_source == "google" :
489
- raise ImmediateDeprecationError (DEP_ERROR_MSG .format ('Google Options' ))
490
- return GoogleOptions (symbol , session = session )
491
460
else :
492
- raise NotImplementedError ("currently only yahoo and google supported" )
461
+ raise NotImplementedError ("currently only yahoo supported" )
0 commit comments