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
11
votes
7 answers

Finance data on alphavantage

I was trying to get JSON for a company by calling API of alphavantage .For some company data is coming and for some company, it's failing. Company for which data are coming - TCS,INFY,MSFT Company for which data are failing -…
9
votes
2 answers

JupyterLab fig does not show. It shows blank result (but works fine on jupyternotebook)

I am new to JupyterLab trying to learn. When I try to plot a graph, it works fine on jupyter notebook, but does not show the result on jupyterlab. Can anyone help me with this? Here are the codes below: import pandas as pd import…
9
votes
3 answers

AlphaVantage API Stock Market Indices

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…
Hafssa
  • 91
  • 1
  • 1
  • 2
5
votes
3 answers

How do you use the python alpha_vantage API to return extended intraday data?

I have been working with the alpha vantage python API for a while now, but I have only needed to pull daily and intraday timeseries data. I am trying to pull extended intraday data, but am not having any luck getting it to work. Trying to run the…
5
votes
2 answers

Fetch Bitcoin Data Information through Pandas DataReader

I am wanting to ask if Pandas DataReader may be used to extract Bitcoin information from blockchain.com ? I am aware we may use it together with Alpha Vantage API Key to extract stocks through: import pandas as pd import pandas_datareader as…
funkymickey
  • 111
  • 3
  • 8
5
votes
3 answers

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

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…
S.Roy
  • 61
  • 1
  • 5
5
votes
3 answers

Get RealTime stock price from AlphaVantage

I am working on a trading app project, and i am using Alpha Vantage API to get stock prices. I tried the TIME_SERIES_INTRADAY function to get real time stock prices in a 5 minute interval, but i get only the data from the previous market day instead…
C. Celora
  • 429
  • 1
  • 3
  • 12
5
votes
7 answers

How to use the Alpha Vantage API directly from Python

I've been using Romel Torres' alpha_vantage package but would also like to use the Alpha Vantage API directly from python (gives greater functionality) with package requests as described here CALL with CURL an API through Python: import…
shanlodh
  • 1,015
  • 2
  • 11
  • 30
5
votes
1 answer

Is there a good way to extract only today' stock market date data from the Alpha Vantage API?

I'm using the Alpha Vantage API to fetch stock market data. However, this API seems to be geared towards only providing series of data which is also implied in its aptly named functions like TimeSeries. That means that if I request a quote from the…
exceed
  • 459
  • 7
  • 19
4
votes
0 answers

Alpha Vantage fundamental data older than 5 years (income statement, balance sheet, cashflow)

So essentially I have the free API key for Alpha Vantage in which I am using to obtain fundamental data on random stocks. To be clear I have connected to and used the API successfully and I am not in need of pulling stock price data older than 5…
TehBunk
  • 53
  • 6
4
votes
2 answers

Alpha Vantage API: How do I get stock market indexes?

I'm trying to get data for these indexes SPX,COMP,DJIA,DJT,RUT,DJU using this Python library I'm doing this data, meta_data = ts.get_intraday(symbol='DJIA',interval='60min', outputsize='full') but I get ValueError: Error getting data from the…
MalcolmInTheCenter
  • 1,376
  • 6
  • 27
  • 47
4
votes
2 answers

How to correctly call data from Alpha Vantage using Python pandas-datareader 0.8

noobs on python here. I am currently using python pandas-datareader 0.7 for some stock analysis. With the update of pandas-datareader 0.8. It should be able to grab historical data from Alpha Vantage. But I don't really understand how to use the…
Max Cheung
  • 176
  • 3
  • 13
4
votes
1 answer

Alphavantage and NASDAQ Index stopped working

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,…
Ron Rosenfeld
  • 53,870
  • 7
  • 28
  • 60
4
votes
1 answer

How to extract specific time period from Alpha Vantage in Python?

outputsize='compact' is giving last 100 days, and outputsize='full' is giving whole history which is too much data. Any idea how to write a code that extract some specific period? ts=TimeSeries(key='KEY', output_format='pandas') data, meta_data =…
DellBoy
  • 41
  • 3
4
votes
2 answers

How to use a symbol with a "." in the URL with Alphavantage?

I am using the Alpha Vantage API and have come across a problem, every time I try to send an API request where the symbol (ticker) has a "." in it, the API call returns an Invalid API call error. How do I get past this? For example, to search for BT…
KillerKode
  • 957
  • 1
  • 12
  • 31
1
2 3
15 16