{
    "mode": "perldoc",
    "parameter": "Finance::Quote::AlphaVantage",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Finance%3A%3AQuote%3A%3AAlphaVantage/json",
    "generated": "2026-08-11T11:30:30Z",
    "synopsis": "use Finance::Quote;\n$q = Finance::Quote->new('AlphaVantage', alphavantage => {APIKEY => 'your-alphavantage-api-key'});\n%info = $q->fetch('alphavantage', 'IBM', 'AAPL');",
    "sections": {
        "NAME": {
            "content": "Finance::Quote::AlphaVantage - Obtain quotes from https://iexcloud.io\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Finance::Quote;\n\n$q = Finance::Quote->new('AlphaVantage', alphavantage => {APIKEY => 'your-alphavantage-api-key'});\n\n%info = $q->fetch('alphavantage', 'IBM', 'AAPL');\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This module fetches information from https://www.alphavantage.co.\n\nThis module is loaded by default on a Finance::Quote object. It's also possible to load it\nexplicitly by placing \"AlphaVantage\" in the argument list to Finance::Quote->new().\n\nThis module provides the \"alphavantage\" fetch method.\n",
            "subsections": []
        },
        "APIKEY": {
            "content": "https://www.alphavantage.co requires users to register and obtain an API key, which is also\ncalled a token. The token is a sequence of random characters.\n\nThe API key may be set by either providing a module specific hash to Finance::Quote->new as in\nthe above example, or by setting the environment variable ALPHAVANTAGEAPIKEY.\n",
            "subsections": []
        },
        "LABELS RETURNED": {
            "content": "The following labels may be returned by Finance::Quote::AlphaVantage : symbol, open, close,\nhigh, low, last, volume, method, isodate, currency.\n\nCAVEATs\nSince the JSON returned by the GLOBALQUOTE API does not specify the currency of the price data,\nthere is no way to determine the correct currency without an additional call to the\nSYMBOLSEARCH API. To avoid even slower throttling, this module expects the user to know which\nsecurties from certain countries may be traded in the non-ISO4217 currency.\n\nAn example are London Stock Exchange traded GBP.L (Global Petroleum Limited) and GBPG.L (Goldman\nSachs Access UK Gilts 1-10 Years UCITS ETF CLASS GBP (Dist)). GBP.L is traded in GBX, which is\nalso known as GBp (Great Britain Pence), and GBPG.L is traded in the iso-4217 currency GBP\n(Great Britain Pounds). The user will need to add \".X\" to symbols to return GBX priced\nsecurities as GBP. For the example above the user would use the symbol GBP.L.X in the call to\nthe alphavantage method for the prices to be output as GBP.\n",
            "subsections": []
        }
    },
    "summary": "Finance::Quote::AlphaVantage - Obtain quotes from https://iexcloud.io",
    "flags": [],
    "examples": [],
    "see_also": []
}