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
4
votes
1 answer

Installing Alpha Vantage in Conda

I was looking to try out Alpha Vantage's API in Python, but I'd like to install it using Anaconda rather than pip. I'm fairly new to conda however. I searched for alpha_vantage in conda conda search alpha_vantage and it says alpha_vantage is not…
rhaskett
  • 1,864
  • 3
  • 29
  • 48
3
votes
1 answer

AlphaVantage API call returns error "Invalid API call"

I was playing with the alphavantage API and was successfully able to receive the response for BTC to USD exchange rate. { 'Realtime Currency Exchange Rate': { '1. From_Currency Code': 'BTC', '2.…
user3810188
  • 311
  • 1
  • 3
  • 14
3
votes
1 answer

Alpha Vantage API Key returns invalid error in Python, and what is Response[200]?

Using the following code, I am not getting any data from alphavantage, I get the following API error: "Error Message": "Invalid API call. Please retry or visit the documentation (https://www.alphavantage.co/documentation/) for TIME_SERIES_DAILY."…
FabioSpaghetti
  • 790
  • 1
  • 9
  • 35
3
votes
2 answers

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

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…
Vytautas
  • 31
  • 1
  • 3
3
votes
1 answer

(Javascript) Deconstructing Object but Object has a changing date

I am using Alpha Vantage to update stocks on a website that I am making and I can't get the deconstruction to work properly with the date variable. (It works correctly when I place a static date so I know that this is the problem.) var today = new…
3
votes
2 answers

Alpha Vantage API not working for Brazilian stocks

I am trying to fetch Brazilian stock prices with Alpha Vantage API. For this example, I'll talk about PETR4. I have used Alpha Vantage Search Endpoint. It returns the symbol of the currency: { "bestMatches": [ { "1.…
pedrovgp
  • 767
  • 9
  • 23
3
votes
1 answer

Empty array returned when calling AlphaVantage APIs for NASDAQ tickers

I cannot get any NASDAQ data from the Alpha Vantage TIME_SERIES_DAILY, TIME_SERIES_DAILY_ADJUSTED or TIME_SERIES_INTRADAY -- the returned array is always empty regardless of the equity or index symbol I use: {} This is the call I made to get that…
Robert May
  • 33
  • 3
3
votes
2 answers

Alpha Vantage API not returning Nasdaq quotes

The Alpha Vantage API doesn't deliver quotes for the NASDAQ Index (anymore?). All other indizes that I'm interested in seem to work like a charm. For example calling the following URL (API Key masked) will deliver the quote for the S&P (symbol…
zacko
  • 339
  • 1
  • 7
  • 20
3
votes
2 answers

get options data of NSE from Alpha Vantage API

Using Alpha Vantage documentation I am able to fetch data of stock listed on NSE (National Stock Exchange of India) like bellow…
vaibhav shah
  • 4,939
  • 19
  • 58
  • 96
3
votes
1 answer

Alpha Vantage "KeyError: 'Time Series (Daily)'"

I'm trying to make a simple GUI that collects a few sets of historical stock data from Alpha Vantage. I'm getting this error: File "d:\GIT\StockAI\main.py", line 34, in run data = ts.get_daily(symbol=stock, outputsize='full') File…
Ben L
  • 63
  • 3
  • 10
3
votes
1 answer

how to use alpha vantage api in Instead list in chartjs?

i have this code and run it,but i want cahnge source to alpha vantage? this api is : https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&symbol=aapl&apikey= how i can use this api in my code, and my code is : …
user9461375
3
votes
2 answers

Alpha Vantage - Can you pull for multiple stocks with the API?

For example, if I want to list out all the stocks on NASAQ and their closing price, is there a way to do this without using the API for each individual stock? What I mean is, you pull data for a company using the company's ticker symbol in the API…
Eric
  • 95
  • 2
  • 11
3
votes
1 answer

Build pandas DataFrame from JSON data

I'm still a python rookie and I'm at my wits' end when it comes to working with a JSON data structure. For example, I tried to load data obtained from Alpha Vantage to a DataFrame for further processing. The JSON looks like this: { "Meta Data": { …
RazzleDazzle
  • 121
  • 5
  • 16
2
votes
0 answers

How to query multiple symbols in a single AlphaVantage API call

I have an AlphaVantage (AV) API query that's working fine for a single asset's symbol, but when I add a second symbol, it only pulls data for the last of the two symbols. This is what I'm running, and it only returns data for 'LRC': AV API Query url…
dsx
  • 167
  • 1
  • 12
2
votes
1 answer

Alphavantage API - Symbol undefined

I'm relatively new with the API services and trying to build a dashboard where I'm getting data from Alphavantage API. I'm trying to get 3 symbols simultaneously by creating a list and passing the index to my API call. I'm showing 1 row for each…
Kenny.k
  • 106
  • 9
1
2
3
15 16