alpha-vantage

Alpha vantage API Not working for NSE while the same query is giving output for foreign stocks

牧云@^-^@ 提交于 2021-02-05 05:54:50
问题 I was trying to get JSON for a company by calling API of alphavantage. For some company data it works and for some company it's failing. For example, for this query it works: https://www.alphavantage.co/query?function=TIME_SERIES_DAILY_ADJUSTED&symbol=IBM&outputsize=full&apikey={API_KEY} But for example this query fails: https://www.alphavantage.co/query?function=TIME_SERIES_DAILY_ADJUSTED&symbol=NSE:TATAMOTORS&outputsize=full&apikey={API_KEY} 回答1: go to link and search exact code for your

Python and Pandas - Sorting by Date

生来就可爱ヽ(ⅴ<●) 提交于 2021-01-20 09:00:56
问题 What I've tried for a sort "should" be working; but it is not. I've queried the "Alpha Vantage" API using the "alpha_vantage" Python library. Below is my code. I am requesting to sort by date; but, as you can see from the output in the df.head() the sorting by date is in the wrong direction. However, the plot is going in the right direction. df, meta_data = ts.get_daily(symbol='AAPL',outputsize=365) df['4. close'].plot() plt.title('Intraday Times Series for the AAPL stock (5 min)') #

Python and Pandas - Sorting by Date

空扰寡人 提交于 2021-01-20 08:58:58
问题 What I've tried for a sort "should" be working; but it is not. I've queried the "Alpha Vantage" API using the "alpha_vantage" Python library. Below is my code. I am requesting to sort by date; but, as you can see from the output in the df.head() the sorting by date is in the wrong direction. However, the plot is going in the right direction. df, meta_data = ts.get_daily(symbol='AAPL',outputsize=365) df['4. close'].plot() plt.title('Intraday Times Series for the AAPL stock (5 min)') #

Fail to get real time prices from Alpha Vantage API. Prices are one day old

孤者浪人 提交于 2021-01-04 12:33:30
问题 I am trying to get the latest Intraday prices from Alpha Vantage API. Currently it is Friday, 9:16PM Eastern European Time. I am trying to get Tesla stock. Markets are still open. However, The API call returns me yesterday's data only. What could be the problem? ts = TimeSeries(key='API_KEY', output_format='pandas') data, meta_data = ts.get_intraday(symbol='TSLA',interval='1min', outputsize='full') print(data.head(5)) print(meta_data) 1. open 2. high 3. low 4. close 5. volume date 2020-04-16