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

How to get close price from Alpha Vantage Intraday 5 min interval

I'm currently implementing the Alpha Vantage Api into a react-native app. What I want to do is get the closing price for each 15 minute time period. What I'm thinking might work is using a loop and storing each closing price into an array. But I'm…
Luke H
  • 33
  • 1
  • 6
2
votes
1 answer

Alpha Vantage Json data fetch and display example

Could someone show me a code example on how to fetch data from Alpha Vantage than display it via javascript? I'm having trouble displaying the json data.
Pj Mischuk
  • 31
  • 5
2
votes
3 answers

Alpha Vantage Pull Only Close Price

Good evening, Does anyone know how to pull exclusively the close price from alpha vantage API? I have tried this: df, meta_data = ts.get_intraday(symbol=CCC,interval='1min', outputsize='full')['5. volume'] with no luck. thank you in advance. Also…
user7669093
  • 71
  • 1
  • 8
2
votes
2 answers

parsing json data from alpha vantage

I am new to Ajax and JSON. I am facing issues with the parsing of Json data from the Alpha Vantage API. My project is to create a stock widget using the jive platform in a html5 widget and I have existing code using the yahoo finance api. The yahoo…
user3730179
  • 121
  • 4
  • 14
2
votes
2 answers

Using Excel VBA to pull data from CSV file

I'm a Yahoo Finance API refugee (they discontinued their API service) trying to switch to Alpha Vantage. I've modified the below code which I previously used for Yahoo Finance, but I'm getting a #VALUE error in Excel. The URL below works by itself…
volvader
  • 45
  • 1
  • 5
1
vote
0 answers

Get all tickers for Alpha Vantage

I want to build a database of some 20,000 stocks and would like to use the AlphaVantage API to feed it with data. The documentation can be found here: Documentation. As of my research in stackoverflow and the Alpha Vantage Documentation, I have only…
Edward Teach
  • 158
  • 6
1
vote
2 answers

How do I get balance sheet data from Alpha Vantage in JSON format?

I tried the below code but it keeps returning a tuple. I know I can use the requests library but was willing to use the library. The library I am using is given here. from config import API_KEY from alpha_vantage.fundamentaldata import…
Volatil3
  • 14,253
  • 38
  • 134
  • 263
1
vote
1 answer

How could I merge two arrays so as to have the resulting final array populated by elements that are arrays with two elements inside?

I am working on charts for stock data. I am using the Alpha Vantage API to get daily stock prices and dates. I require an array populated by arrays with two array elements at a time like this...[[01/25/2020, 34.10], [01/26/2020, 41.67]]. I…
1
vote
0 answers

The height of the column in the Chart object remains constant

I am making a currency conversion application with a C# form. I pull the exchange rates with the API, convert them to each other, and add this value to my chart object with two columns, "selling price" and "buying price". My problem is as follows:…
Samet
  • 33
  • 8
1
vote
0 answers

Alpha Vantage: Invalid API call when querying 'DIGITAL_CURRENCY_DAILY' BTC to USD/EUR

My Problem: I am trying to retrieve the daily prices in € or $ (EUR or USD) of Bitcoin (BTC) from the alpha vantage API in python, however it appears to return the following Error Message: Invalid API call. Please retry or visit the documentation…
1
vote
0 answers

I want to return the top 3 best doing stocks for a selected time period using alphavantage API. is this possible?

I'm working on some project and I would like to make a method that shows the top 3 best doing stocks. However when going through the alphaavantage documentation I don't see a possibility to get all the stocks their information without have to ask…
1
vote
1 answer

How can I use a NPM package within a Deno app?

I want to know how can I use this NPM package inside my Deno application?
Hasani
  • 3,543
  • 14
  • 65
  • 125
1
vote
1 answer

Specify start date and end date using Alpha Vantage API Python

How do I specify a start date and end date? For example, I want to extract daily close price for AAPL from 01-01-2020 to 30-06-2021? enter code here from alpha.vantage.timeseries import TimeSeries import pandas as pd api_key = '' ts =…
Chris
  • 11
  • 1
1
vote
2 answers

Fail to import Alpha_vantage.timesseries

EDIT: When I wrote this post I was a beginner on Stackoverflow and in programming generally. I don't remember how I solved this inquiry unfortunately. How can I close this post? I am having trouble working with this specific module. At first, I had…
1
vote
1 answer

React - Alpha Vantage API - How can I select last 30 days data or last month

I would like to display the past month data from Alpha Vantage API but I don't know how could I access it. This is kinda what I would like to get back: setPrices(data.data['Monthly Time Series']['2021-12-07']); But without hard coding the date, just…
evll
  • 97
  • 3
  • 12