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.
Description
Tiingo daily data and IEX intraday data are both being returned by the
get_dataframemethod 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_dataandget_iex_data. The suffix_datais more appropriate in this case because if ametric_nameis passed then the method returns apandas.Seriesnot apandas.DataFrame.I recommend only returning data in
csvformat from these new methods since this return type is so much faster thanjson. Ifjsonis included as a return type, test of equality betweencsvandjsonshould be included. I've noticed that intradaycsvresponse data coming from Tiingo contains a timezone offset whilejsonresponse data does not contain a timezone offset. I would recommend using the same offset as the one returned by thecsvresponse for simplicity. Again, the decision about which offset to use could be avoided by only allowing these methods to returncsvdata.@hydrosquall Looking forward to your thoughts.