Per, @polk54, it turns out that an indicator can be in more than one source, and not all sources are updated at the same time, which is a hoot and also a holler. This means we need source arguments for the various data retrieval functions.
For get_data and get_series, this is straightforward enough, but a bit trickier for get_dataframe since you may way indicators from different sources in the same DataFrame. My initial thought is to allow the source to have one of three values:
None, default
an integer argument, which would apply to all variables
an indicator->source dictionary
That seems to me to satisfy the law of least astonishment.
Per, @polk54, it turns out that an indicator can be in more than one source, and not all sources are updated at the same time, which is a hoot and also a holler. This means we need source arguments for the various data retrieval functions.
For
get_data
andget_series
, this is straightforward enough, but a bit trickier forget_dataframe
since you may way indicators from different sources in the same DataFrame. My initial thought is to allow the source to have one of three values:That seems to me to satisfy the law of least astonishment.