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

How to get data from a specific Indice using Alpha Avantage?

Today I started to use Alpha Vantage and I got the API Key. So, I want get the data from BR, but on the documentation I can't see how I make the request, so how I do it?
Augusto
  • 3,825
  • 9
  • 45
  • 93
0
votes
1 answer

Not getting the last bar data for the given time interval in the alpha_vantage api, get_intraday

I am trying to get the time series data from the Indian stock exchange, NSE, with 5min, 15min time intervals. In all these data, the last data bar is missing in the output. For instance, if I request for a 15min data, the 1st data bar starts with…
0
votes
1 answer

How to import alphavantage library in android studio

I want to import this library https://github.com/patriques82/alphavantage4j in android studio. What steps should I follow?(from scratch) Also in which build.gradle should I put repositories and dependencies? I have an empty project. I downloaded…
pranj99
  • 5
  • 2
0
votes
1 answer

How do I iterate through combinations of two lists and perform a function each time?

Doing an Alphavantage API pull for historic stock data. I'm pulling one of their indicators. Instead of writing 36 separate functions and manually pulling, I'd like to iterate through the 36 possible combinations and do the pull each time with…
0
votes
0 answers

Reading historical data json in swift using SwiftyJSON

I am trying to store historical price data for a stock in an array from the JSON format it is returned in by the Alpha Vantage API. I am not sure how to do that each node will be a specific date and time. This question: Parsing and getting data from…
Luko
  • 5
  • 1
0
votes
2 answers

How to fix the custom function in google spreadsheet when the script can't take input?

I wrote a custom function from the google app script. It's supposed to take value inside from the cell and print JSON data. It succeeded in working in the backend. However, I can't put any input from the front end. =STOCKC(AMD) This is the custom…
0
votes
2 answers

Skip header in api csv

I will get finance info from the alpha vantage API and I will write the answer directly in my database. It works great but the first row of the CSV answer is the header. How can I skip the first row? Thank's a lot. #db-connection# import…
chries8
  • 7
  • 2
0
votes
1 answer

Implicit cast can't deal with spaces & illegal characters in Object keys

The AlphaVantage API has spaces and periods in the keys. There is no formal doco for the API, though you can see it in their demo url https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=MSFT&interval=5min&apikey=demo In my…
HankCa
  • 9,129
  • 8
  • 62
  • 83
0
votes
1 answer

Java model for arrays of nested Json objects

I am trying to work out how to create the model class/s for parsing Json data from Alpha Vantage api but have not been able to workout the format for the model class. This is the format of the Json: { "Meta Data": { "1. Information": "Daily…
Nicholas Muir
  • 2,897
  • 8
  • 39
  • 89
0
votes
1 answer

Cannot retrieve the value of the parameter output

I am using ImportJSON function in Google sheets to import data values from AlphaVantage API. For example, the query string: https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=MSFT&interval=5min&apikey=demo returns: { "Meta…
0
votes
1 answer

Loop of SP100 using Alphavantage in R

I am about to write my Bachelors Thesis in Economics. For this, I need a dataset containing daily stock prices of all companies in the S&P100. I have done this writing each company on a separate line and using alphavantage. Can anyone help me write…
0
votes
1 answer

Alpha vantage - how to get SMA of a stock for specific date

I need to Know the query to fetch SMA of a stock for a specific date range. I don't see anything about data range in API document.
aaviss
  • 401
  • 2
  • 10
  • 29
0
votes
1 answer

Best method to query alpha vantage api for 500 plus stock tickers - Javascript

Still learning javascript - but I am wondering what is the best way to obtain EOD from alpha vantage api for 500 or more symbols without hitting the api too many times per second. I have looked at code to download one symbol's info at a time, but I…
grifway
  • 59
  • 5
0
votes
1 answer

Google scripts and Alphavantage json query: TypeError: Cannot read property

I try to fetch data from AlphaVantage stock market API with this code: function importjson (){ var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("daily data"); var day = new Date(), MILLIS_PER_DAY = 1000 * 60 * 60…
user8603220
0
votes
1 answer

Graphing an Alpha Vantage API with Python

I'm new to Python and more specifically, Alpha Vantage. My issue here is that my code is collecting the data for the stock, but it is not graphing it. I ran this code on my cmd with 3.7 python and already updated all my packages. I have heard…
Sam Hill
  • 1
  • 2