alphavantage

Alpha Vantage randomly says Invalid API Call

为君一笑 提交于 2020-06-29 03:18:56
问题 I have code in python that periodically fetches data for a particular ticker. import pandas as pd import time def intraday(ticker, interval, key): """ Returns interday data """ url = f'https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol={ticker}&interval={interval}&apikey={key}&datatype=csv' df = pd.read_csv(url) df = df.reset_index() while True: print(intraday('AAPL', '1min', key) time.sleep(60) The problem that I face, is that this code works well most of the time.

Alphavantage and NASDAQ Index stopped working

家住魔仙堡 提交于 2020-05-15 19:09:25
问题 This API call for NASDAQ Composite used to work. Now it returns just an empty JSON. {} . No error message. https://www.alphavantage.co/query?function=TIME_SERIES_MONTHLY&symbol=IXIC&apikey=your_api_key Other indices seem to work OK eg DJI , SPX An email to support has not been answered. Anyone have any more information on this? 回答1: UPDATE The trick below has stopped working. Hopefully Alpha Vantage will regain their access to the NASDAQ soon. Try replacing IXIC with NASDAQ:^IXIC https://www

Alphavantage and NASDAQ Index stopped working

╄→尐↘猪︶ㄣ 提交于 2020-05-15 19:06:08
问题 This API call for NASDAQ Composite used to work. Now it returns just an empty JSON. {} . No error message. https://www.alphavantage.co/query?function=TIME_SERIES_MONTHLY&symbol=IXIC&apikey=your_api_key Other indices seem to work OK eg DJI , SPX An email to support has not been answered. Anyone have any more information on this? 回答1: UPDATE The trick below has stopped working. Hopefully Alpha Vantage will regain their access to the NASDAQ soon. Try replacing IXIC with NASDAQ:^IXIC https://www

Alpha Vantage API Excel

六眼飞鱼酱① 提交于 2020-01-05 04:13:07
问题 I’ve got an Alpha Vantage API key and am having issues with parsing the data. I’m unsure how to approach parsing the data as there are JSON and CSV options. The CSV seems to be a download, I’m not trying to manually download a new file every time I want to update the stock price. This is how I used to get the prices of stocks in Excel: I would always use CTRL-ALT-F9 to refresh everything. Unfortunately, Yahoo has stopped this service so I have to fix it. 回答1: You can use Alpha Vantage the

How to loop though Alpha Vantage timestamps

杀马特。学长 韩版系。学妹 提交于 2019-12-24 10:49:50
问题 I am trying to loop through the JSON from my API call and plot each high trade price in my react app (the end goal will be to create a chart). The issue is, I would need to know the exact timestamp string beforehand, because the API isn't structured numerically. Here is my code (see the console log). I am currently testing the proper endpoint BEFORE creating a loop, which is why you don't see one. If you are curious, the this.state.stock is AMD, which I am using to test it. Eventually it will

AlphaVantage API Stock Market Indices

心不动则不痛 提交于 2019-12-10 18:38:56
问题 I'm using python and its framework flask to build a frontEnd backEnd project. The project needs stock data. I used Yahoo's Api before it stopped working and now I'm using Alpha Vantage API. It's working pretty well but I'm having difficulties with stock market Indices like Nasdaq, Dow Jones.. with yahoo I was using their tickers(like symboles) (^IXIC, ^DJI...) but it doesn't seem to work with alpha vantage. Has anyone worked with alpha vantage? example of url to get data for Microsoft: https:

Want to view json metadata

为君一笑 提交于 2019-12-02 17:52:59
问题 I am trying to build an app that displays Currency exchange rates using the Alpha Vantage API for iOS. I have built the functions but can't figure out how to access the exact json value which is "5. Exchange Rate". Here is some of the code and the json data to help explain better: The URL Built: func USDtoEUR(_ completionHandler: @escaping (_ success: Bool, _ quotes: [String:AnyObject]?, _ error: String?) -> Void) { let urlString = "https://www.alphavantage.co/query?function=CURRENCY_EXCHANGE

Want to view json metadata

断了今生、忘了曾经 提交于 2019-12-02 12:34:06
I am trying to build an app that displays Currency exchange rates using the Alpha Vantage API for iOS. I have built the functions but can't figure out how to access the exact json value which is "5. Exchange Rate". Here is some of the code and the json data to help explain better: The URL Built: func USDtoEUR(_ completionHandler: @escaping (_ success: Bool, _ quotes: [String:AnyObject]?, _ error: String?) -> Void) { let urlString = "https://www.alphavantage.co/query?function=CURRENCY_EXCHANGE_RATE&from_currency=USD&to_currency=EUR&apikey=NP3M8LL62YJDO0YX" let session = URLSession.shared let