-
Notifications
You must be signed in to change notification settings - Fork 57
Description
Description
Tiingo daily data and IEX intraday data are both being returned by the get_dataframe method but I propose they would be better off with their own methods. This would follow the Tiingo API more closely and users would be more aware of the source of the underlying data.
I suggest adding the method names get_daily_data and get_iex_data. The suffix _data is more appropriate in this case because if a metric_name is passed then the method returns a pandas.Series not a pandas.DataFrame.
I recommend only returning data in csv format from these new methods since this return type is so much faster than json. If json is included as a return type, test of equality between csv and json should be included. I've noticed that intraday csv response data coming from Tiingo contains a timezone offset while json response data does not contain a timezone offset. I would recommend using the same offset as the one returned by the csv response for simplicity. Again, the decision about which offset to use could be avoided by only allowing these methods to return csv data.
@hydrosquall Looking forward to your thoughts.