RomelTorres / alpha_vantage

A python wrapper for Alpha Vantage API for financial data.
MIT License
4.25k stars 740 forks source link

Problem of API missing. get_intraday_extend #364

Closed 731315163 closed 4 months ago

731315163 commented 5 months ago

Optional: month

By default, this parameter is not set and the API will return intraday data for the most recent days of trading. You can use the month parameter (in YYYY-MM format) to query a specific month in history. For example, month=2009-01. Any month in the last 20+ years since 2000-01 (January 2000) is supported.
Why can the 'ts.get_intraday_extend 'api only obtain data from the last two years of a specified month, while the official support is for 20 years?

731315163 commented 5 months ago

@av._output_format @av._call_api_on_func def get_intraday_extended(self, symbol, interval='15min', slice='year1month1'): """ Return extended intraday time series in one csv_reader object. It raises ValueError when problems arise

    Keyword Arguments:
        symbol:  the symbol for the equity we want to get its data
        interval:  time interval between two conscutive values,
            supported values are '1min', '5min', '15min', '30min', '60min'
            (default '15min')
        slice: the trailing 2 years of intraday data is evenly divided into
            24 "slices" - year1month1, year1month2, ..., year2month12
    """
    _FUNCTION_KEY = "TIME_SERIES_INTRADAY_EXTENDED"
    return _FUNCTION_KEY, "Time Series ({})".format(interval), 'Meta Data'
AlphaVantageSupport commented 4 months ago

Temporarily closing this due to lack of activities. Will reopen as needed.