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
1
vote
1 answer

Alpha Vantage extended intraday data

I am using Alpha Vantage extended intraday data for a project and it gives you 2 years worth of data. The way it works is that you can pull month by month through the slice method. This is done to make it faster and efficient. For the purpose of my…
DayTrader
  • 78
  • 1
  • 6
1
vote
0 answers

Split json file into multiple csv files depending on date?

I am trying to split up a json file from alpha-vantages api into separate files depending on the date. I'm also trying to reformat the file to have blank values in the gaps where dates are missing. The following code is what I have come up with but…
FOURZA07
  • 11
  • 2
1
vote
1 answer

Price at Particular Date and Time

How to I query price at a particular date and time using Alphavantage API. For eg: I tried this: https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=^INFY&interval=1min&outputsize=compact&apikey=*********** However I want to pass…
1
vote
0 answers

Stock split information from Alphavantage API

I'm trying to build a simple portfolio tracker application using Alphavantage API. In order to achieve this, I need to know what stock splits have occurred so I can adjust how many shares the user owns. Does Alphavantage give me a way to see data on…
George25
  • 67
  • 1
  • 4
1
vote
1 answer

How can I get data for multiple symbols with one alphavantage requests

My code works fine, but alphavantage free api is limited to 500 requests per day, so getting datas for 500 symbols would take 10 days (because alphavantage chucked every file in 24 parts). How can I get with one requests datas for multiple…
1
vote
1 answer

Alpha Vantage asyncio(tickers)

from alpha_vantage.async_support.techindicators import TechIndicators import asyncio symbols = ['ADI', 'ADMA', 'ADMP', 'ADMS', 'ADNC', 'ADP', 'ADRA', 'ADRD', 'ADRE', 'ADRU', 'ADSK', 'ADTN', 'ADUS', 'ADVS', 'ADXS', 'ADXSW', 'AEGN', 'AEGR', 'AEHR',…
Denys
  • 11
  • 1
1
vote
1 answer

Convert Alphavantage API Response to DataFrame

I have looked for other related topics on SO only finding similar issues, but nothing that can help me. I am querying AlphaVantage for stock data. I recieved the data and decode, but am currently unable to convert to a pandas dataframe due to format…
Dean
  • 2,326
  • 3
  • 13
  • 32
1
vote
1 answer

Why Intraday data from Alpha Advantage start at 4:00 am and finish at 20:00 pm?

This is my code to get 2 years intraday data from Alpha Vantage API. from alpha_vantage.timeseries import TimeSeries import csv import time API_key = 'XXXXXXXXXXXXXXXXX' ticker = 'AAPL' ts = TimeSeries(key=API_key, output_format='csv') for yr in…
1
vote
0 answers

Calculate ROIC using Alpha Vantage API

I am attempting to calculate Return on Invested Capital using Alpha Vantage API. Can anyone help me validate the code below? Other sources I am not sure I get the proper result, as I can't even find 2 stock analysis websites to agree on the…
Cristian Cotoi
  • 163
  • 1
  • 7
1
vote
0 answers

How to access a specific property of an object if I don't know its keys?

I get this output from the API: 'Meta Data': { '1. Information': 'Daily Prices (open, high, low, close) and Volumes', '2. Symbol': 'ibm', '3. Last Refreshed': '2021-01-15', '4. Output Size': 'Compact', '5. Time Zone':…
Devmiki
  • 49
  • 1
  • 6
1
vote
1 answer

Altair chart with alpha-vantage pandas data

I am struggling with plotting my pandas alpha vantage data with altair because i cant get the data to the way i want. This is how it comes from my alpha-vantage query: And this is how my code is now: context = locals() source = data[0]['1a. open…
1
vote
1 answer

Plot pandas-data from Alpha Vantage

I just installed the alpha_vantage module in addition to pandas, and have gotten the api-key etc. I now want to plot som data regarding a stock. Written in the module readme (see here) this is how you do it: from alpha_vantage.timeseries import…
1
vote
1 answer

Alpha Vantage: Iterate through list of stocks to get technical indicators

I have a list of 5 stocks for which I would like to obtain data using Alpha Vantage's TechIndicators. Below are what I have imported and defined: from alpha_vantage.timeseries import TimeSeries from alpha_vantage.foreignexchange import…
jecklymeister
  • 65
  • 2
  • 7
1
vote
1 answer

alpha_vantage API (python) not giving adjusted data

I`m trying to access the TSLA stock data but the data doesn't seem to have accounted for the split earlier this year. The Alpha_Vantage website claims that it will be set to adjust=true as default but this doesn't seem to be the case, I tried to…
1
vote
2 answers

How to extract the alphavantage api response into a pandas dataframe

I am trying to create a pandas dataframe from my API request, import pandas as pd from pandas import DataFrame import json import requests base_url = 'https://www.alphavantage.co/query?' params = {'function': 'LISTING_STATUS', 'apikey':…
Jakub
  • 1,260
  • 1
  • 13
  • 40