Questions tagged [alpha-vantage]

For programming questions about the Alpha Vantage APIs, which provide real-time and historical data on stocks, foreign exchange markets, and digital and crypto currencies. Use with a language tag like [python].

Alpha Vantage provides APIs for real-time and historical data on stocks, foreign exchange markets, and digital and cryptocurrencies. The APIs for JSON and CSV formats are free. The community provides over 100 libraries on GitHub.

Documentation

Example Node Project:

$ npm i alphavantage

---- 

import {AlphaVantage} from '../models/AlphaVantage'

async function() {
    const data =  await alpha.data.weekly('msft', 'compact', 'json')
}
231 questions
2
votes
1 answer

Alpha Vantage API time series intraday for foreign stocks into a pandas df

I need to compile stock price data for ADR and ORD pairs (and the currency between them) into a Pandas dataframe. I just started using the Alpha Vantage API for this, which works great for getting the US-listed stock prices (at the minute timescale)…
Cole MG
  • 317
  • 2
  • 13
2
votes
2 answers

How to filter for dates range in timeseries or dataframe using python

Still a newbie with Python just trying to learn this stuff. Appreciate any help. Right now when I connect to Alpha Vantage I get the full range of data for all the dates and it looks like this I found some good sources for guides, but I keep…
Jakub
  • 1,260
  • 1
  • 13
  • 40
2
votes
2 answers

ValueError: Error getting data from the api, no return was given. alphavantage

I was using following code to download the NSE stock data(indian stocks) : from alpha_vantage.timeseries import TimeSeries ts = TimeSeries(key='my api key',output_format='pandas') data, meta_data = ts.get_daily_adjusted(symbol='VEDL.NS',…
2
votes
1 answer

Get live data of nse stocks of all symbols in python/Django

I m working on a stock prediction project. This is how I want: To show all the stocks available in Nifty50, Nifty100 or so and then the user will select the stock to predict the high and low price of a stock on next day only. I m using Django. What…
Sandeep Sharma
  • 639
  • 2
  • 9
  • 34
2
votes
2 answers

Alpha vantage AAPL prices do not align with other data sources

I'm using the following code to download and plot AAPL daily stock prices: from alpha_vantage.timeseries import TimeSeries import matplotlib.pyplot as plt ts = TimeSeries(key='YOUR_API_KEY', output_format='pandas') data, meta_data =…
ivaigult
  • 6,198
  • 5
  • 38
  • 66
2
votes
2 answers

Can't Get real-time date with Alpha-vantage using python

import pandas as pd from alpha_vantage.timeseries import TimeSeries def AlphaVantage(symbol): ts = TimeSeries(key="mykey") data = ts.get_intraday(symbol, interval='1min') …
user12498139
2
votes
1 answer

How to update a GUI window in Python?

My goal is to have a window with the latest quote of a stock updating during the day. I chose alpha_vantage as a quote source, pysimplegui to create the window and twisted to run a loop to update the window every minute. The code works as written,…
John
  • 435
  • 6
  • 15
2
votes
1 answer

Symbol Suffixes with AlphaVantage

I'm not able to find documentation for different symbols and exchanges, I was able to figure out that TSE or TSE work as a suffix for Canadian Exchanges. I'm just wondering how to retrieve prices for the following security:…
Elliott de Launay
  • 1,027
  • 13
  • 31
2
votes
1 answer

Error using pandas datareader to extract stock data from alpha vantage

I am trying to gather stock data from Alpha Vantage but I keep getting an error? I am using Alpha Vantage to extract the data. My code is below: import pandas_datareader.data as web import pandas as pd import numpy as np import datetime start =…
the man
  • 1,131
  • 1
  • 8
  • 19
2
votes
2 answers

Alpha Vantage Currency in Global Quote

When you make a Quote Endpoint call from the Alpha Vantage API, for example (https://www.alphavantage.co/query?function=GLOBAL_QUOTE&symbol=MSFT&apikey=demo), you don't get currency with it. How can I know which currency is being used for the price…
2
votes
1 answer

Possible to specify dates for Alpha Vantage API?

To retrieve data from Alpha Vantage : from alpha_vantage.timeseries import TimeSeries import matplotlib.pyplot as plt import sys def stockchart(symbol): ts = TimeSeries(key='1ORS1XLM1YK1GK9Y', output_format='pandas') data, meta_data =…
user8596384
2
votes
1 answer

Python and Pandas - Sorting by Date

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()…
billv1179
  • 323
  • 5
  • 15
2
votes
2 answers

How to change Time Zone in Alpha Vantage API

Can I change the time zone in the result from Alpha Vantage API? Here is an example of the output. It's currently in EST. I'd like to get it in IST. 'Meta Data': { '1. Information': 'Intraday (1min) open, high, low, close prices and volume', …
2
votes
0 answers

Why does alphavantage return volume zero and wrong prices

I'm trying to use what seems like a great idea but some of the prices and volumes are wrong: Example: https://www.alphavantage.co/query?function=TIME_SERIES_DAILY_ADJUSTED&symbol=SMT.LON&apikey=mykey&datatype=json As you can see below the result for…
deejbee
  • 1,148
  • 11
  • 17
2
votes
3 answers

How to loop though Alpha Vantage timestamps

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…
Cevee
  • 21
  • 2
1 2
3
15 16