Closed team172011 closed 5 years ago
I don't think this is necessary. The intention of the class structure is to follow the Alpha Vantage standards used by their rest api and also their documentation. I think a renaming like this will make users more confused over not being able to follow the documented structure of the Alpha Vantage api.
I think that the naming of the
TimeSeries
class is missleading, because it is not a series that stores data, but a kind ofAlphaVantageConnectionManager
. TheDaily
,IntraDay
,Monthly
, ..., should be called aTimeSeries
(maybe with a TimeLevel flag) because they store the corresponding data. This change would also remove a lot of potential errors by calling the wrongTimeSeries#intraDay
,TimeSeries#daily
,TimeSeries#weekly
function.I would suggest to rename
TimeSeries
to something likeAlphaVantageConnectionManager
and for example let theintraDay
method return aTimeSeries
object with stock data and a flag (maybe an enum) that describes the time period